{"type": "func", "start": 8947892, "end": 8948116, "name": "GJBaseGameLayer::removeTemporaryParticles", "pseudocode": "// \n// GJBaseGameLayer::removeTemporaryParticles from 0x8888b4 to 0x888994 (224 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x88aa90\n// > <???> @ 0x92328\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::removeTemporaryParticles(GJBaseGameLayer *a1)\n{\n  __int64 *p_m_customParticlesUIDs; // x22\n  unsigned int i; // w19\n  _DWORD *v4; // x20\n  int v5; // [xsp+44h] [xbp+44h] BYREF\n\n  p_m_customParticlesUIDs = (__int64 *)&a1->m_customParticlesUIDs;\n  for ( i = 0;\n        i < (unsigned int)cocos2d::CCArray::count(a1->m_temporaryParticles);\n        cocos2d::CCArray::fastRemoveObjectAtIndex(a1->m_temporaryParticles, i) )\n  {\n    while ( 1 )\n    {\n      v4 = (_DWORD *)cocos2d::CCArray::objectAtIndex(a1->m_temporaryParticles, i);\n      if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1560LL))(v4) )\n        break;\n      if ( ++i >= (unsigned int)cocos2d::CCArray::count(a1->m_temporaryParticles) )\n        return;\n    }\n    (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 520LL))(v4);\n    v5 = v4[2];\n    sub_888850(p_m_customParticlesUIDs, &v5);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeTemporaryParticles from 0x8888b4 to 0x888994 (224 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x88aa90\n; > <???> @ 0x92328\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x8888b4\nMOV             X29, SP                                                ; +0x4, 0x8888b8\nSTP             X23, X24, [SP,#0x50+var_20]                            ; +0x8, 0x8888bc\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8888c0\nADD             X24, X29, #0x50+var_C                                  ; +0x10, 0x8888c4\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x8888c8\nADD             X22, X0, #3,LSL#12                                     ; +0x18, 0x8888cc\nMOV             X21, X0                                                ; +0x1c, 0x8888d0\nLDR             X0, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x8888d4\nADD             X22, X22, #0x190                                       ; +0x24, 0x8888d8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x28, 0x8888dc\nMOV             W19, #0                                                ; +0x2c, 0x8888e0\nLDR             X0, [X0]                                               ; +0x30, 0x8888e4\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x34, 0x8888e8\nLDR             X0, [X21,#0x3188]; this                                ; +0x38, 0x8888ec\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3c, 0x8888f0\nCMP             W19, W0                                                ; +0x40, 0x8888f4\nB.CS            loc_888934                                             ; +0x44, 0x8888f8\nLDR             X0, [X21,#0x3188]; this                                ; +0x48, 0x8888fc\nMOV             W1, W19; unsigned int                                  ; +0x4c, 0x888900\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x50, 0x888904\nLDR             X1, [X0]                                               ; +0x54, 0x888908\nMOV             X20, X0                                                ; +0x58, 0x88890c\nLDR             X1, [X1,#0x618]                                        ; +0x5c, 0x888910\nBLR             X1                                                     ; +0x60, 0x888914\nUXTB            W0, W0                                                 ; +0x64, 0x888918\nCBNZ            W0, loc_88895C                                         ; +0x68, 0x88891c\nLDR             X0, [X21,#0x3188]; this                                ; +0x6c, 0x888920\nADD             W19, W19, #1                                           ; +0x70, 0x888924\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x74, 0x888928\nCMP             W19, W0                                                ; +0x78, 0x88892c\nB.CC            loc_8888FC                                             ; +0x7c, 0x888930\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x80, 0x888934\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x84, 0x888938\nLDR             X0, [X23]                                              ; +0x88, 0x88893c\nCMP             X1, X0                                                 ; +0x8c, 0x888940\nB.NE            loc_888990                                             ; +0x90, 0x888944\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0x888948\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x98, 0x88894c\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0x9c, 0x888950\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa0, 0x888954\nRET                                                                    ; +0xa4, 0x888958\nLDR             X1, [X20]                                              ; +0xa8, 0x88895c\nMOV             X0, X20                                                ; +0xac, 0x888960\nLDR             X1, [X1,#0x208]                                        ; +0xb0, 0x888964\nBLR             X1                                                     ; +0xb4, 0x888968\nLDR             W2, [X20,#8]                                           ; +0xb8, 0x88896c\nMOV             X1, X24                                                ; +0xbc, 0x888970\nMOV             X0, X22                                                ; +0xc0, 0x888974\nSTR             W2, [X29,#0x50+var_C]                                  ; +0xc4, 0x888978\nBL              sub_888850                                             ; +0xc8, 0x88897c\nLDR             X0, [X21,#0x3188]; this                                ; +0xcc, 0x888980\nMOV             W1, W19; unsigned int                                  ; +0xd0, 0x888984\nBL              _ZN7cocos2d7CCArray23fastRemoveObjectAtIndexEj; cocos2d::CCArray::fastRemoveObjectAtIndex(uint) ; +0xd4, 0x888988\nB               loc_8888EC                                             ; +0xd8, 0x88898c\nBL              .__stack_chk_fail                                      ; +0xdc, 0x888990", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x88aa90", "<???> @ 0x92328"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}