rendered paste bodyoutl(inl(0xf000f044) | 0x6, 0xf000f044)
while (inl(0x6000c000) & 0x8000) {};
outl(inl(0x6000c000) &~ 1, 0x6000c000)
outl(0, 0xf000f044);
outl(0, 0xf000f040);
ORIGINAL ASM:
1ef50: e59f2034 ldr r2, [pc, #52] ; 0x1ef8c #0xf000f000
1ef54: e5920044 ldr r0, [r2, #68]
1ef58: e3800006 orr r0, r0, #6 ; 0x6
1ef5c: e5820044 str r0, [r2, #68]
1ef60: e59f1028 ldr r1, [pc, #40] ; 0x1ef90 # 0x6000c000
1ef64: e5910000 ldr r0, [r1]
1ef68: e3100c80 tst r0, #32768 ; 0x8000
1ef6c: 1afffffc bne 0x1ef64
1ef70: e5910000 ldr r0, [r1]
1ef74: e3c00001 bic r0, r0, #1 ; 0x1
1ef78: e5810000 str r0, [r1]
1ef7c: e3a00000 mov r0, #0 ; 0x0
1ef80: e5820044 str r0, [r2, #68]
1ef84: e5820040 str r0, [r2, #64]
1ef88: e1a0f00e mov pc, lr