[ create a new paste ] login | about

Link: http://codepad.org/O6nXCpWp    [ raw code | fork ]

Plain Text, pasted on Jul 30:
    cmp r1, r0
    bcc 9f
    it eq
    bxeq lr
    stmfd sp!, {r0, lr}
    subs r2, r2, #4
    blt 6f
    ands r12, r0, #3
    bne 7f
    tst r1, #3
    bne 8f
3:
    subs r2, r2, #8
    blt 5f
    subs r2, r2, #0x14
    blt 4f
    str r4, [sp, #-4]!
1:
    ldmia r1!, {r3, r4, r12, lr}
    stmia r0!, {r3, r4, r12, lr}
    ldmia r1!, {r3, r4, r12, lr}
    stmia r0!, {r3, r4, r12, lr}
    subs r2, r2, #0x20
    bge 1b
    cmn r2, #0x10
    ittt ge
    ldmiage r1!, {r3, r4, r12, lr}
    stmiage r0!, {r3, r4, r12, lr}
    subge r2, r2, #0x10
    ldr r4, [sp], #4
4:
    adds r2, r2, #0x14
1:
    itttt ge
    ldmiage r1!, {r3, r12, lr}
    stmiage r0!, {r3, r12, lr}
    subsge r2, r2, #0x0c
    bge 1b
5:
    adds r2, r2, #8
    blt 6f
    subs r2, r2, #4
    itt lt
    ldrlt r3, [r1], #4
    strlt r3, [r0], #4
    ittt ge
    ldmiage r1!, {r3, r12}
    stmiage r0!, {r3, r12}
    subge r2, r2, #4
6:
    adds r2, r2, #4
    it eq
    ldmfdeq sp!, {r0, pc}
    cmp r2, #2
    ldrb r3, [r1], #1
    strb r3, [r0], #1
    itt ge
    ldrbge r3, [r1], #1
    strbge r3, [r0], #1
    itt gt
    ldrbgt r3, [r1], #1
    strbgt r3, [r0], #1
    ldmfd sp!, {r0, pc}
7:
    rsb r12, r12, #4
    cmp r12, #2
    ldrb r3, [r1], #1
    strb r3, [r0], #1
    itt ge
    ldrbge r3, [r1], #1
    strbge r3, [r0], #1
    itt gt
    ldrbgt r3, [r1], #1
    strbgt r3, [r0], #1
    subs r2, r2, r12
    blt 6b
    ands r12, r1, #3
    beq 3b
8:
    ldrb r3, [r1], #1
    strb r3, [r0], #1
    subs r2, r2, #1
    bge 8b
    b 6b
9:
    add r1, r1, r2
    add r0, r0, r2
    subs r2, r2, #4
    blt 6f
    ands r12, r0, #3
    bne 7f
    tst r1, #3
    bne 8f
3:
    subs r2, r2, #8
    blt 5f
    stmdb sp!, {r4, lr}
    subs r2, r2, #0x14
    blt 4f
1:
    ldmdb r1!, {r3, r4, r12, lr}
    stmdb r0!, {r3, r4, r12, lr}
    ldmdb r1!, {r3, r4, r12, lr}
    stmdb r0!, {r3, r4, r12, lr}
    subs r2, r2, #0x20
    bge 1b
4:
    cmn r2, #0x10
    ittt ge
    ldmdbge r1!, {r3, r4, r12, lr}
    stmdbge r0!, {r3, r4, r12, lr}
    subge r2, r2, #0x10
    adds r2, r2, #0x14
    ittt ge
    ldmdbge r1!, {r3, r12, lr}
    stmdbge r0!, {r3, r12, lr}
    subge r2, r2, #0x0c
    ldmia sp!, {r4, lr}
5:
    adds r2, r2, #8
    blt 6f
    subs r2, r2, #4
    itt lt
    ldrlt r3, [r1, #-4]!
    strlt r3, [r0, #-4]!
    ittt ge
    ldmdbge r1!, {r3, r12}
    stmdbge r0!, {r3, r12}
    subge r2, r2, #4
6:
    adds r2, r2, #4
    it eq
    bxeq lr
    cmp r2, #2
    ldrb r3, [r1, #-1]!
    strb r3, [r0, #-1]!
    itt ge
    ldrbge r3, [r1, #-1]!
    strbge r3, [r0, #-1]!
    itt gt
    ldrbgt r3, [r1, #-1]!
    strbgt r3, [r0, #-1]!
    bx lr
7:
    cmp r12, #2
    ldrb r3, [r1, #-1]!
    strb r3, [r0, #-1]!
    itt ge
    ldrbge r3, [r1, #-1]!
    strbge r3, [r0, #-1]!
    itt gt
    ldrbgt r3, [r1, #-1]!
    strbgt r3, [r0, #-1]!
    subs r2, r2, r12
    blt 6b
    ands r12, r1, #3
    beq 3b
8:
    ldrb r3, [r1, #-1]!
    strb r3, [r0, #-1]!
    subs r2, r2, #1
    bge 8b
    b 6b


Create a new paste based on this one


Comments: