; ; CreateParticlePopup::toggleGravityMode from 0x665888 to 0x6659b0 (296 bytes) ; ; 3 xrefs: ; > CreateParticlePopup::onEmitterMode @ 0x665a08 ; > CreateParticlePopup::onPage @ 0x665b6e ; > CreateParticlePopup::init @ 0x669e8e ; ; 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:55:40 +0000 ; PUSH.W {R3-R9,LR} ; +0x0, 0x665888 MOV R6, R1 ; +0x4, 0x66588c MOVS R1, #0; int ; +0x6, 0x66588e MOV R4, R0 ; +0x8, 0x665890 BL _ZN19CreateParticlePopup17getPageInputNodesEi; CreateParticlePopup::getPageInputNodes(int) ; +0xa, 0x665892 MOVS R1, #0; int ; +0xe, 0x665896 MOVS R5, #8 ; +0x10, 0x665898 MOV R9, R0 ; +0x12, 0x66589a MOV R0, R4; this ; +0x14, 0x66589c BL _ZN19CreateParticlePopup14getPageSlidersEi; CreateParticlePopup::getPageSliders(int) ; +0x16, 0x66589e MOV R8, R0 ; +0x1a, 0x6658a2 MOV R1, R5; int ; +0x1c, 0x6658a4 MOV R0, R9; this ; +0x1e, 0x6658a6 BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x20, 0x6658a8 MOV R1, R6 ; +0x24, 0x6658ac LDR R3, [R0] ; +0x26, 0x6658ae LDR.W R3, [R3,#0xAC] ; +0x28, 0x6658b0 BLX R3 ; +0x2c, 0x6658b4 MOV R1, R5; int ; +0x2e, 0x6658b6 MOV R0, R9; this ; +0x30, 0x6658b8 BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x32, 0x6658ba MOV R1, R6 ; +0x36, 0x6658be LDR R3, [R0] ; +0x38, 0x6658c0 LDR.W R3, [R3,#0x1F4] ; +0x3a, 0x6658c2 BLX R3 ; +0x3e, 0x6658c6 MOV R1, R5; int ; +0x40, 0x6658c8 MOV R0, R8; this ; +0x42, 0x6658ca BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x44, 0x6658cc MOV R1, R6 ; +0x48, 0x6658d0 LDR R3, [R0] ; +0x4a, 0x6658d2 LDR.W R3, [R3,#0xAC] ; +0x4c, 0x6658d4 BLX R3 ; +0x50, 0x6658d8 MOV R1, R5; int ; +0x52, 0x6658da MOV R0, R8; this ; +0x54, 0x6658dc ADDS R5, #1 ; +0x56, 0x6658de BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x58, 0x6658e0 MOV R1, R6 ; +0x5c, 0x6658e4 LDR R3, [R0] ; +0x5e, 0x6658e6 LDR.W R3, [R3,#0x1F4] ; +0x60, 0x6658e8 BLX R3 ; +0x64, 0x6658ec CMP R5, #0x12 ; +0x66, 0x6658ee BNE loc_6658A4 ; +0x68, 0x6658f0 EOR.W R7, R6, #1 ; +0x6a, 0x6658f2 MOVS R5, #0x32 ; '2' ; +0x6e, 0x6658f6 MOV R1, R5; int ; +0x70, 0x6658f8 MOV R0, R9; this ; +0x72, 0x6658fa BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x74, 0x6658fc MOV R1, R7 ; +0x78, 0x665900 LDR R3, [R0] ; +0x7a, 0x665902 LDR.W R3, [R3,#0xAC] ; +0x7c, 0x665904 BLX R3 ; +0x80, 0x665908 MOV R1, R5; int ; +0x82, 0x66590a MOV R0, R9; this ; +0x84, 0x66590c BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x86, 0x66590e MOV R1, R7 ; +0x8a, 0x665912 LDR R3, [R0] ; +0x8c, 0x665914 LDR.W R3, [R3,#0x1F4] ; +0x8e, 0x665916 BLX R3 ; +0x92, 0x66591a MOV R1, R5; int ; +0x94, 0x66591c MOV R0, R8; this ; +0x96, 0x66591e BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x98, 0x665920 MOV R1, R7 ; +0x9c, 0x665924 LDR R3, [R0] ; +0x9e, 0x665926 LDR.W R3, [R3,#0xAC] ; +0xa0, 0x665928 BLX R3 ; +0xa4, 0x66592c MOV R1, R5; int ; +0xa6, 0x66592e MOV R0, R8; this ; +0xa8, 0x665930 ADDS R5, #1 ; +0xaa, 0x665932 BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0xac, 0x665934 MOV R1, R7 ; +0xb0, 0x665938 LDR R3, [R0] ; +0xb2, 0x66593a LDR.W R3, [R3,#0x1F4] ; +0xb4, 0x66593c BLX R3 ; +0xb8, 0x665940 CMP R5, #0x38 ; '8' ; +0xba, 0x665942 BNE loc_6658F8 ; +0xbc, 0x665944 MOVS R5, #0 ; +0xbe, 0x665946 LDR.W R0, [R4,#0x2A4]; this ; +0xc0, 0x665948 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc4, 0x66594c CMP R5, R0 ; +0xc8, 0x665950 BCS loc_66596C ; +0xca, 0x665952 MOV R1, R5; unsigned int ; +0xcc, 0x665954 LDR.W R0, [R4,#0x2A4]; this ; +0xce, 0x665956 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xd2, 0x66595a MOV R1, R6 ; +0xd6, 0x66595e ADDS R5, #1 ; +0xd8, 0x665960 LDR R3, [R0] ; +0xda, 0x665962 LDR.W R3, [R3,#0xAC] ; +0xdc, 0x665964 BLX R3 ; +0xe0, 0x665968 B loc_665948 ; +0xe2, 0x66596a MOVS R5, #0 ; +0xe4, 0x66596c LDR.W R0, [R4,#0x2A8]; this ; +0xe6, 0x66596e BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xea, 0x665972 CMP R5, R0 ; +0xee, 0x665976 BCS loc_665992 ; +0xf0, 0x665978 MOV R1, R5; unsigned int ; +0xf2, 0x66597a LDR.W R0, [R4,#0x2A8]; this ; +0xf4, 0x66597c BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xf8, 0x665980 MOV R1, R7 ; +0xfc, 0x665984 ADDS R5, #1 ; +0xfe, 0x665986 LDR R3, [R0] ; +0x100, 0x665988 LDR.W R3, [R3,#0xAC] ; +0x102, 0x66598a BLX R3 ; +0x106, 0x66598e B loc_66596E ; +0x108, 0x665990 LDR.W R0, [R4,#0x220] ; +0x10a, 0x665992 LDR.W R5, [R4,#0x24C] ; +0x10e, 0x665996 LDR R3, [R0] ; +0x112, 0x66599a LDR.W R3, [R3,#0x31C] ; +0x114, 0x66599c BLX R3 ; +0x118, 0x6659a0 CLZ.W R0, R0 ; +0x11a, 0x6659a2 LSRS R0, R0, #5 ; +0x11e, 0x6659a6 STRB.W R0, [R5,#0x1C4] ; +0x120, 0x6659a8 POP.W {R3-R9,PC} ; +0x124, 0x6659ac