; ; CreateParticlePopup::toggleGravityMode from 0x5320e8 to 0x532210 (296 bytes) ; ; 3 xrefs: ; > CreateParticlePopup::onPage @ 0x532376 ; > CreateParticlePopup::onEmitterMode @ 0x5323e0 ; > CreateParticlePopup::init @ 0x534e8e ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH.W {R3-R9,LR} ; +0x0, 0x5320e8 MOV R6, R1 ; +0x4, 0x5320ec MOVS R1, #0; int ; +0x6, 0x5320ee MOV R4, R0 ; +0x8, 0x5320f0 BL _ZN19CreateParticlePopup17getPageInputNodesEi; CreateParticlePopup::getPageInputNodes(int) ; +0xa, 0x5320f2 MOVS R1, #0; int ; +0xe, 0x5320f6 MOVS R5, #8 ; +0x10, 0x5320f8 MOV R9, R0 ; +0x12, 0x5320fa MOV R0, R4; this ; +0x14, 0x5320fc BL _ZN19CreateParticlePopup14getPageSlidersEi; CreateParticlePopup::getPageSliders(int) ; +0x16, 0x5320fe MOV R8, R0 ; +0x1a, 0x532102 MOV R1, R5; int ; +0x1c, 0x532104 MOV R0, R9; this ; +0x1e, 0x532106 BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x20, 0x532108 MOV R1, R6 ; +0x24, 0x53210c LDR R3, [R0] ; +0x26, 0x53210e LDR.W R3, [R3,#0xA4] ; +0x28, 0x532110 BLX R3 ; +0x2c, 0x532114 MOV R1, R5; int ; +0x2e, 0x532116 MOV R0, R9; this ; +0x30, 0x532118 BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x32, 0x53211a MOV R1, R6 ; +0x36, 0x53211e LDR R3, [R0] ; +0x38, 0x532120 LDR.W R3, [R3,#0x1EC] ; +0x3a, 0x532122 BLX R3 ; +0x3e, 0x532126 MOV R1, R5; int ; +0x40, 0x532128 MOV R0, R8; this ; +0x42, 0x53212a BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x44, 0x53212c MOV R1, R6 ; +0x48, 0x532130 LDR R3, [R0] ; +0x4a, 0x532132 LDR.W R3, [R3,#0xA4] ; +0x4c, 0x532134 BLX R3 ; +0x50, 0x532138 MOV R1, R5; int ; +0x52, 0x53213a MOV R0, R8; this ; +0x54, 0x53213c ADDS R5, #1 ; +0x56, 0x53213e BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x58, 0x532140 MOV R1, R6 ; +0x5c, 0x532144 LDR R3, [R0] ; +0x5e, 0x532146 LDR.W R3, [R3,#0x1EC] ; +0x60, 0x532148 BLX R3 ; +0x64, 0x53214c CMP R5, #0x12 ; +0x66, 0x53214e BNE loc_532104 ; +0x68, 0x532150 EOR.W R7, R6, #1 ; +0x6a, 0x532152 MOVS R5, #0x32 ; '2' ; +0x6e, 0x532156 MOV R1, R5; int ; +0x70, 0x532158 MOV R0, R9; this ; +0x72, 0x53215a BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x74, 0x53215c MOV R1, R7 ; +0x78, 0x532160 LDR R3, [R0] ; +0x7a, 0x532162 LDR.W R3, [R3,#0xA4] ; +0x7c, 0x532164 BLX R3 ; +0x80, 0x532168 MOV R1, R5; int ; +0x82, 0x53216a MOV R0, R9; this ; +0x84, 0x53216c BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x86, 0x53216e MOV R1, R7 ; +0x8a, 0x532172 LDR R3, [R0] ; +0x8c, 0x532174 LDR.W R3, [R3,#0x1EC] ; +0x8e, 0x532176 BLX R3 ; +0x92, 0x53217a MOV R1, R5; int ; +0x94, 0x53217c MOV R0, R8; this ; +0x96, 0x53217e BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x98, 0x532180 MOV R1, R7 ; +0x9c, 0x532184 LDR R3, [R0] ; +0x9e, 0x532186 LDR.W R3, [R3,#0xA4] ; +0xa0, 0x532188 BLX R3 ; +0xa4, 0x53218c MOV R1, R5; int ; +0xa6, 0x53218e MOV R0, R8; this ; +0xa8, 0x532190 ADDS R5, #1 ; +0xaa, 0x532192 BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0xac, 0x532194 MOV R1, R7 ; +0xb0, 0x532198 LDR R3, [R0] ; +0xb2, 0x53219a LDR.W R3, [R3,#0x1EC] ; +0xb4, 0x53219c BLX R3 ; +0xb8, 0x5321a0 CMP R5, #0x38 ; '8' ; +0xba, 0x5321a2 BNE loc_532158 ; +0xbc, 0x5321a4 MOVS R5, #0 ; +0xbe, 0x5321a6 LDR.W R0, [R4,#0x27C]; this ; +0xc0, 0x5321a8 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc4, 0x5321ac CMP R5, R0 ; +0xc8, 0x5321b0 BCS loc_5321CC ; +0xca, 0x5321b2 MOV R1, R5; unsigned int ; +0xcc, 0x5321b4 LDR.W R0, [R4,#0x27C]; this ; +0xce, 0x5321b6 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xd2, 0x5321ba MOV R1, R6 ; +0xd6, 0x5321be ADDS R5, #1 ; +0xd8, 0x5321c0 LDR R3, [R0] ; +0xda, 0x5321c2 LDR.W R3, [R3,#0xA4] ; +0xdc, 0x5321c4 BLX R3 ; +0xe0, 0x5321c8 B loc_5321A8 ; +0xe2, 0x5321ca MOVS R5, #0 ; +0xe4, 0x5321cc LDR.W R0, [R4,#0x280]; this ; +0xe6, 0x5321ce BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xea, 0x5321d2 CMP R5, R0 ; +0xee, 0x5321d6 BCS loc_5321F2 ; +0xf0, 0x5321d8 MOV R1, R5; unsigned int ; +0xf2, 0x5321da LDR.W R0, [R4,#0x280]; this ; +0xf4, 0x5321dc BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xf8, 0x5321e0 MOV R1, R7 ; +0xfc, 0x5321e4 ADDS R5, #1 ; +0xfe, 0x5321e6 LDR R3, [R0] ; +0x100, 0x5321e8 LDR.W R3, [R3,#0xA4] ; +0x102, 0x5321ea BLX R3 ; +0x106, 0x5321ee B loc_5321CE ; +0x108, 0x5321f0 LDR.W R0, [R4,#0x20C] ; +0x10a, 0x5321f2 LDR.W R5, [R4,#0x238] ; +0x10e, 0x5321f6 LDR R3, [R0] ; +0x112, 0x5321fa LDR.W R3, [R3,#0x314] ; +0x114, 0x5321fc BLX R3 ; +0x118, 0x532200 CLZ.W R0, R0 ; +0x11a, 0x532202 LSRS R0, R0, #5 ; +0x11e, 0x532206 STRB.W R0, [R5,#0x1C4] ; +0x120, 0x532208 POP.W {R3-R9,PC} ; +0x124, 0x53220c