{"type": "func", "start": 11529764, "end": 11530248, "name": "CreateParticlePopup::toggleGravityMode", "pseudocode": "// \n// CreateParticlePopup::toggleGravityMode from 0xafee24 to 0xaff008 (484 bytes)\n// \n// 4 xrefs:\n// > CreateParticlePopup::onEmitterMode @ 0xaff088\n// > CreateParticlePopup::onPage @ 0xaff290\n// > CreateParticlePopup::init @ 0xb01ea0\n// > <???> @ 0xe8060\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:01:19 +0000\n// \n\nbool __fastcall CreateParticlePopup::toggleGravityMode(cocos2d::CCArray **this, unsigned __int8 a2)\n{\n  unsigned int v2; // w20\n  cocos2d::CCDictionary *PageInputNodes; // x23\n  __int64 v5; // x19\n  cocos2d::CCDictionary *PageSliders; // x24\n  __int64 v7; // x0\n  __int64 v8; // x0\n  __int64 v9; // x0\n  __int64 v10; // x1\n  __int64 v11; // x0\n  unsigned int v12; // w22\n  __int64 i; // x19\n  __int64 v14; // x0\n  __int64 v15; // x0\n  __int64 v16; // x0\n  __int64 v17; // x1\n  __int64 v18; // x0\n  unsigned int v19; // w19\n  __int64 v20; // x0\n  bool v21; // cf\n  unsigned int v22; // w1\n  unsigned int v23; // w19\n  __int64 v24; // x0\n  unsigned int v25; // w1\n  __int64 v26; // x19\n  _BOOL8 result; // x0\n\n  v2 = a2;\n  PageInputNodes = (cocos2d::CCDictionary *)CreateParticlePopup::getPageInputNodes(this, 0);\n  v5 = 8;\n  PageSliders = (cocos2d::CCDictionary *)CreateParticlePopup::getPageSliders(this, 0);\n  do\n  {\n    v7 = cocos2d::CCDictionary::objectForKey(PageInputNodes, v5);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, v2);\n    v8 = cocos2d::CCDictionary::objectForKey(PageInputNodes, v5);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 1000LL))(v8, v2);\n    v9 = cocos2d::CCDictionary::objectForKey(PageSliders, v5);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, v2);\n    v10 = v5++;\n    v11 = cocos2d::CCDictionary::objectForKey(PageSliders, v10);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 1000LL))(v11, v2);\n  }\n  while ( v5 != 18 );\n  v12 = v2 ^ 1;\n  for ( i = 50; i != 56; ++i )\n  {\n    v14 = cocos2d::CCDictionary::objectForKey(PageInputNodes, i);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 344LL))(v14, v12);\n    v15 = cocos2d::CCDictionary::objectForKey(PageInputNodes, i);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 1000LL))(v15, v12);\n    v16 = cocos2d::CCDictionary::objectForKey(PageSliders, i);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 344LL))(v16, v12);\n    v17 = i;\n    v18 = cocos2d::CCDictionary::objectForKey(PageSliders, v17);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v18 + 1000LL))(v18, v12);\n  }\n  v19 = 0;\n  while ( 1 )\n  {\n    v21 = v19 >= (unsigned int)cocos2d::CCArray::count(*(this + 120));\n    v22 = v19++;\n    if ( v21 )\n      break;\n    v20 = cocos2d::CCArray::objectAtIndex(*(this + 120), v22);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 344LL))(v20, v2);\n  }\n  v23 = 0;\n  while ( 1 )\n  {\n    v21 = v23 >= (unsigned int)cocos2d::CCArray::count(*(this + 121));\n    v25 = v23++;\n    if ( v21 )\n      break;\n    v24 = cocos2d::CCArray::objectAtIndex(*(this + 121), v25);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 344LL))(v24, v12);\n  }\n  v26 = (__int64)*(this + 99);\n  result = (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 89) + 1592LL))(*(this + 89)) == 0;\n  *(_BYTE *)(v26 + 560) = result;\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::toggleGravityMode from 0xafee24 to 0xaff008 (484 bytes)\n; \n; 4 xrefs:\n; > CreateParticlePopup::onEmitterMode @ 0xaff088\n; > CreateParticlePopup::onPage @ 0xaff290\n; > CreateParticlePopup::init @ 0xb01ea0\n; > <???> @ 0xe8060\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:01:19 +0000\n; \nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0xafee24\nMOV             X29, SP                                                ; +0x4, 0xafee28\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xafee2c\nUXTB            W20, W1                                                ; +0xc, 0xafee30\nMOV             W1, #0; int                                            ; +0x10, 0xafee34\nSTP             X23, X24, [SP,#var_s30]                                ; +0x14, 0xafee38\nSTP             X21, X22, [SP,#var_s20]                                ; +0x18, 0xafee3c\nMOV             X21, X0                                                ; +0x1c, 0xafee40\nBL              _ZN19CreateParticlePopup17getPageInputNodesEi; CreateParticlePopup::getPageInputNodes(int) ; +0x20, 0xafee44\nMOV             W1, #0; int                                            ; +0x24, 0xafee48\nMOV             X23, X0                                                ; +0x28, 0xafee4c\nMOV             X0, X21; this                                          ; +0x2c, 0xafee50\nMOV             X19, #8                                                ; +0x30, 0xafee54\nBL              _ZN19CreateParticlePopup14getPageSlidersEi; CreateParticlePopup::getPageSliders(int) ; +0x34, 0xafee58\nMOV             X24, X0                                                ; +0x38, 0xafee5c\nMOV             X1, X19; __int64                                       ; +0x3c, 0xafee60\nMOV             X0, X23; this                                          ; +0x40, 0xafee64\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x44, 0xafee68\nLDR             X2, [X0]                                               ; +0x48, 0xafee6c\nMOV             W1, W20                                                ; +0x4c, 0xafee70\nLDR             X2, [X2,#0x158]                                        ; +0x50, 0xafee74\nBLR             X2                                                     ; +0x54, 0xafee78\nMOV             X1, X19; __int64                                       ; +0x58, 0xafee7c\nMOV             X0, X23; this                                          ; +0x5c, 0xafee80\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x60, 0xafee84\nLDR             X2, [X0]                                               ; +0x64, 0xafee88\nMOV             W1, W20                                                ; +0x68, 0xafee8c\nLDR             X2, [X2,#0x3E8]                                        ; +0x6c, 0xafee90\nBLR             X2                                                     ; +0x70, 0xafee94\nMOV             X1, X19; __int64                                       ; +0x74, 0xafee98\nMOV             X0, X24; this                                          ; +0x78, 0xafee9c\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x7c, 0xafeea0\nLDR             X2, [X0]                                               ; +0x80, 0xafeea4\nMOV             W1, W20                                                ; +0x84, 0xafeea8\nLDR             X2, [X2,#0x158]                                        ; +0x88, 0xafeeac\nBLR             X2                                                     ; +0x8c, 0xafeeb0\nMOV             X1, X19; __int64                                       ; +0x90, 0xafeeb4\nMOV             X0, X24; this                                          ; +0x94, 0xafeeb8\nADD             X19, X19, #1                                           ; +0x98, 0xafeebc\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x9c, 0xafeec0\nLDR             X2, [X0]                                               ; +0xa0, 0xafeec4\nMOV             W1, W20                                                ; +0xa4, 0xafeec8\nLDR             X2, [X2,#0x3E8]                                        ; +0xa8, 0xafeecc\nBLR             X2                                                     ; +0xac, 0xafeed0\nCMP             X19, #0x12                                             ; +0xb0, 0xafeed4\nB.NE            loc_AFEE60                                             ; +0xb4, 0xafeed8\nEOR             W22, W20, #1                                           ; +0xb8, 0xafeedc\nMOV             X19, #0x32 ; '2'                                       ; +0xbc, 0xafeee0\nMOV             X1, X19; __int64                                       ; +0xc0, 0xafeee4\nMOV             X0, X23; this                                          ; +0xc4, 0xafeee8\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0xc8, 0xafeeec\nLDR             X2, [X0]                                               ; +0xcc, 0xafeef0\nMOV             W1, W22                                                ; +0xd0, 0xafeef4\nLDR             X2, [X2,#0x158]                                        ; +0xd4, 0xafeef8\nBLR             X2                                                     ; +0xd8, 0xafeefc\nMOV             X1, X19; __int64                                       ; +0xdc, 0xafef00\nMOV             X0, X23; this                                          ; +0xe0, 0xafef04\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0xe4, 0xafef08\nLDR             X2, [X0]                                               ; +0xe8, 0xafef0c\nMOV             W1, W22                                                ; +0xec, 0xafef10\nLDR             X2, [X2,#0x3E8]                                        ; +0xf0, 0xafef14\nBLR             X2                                                     ; +0xf4, 0xafef18\nMOV             X1, X19; __int64                                       ; +0xf8, 0xafef1c\nMOV             X0, X24; this                                          ; +0xfc, 0xafef20\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x100, 0xafef24\nLDR             X2, [X0]                                               ; +0x104, 0xafef28\nMOV             W1, W22                                                ; +0x108, 0xafef2c\nLDR             X2, [X2,#0x158]                                        ; +0x10c, 0xafef30\nBLR             X2                                                     ; +0x110, 0xafef34\nMOV             X1, X19; __int64                                       ; +0x114, 0xafef38\nMOV             X0, X24; this                                          ; +0x118, 0xafef3c\nADD             X19, X19, #1                                           ; +0x11c, 0xafef40\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x120, 0xafef44\nLDR             X2, [X0]                                               ; +0x124, 0xafef48\nMOV             W1, W22                                                ; +0x128, 0xafef4c\nLDR             X2, [X2,#0x3E8]                                        ; +0x12c, 0xafef50\nBLR             X2                                                     ; +0x130, 0xafef54\nCMP             X19, #0x38 ; '8'                                       ; +0x134, 0xafef58\nB.NE            loc_AFEEE4                                             ; +0x138, 0xafef5c\nMOV             W19, #0                                                ; +0x13c, 0xafef60\nB               loc_AFEF80                                             ; +0x140, 0xafef64\nLDR             X0, [X21,#0x3C0]; this                                 ; +0x144, 0xafef68\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x148, 0xafef6c\nLDR             X2, [X0]                                               ; +0x14c, 0xafef70\nMOV             W1, W20                                                ; +0x150, 0xafef74\nLDR             X2, [X2,#0x158]                                        ; +0x154, 0xafef78\nBLR             X2                                                     ; +0x158, 0xafef7c\nLDR             X0, [X21,#0x3C0]; this                                 ; +0x15c, 0xafef80\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x160, 0xafef84\nCMP             W19, W0                                                ; +0x164, 0xafef88\nMOV             W1, W19; unsigned int                                  ; +0x168, 0xafef8c\nADD             W19, W19, #1                                           ; +0x16c, 0xafef90\nB.CC            loc_AFEF68                                             ; +0x170, 0xafef94\nMOV             W19, #0                                                ; +0x174, 0xafef98\nB               loc_AFEFB8                                             ; +0x178, 0xafef9c\nLDR             X0, [X21,#0x3C8]; this                                 ; +0x17c, 0xafefa0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x180, 0xafefa4\nLDR             X2, [X0]                                               ; +0x184, 0xafefa8\nMOV             W1, W22                                                ; +0x188, 0xafefac\nLDR             X2, [X2,#0x158]                                        ; +0x18c, 0xafefb0\nBLR             X2                                                     ; +0x190, 0xafefb4\nLDR             X0, [X21,#0x3C8]; this                                 ; +0x194, 0xafefb8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x198, 0xafefbc\nCMP             W19, W0                                                ; +0x19c, 0xafefc0\nMOV             W1, W19; unsigned int                                  ; +0x1a0, 0xafefc4\nADD             W19, W19, #1                                           ; +0x1a4, 0xafefc8\nB.CC            loc_AFEFA0                                             ; +0x1a8, 0xafefcc\nLDR             X1, [X21,#0x2C8]                                       ; +0x1ac, 0xafefd0\nLDR             X19, [X21,#0x318]                                      ; +0x1b0, 0xafefd4\nMOV             X0, X1                                                 ; +0x1b4, 0xafefd8\nLDR             X1, [X1]                                               ; +0x1b8, 0xafefdc\nLDR             X1, [X1,#0x638]                                        ; +0x1bc, 0xafefe0\nBLR             X1                                                     ; +0x1c0, 0xafefe4\nCMP             W0, WZR                                                ; +0x1c4, 0xafefe8\nCSET            W0, EQ                                                 ; +0x1c8, 0xafefec\nSTRB            W0, [X19,#0x230]                                       ; +0x1cc, 0xafeff0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x1d0, 0xafeff4\nLDP             X21, X22, [SP,#var_s20]                                ; +0x1d4, 0xafeff8\nLDP             X23, X24, [SP,#var_s30]                                ; +0x1d8, 0xafeffc\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0x1dc, 0xaff000\nRET                                                                    ; +0x1e0, 0xaff004", "xrefs": ["CreateParticlePopup::onEmitterMode @ 0xaff088", "CreateParticlePopup::onPage @ 0xaff290", "CreateParticlePopup::init @ 0xb01ea0", "<???> @ 0xe8060"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}