.gba
.open "MZMO.gba","bombtrigger.gba",0x8000000
.definelabel freespace,0x8762000

.org 0x80521B4
	ldr		r0,=freespace
	mov		r15,r0
.pool

.org freespace
	ldr		r0,=0x3001381	
	ldrb	r0,[r0]
	mov		r1,0x2
	and		r0,r1
	cmp		r0,0x0
	bne		@@continue     
	ldr		r0,=0x300137D	
	ldrb	r0,[r0]
	mov		r1,0x2
	and		r0,r1
	cmp		r0,0x0
	beq		@@jump0x80521EA
	ldrb    r0,[r4,13h]     
    sub     r0,1h           
    strb    r0,[r4,13h]     
    lsl     r0,r0,18h       
    cmp     r0,0h           
    bne     @@jump0x80521EA
	b		@@continue

@@continue:
	ldr		r0,=0x080521C0
	mov		r15,r0


@@jump0x80521EA:
	ldr		r0,=0x80521EA
	mov		r15,r0

.pool

.close
