.gba
.open "zm.gba","RidleySkipPosCheck.gba",0x8000000

.org 0x80324A8
	push r14
	ldr r3,=3000738h
	add r1,r3,0
	add r1,26h
	mov r0,1h
	strb r0,[r1]
	mov r0,r3
	ldrh r1,[r0]
	ldr r0,=7FFBh
	and r0,r1
	mov r2,0h
	mov r1,r3
	strh r0,[r1]
	add r1,24h
	mov r0,2h
	strb r0,[r1]
	ldr r0,=300070Ch
	ldr r1,=82E9624h
	str r1,[r0]
	strb r2,[r0,0Ch]
	strh r2,[r0,4h]
	mov r0,r3
	add r0,2Dh
	strb r2,[r0]
	add r0,2h
	strb r2,[r0]
	mov r0,96h
	lsl r0,r0,1h 
	mov r1,r3
	strh r0,[r1,12h]
	mov r0,5h
	bl 805BFD4h
	pop r0
	bx r0
	
.pool
.fill 0x5C
.close