; ; AudioEffectsLayer::getBGSquare from 0x50a3e0 to 0x50a4e8 (264 bytes) ; ; 0 xrefs: ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:51:27 +0000 ; PUSH {R4-R7,LR} ; +0x0, 0x50a3e0 LDR R7, =(__stack_chk_guard_ptr - 0x50A3EC) ; +0x2, 0x50a3e2 VPUSH {D8} ; +0x4, 0x50a3e4 ADD R7, PC; __stack_chk_guard_ptr ; +0x8, 0x50a3e8 LDR R7, [R7]; __stack_chk_guard ; +0xa, 0x50a3ea LDR R3, [R7] ; +0xc, 0x50a3ec SUB SP, SP, #0x1C ; +0xe, 0x50a3ee ADD R5, SP, #0x1C+var_18 ; +0x10, 0x50a3f0 ADD R4, SP, #0x1C+var_10 ; +0x12, 0x50a3f2 STR R3, [SP,#0x1C+var_8] ; +0x14, 0x50a3f4 BLX rand ; +0x16, 0x50a3f6 VMOV.F32 S15, #14.0 ; +0x1a, 0x50a3fa VMOV S14, R0 ; +0x1e, 0x50a3fe VCVT.F32.S32 S14, S14, #0x1F ; +0x22, 0x50a402 VMUL.F32 S15, S14, S15 ; +0x26, 0x50a406 VMOV R0, S15 ; +0x2a, 0x50a40a BLX lroundf ; +0x2e, 0x50a40e MOV R6, R0 ; +0x32, 0x50a412 MOV R0, R5; this ; +0x34, 0x50a414 BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x36, 0x50a416 MOV R0, R4; this ; +0x3a, 0x50a41a CMP R6, #0xE; switch 15 cases ; +0x3c, 0x50a41c BHI def_50A420; jumptable 0050A420 default case ; +0x3e, 0x50a41e TBB.W [PC,R6]; switch jump ; +0x40, 0x50a420 DCB 8; jump table for switch statement ; +0x44, 0x50a424 DCB 0xA ; +0x45, 0x50a425 DCB 0xD ; +0x46, 0x50a426 DCB 0x10 ; +0x47, 0x50a427 DCB 0x13 ; +0x48, 0x50a428 DCB 0x15 ; +0x49, 0x50a429 DCB 0x18 ; +0x4a, 0x50a42a DCB 0x1B ; +0x4b, 0x50a42b DCB 0x1D ; +0x4c, 0x50a42c DCB 0x20 ; +0x4d, 0x50a42d DCB 0x22 ; +0x4e, 0x50a42e DCB 0x25 ; +0x4f, 0x50a42f DCB 0x28 ; +0x50, 0x50a430 DCB 0x2B ; +0x51, 0x50a431 DCB 0x2E ; +0x52, 0x50a432 ALIGN 2 ; +0x53, 0x50a433 LDR R1, flt_50A4E8; jumptable 0050A420 case 0 ; +0x54, 0x50a434 B loc_50A488 ; +0x56, 0x50a436 LDR R1, =0x432A0000; jumptable 0050A420 case 1 ; +0x58, 0x50a438 LDR R2, =0x42200000 ; +0x5a, 0x50a43a B loc_50A48A ; +0x5c, 0x50a43c LDR R1, =0x438C0000; jumptable 0050A420 case 2 ; +0x5e, 0x50a43e LDR R2, flt_50A4E8 ; +0x60, 0x50a440 B loc_50A48A ; +0x62, 0x50a442 LDR R1, =0x43D70000; jumptable 0050A420 case 3 ; +0x64, 0x50a444 LDR R2, =0x429A0000 ; +0x66, 0x50a446 B loc_50A48A ; +0x68, 0x50a448 LDR R1, =0x41C80000; jumptable 0050A420 case 4 ; +0x6a, 0x50a44a B loc_50A450 ; +0x6c, 0x50a44c LDR R1, =0x42B40000; jumptable 0050A420 case 5 ; +0x6e, 0x50a44e LDR R2, =0x43160000 ; +0x70, 0x50a450 B loc_50A48A ; +0x72, 0x50a452 LDR R1, =0x432A0000; jumptable 0050A420 case 6 ; +0x74, 0x50a454 LDR R2, =0x43BE0000 ; +0x76, 0x50a456 B loc_50A48A ; +0x78, 0x50a458 LDR R1, =0x438C0000; jumptable 0050A420 case 7 ; +0x7a, 0x50a45a B loc_50A482 ; +0x7c, 0x50a45c LDR R1, =0x43B40000; jumptable 0050A420 case 8 ; +0x7e, 0x50a45e LDR R2, =0x433A0000 ; +0x80, 0x50a460 B loc_50A48A ; +0x82, 0x50a462 LDR R1, =0x43B40000; jumptable 0050A420 case 9 ; +0x84, 0x50a464 B loc_50A46A ; +0x86, 0x50a466 LDR R1, =0x43DF0000; jumptable 0050A420 case 10 ; +0x88, 0x50a468 LDR R2, =0x43660000 ; +0x8a, 0x50a46a B loc_50A48A ; +0x8c, 0x50a46c LDR R1, =0x42200000; jumptable 0050A420 case 11 ; +0x8e, 0x50a46e LDR R2, =0x436A0000 ; +0x90, 0x50a470 B loc_50A48A ; +0x92, 0x50a472 LDR R1, =0x43160000; jumptable 0050A420 case 12 ; +0x94, 0x50a474 LDR R2, =0x437A0000 ; +0x96, 0x50a476 B loc_50A48A ; +0x98, 0x50a478 LDR R1, =0x43960000; jumptable 0050A420 case 13 ; +0x9a, 0x50a47a LDR R2, =0x43A28000 ; +0x9c, 0x50a47c B loc_50A48A ; +0x9e, 0x50a47e MOVS R1, #0; jumptable 0050A420 case 14 ; +0xa0, 0x50a480 LDR R2, =0x43310000 ; +0xa2, 0x50a482 B loc_50A48A ; +0xa4, 0x50a484 MOVS R1, #0; jumptable 0050A420 default case ; +0xa6, 0x50a486 MOV R2, R1; float ; +0xa8, 0x50a488 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xaa, 0x50a48a MOV R0, R5 ; +0xae, 0x50a48e MOV R1, R4 ; +0xb0, 0x50a490 BL _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xb2, 0x50a492 CMP R6, #0xE ; +0xb6, 0x50a496 BHI loc_50A4A8 ; +0xb8, 0x50a498 LDR R3, =(flt_BECAB0 - 0x50A4A0) ; +0xba, 0x50a49a ADD R3, PC; flt_BECAB0 ; +0xbc, 0x50a49c ADD.W R6, R3, R6,LSL#2 ; +0xbe, 0x50a49e VLDR S16, [R6] ; +0xc2, 0x50a4a2 B loc_50A4AC ; +0xc6, 0x50a4a6 VMOV.F32 S16, #10.0 ; +0xc8, 0x50a4a8 LDR R0, =(aWhitesquare600 - 0x50A4B2); "whiteSquare60_001.png" ; +0xcc, 0x50a4ac ADD R0, PC; "whiteSquare60_001.png" ; +0xce, 0x50a4ae BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0xd0, 0x50a4b0 MOV R1, R5 ; +0xd4, 0x50a4b4 LDR R3, [R0] ; +0xd6, 0x50a4b6 MOV R4, R0 ; +0xd8, 0x50a4b8 LDR R3, [R3,#0x5C] ; +0xda, 0x50a4ba BLX R3 ; +0xdc, 0x50a4bc VLDR S15, [R4,#0x158] ; +0xde, 0x50a4be LDR R3, [R4] ; +0xe2, 0x50a4c2 MOV R0, R4 ; +0xe4, 0x50a4c4 VDIV.F32 S15, S16, S15 ; +0xe6, 0x50a4c6 LDR R3, [R3,#0x50] ; +0xea, 0x50a4ca VMOV R1, S15 ; +0xec, 0x50a4cc BLX R3 ; +0xf0, 0x50a4d0 LDR R2, [SP,#0x1C+var_8] ; +0xf2, 0x50a4d2 LDR R3, [R7] ; +0xf4, 0x50a4d4 MOV R0, R4 ; +0xf6, 0x50a4d6 CMP R2, R3 ; +0xf8, 0x50a4d8 BEQ loc_50A4E0 ; +0xfa, 0x50a4da BLX __stack_chk_fail ; +0xfc, 0x50a4dc ADD SP, SP, #0x1C ; +0x100, 0x50a4e0 VPOP {D8} ; +0x102, 0x50a4e2 POP {R4-R7,PC} ; +0x106, 0x50a4e6