push {r0-r5, lr} ldr r0, .ev_data ldr r0, [r0] ldr r1, .var8005 ldrb r2, [r1] mov r4, #0x5 mov r3, r2 cmp r3, #0x2 bgt .anderes_startoffset ldrh r2, [r0, #0x4] main: mul r3, r3, r4 lsr r2, r3 mov r4, #0x1F and r2, r2, r4 strh r2, [r1] pop {r0-r5, pc} .anderes_startoffset: ldrb r5, [r0, #0x5] lsr r5, #0x7 ldrh r2, [r0, #0x6] lsl r2, #0x1 add r2, r2, r5 sub r3, r3, #0x3 b main mov r0, r0 .ev_data: .word 0x0203f414 .var8005: .word 0x020370C2