{"type": "func", "start": 4771092, "end": 4771216, "name": "GJBaseGameLayer::removeTemporaryParticles", "pseudocode": "// \n// GJBaseGameLayer::removeTemporaryParticles from 0x48cd14 to 0x48cd90 (124 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x491bb4\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  cocos2d::CCArray **p_m_temporaryParticles; // r8\n  int *p_m_customParticlesUIDs; // r4\n  unsigned int v3; // r7\n  _DWORD *v4; // r5\n  GJBaseGameLayer *v5; // [sp+0h] [bp-Ch] BYREF\n\n  v5 = a1;\n  p_m_temporaryParticles = &a1->m_temporaryParticles;\n  p_m_customParticlesUIDs = (int *)&a1->m_customParticlesUIDs;\n  v3 = 0;\n  while ( v3 < cocos2d::CCArray::count(*p_m_temporaryParticles) )\n  {\n    v4 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*p_m_temporaryParticles, v3);\n    if ( (*(int (__fastcall **)(_DWORD *))(*v4 + 780))(v4) )\n    {\n      (*(void (__fastcall **)(_DWORD *))(*v4 + 260))(v4);\n      v5 = (GJBaseGameLayer *)v4[1];\n      sub_48CCE8(p_m_customParticlesUIDs, &v5);\n      cocos2d::CCArray::fastRemoveObjectAtIndex(*p_m_temporaryParticles, v3);\n    }\n    else\n    {\n      ++v3;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeTemporaryParticles from 0x48cd14 to 0x48cd90 (124 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x491bb4\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x48CD1E)                ; +0x0, 0x48cd14\nPUSH.W          {R0-R2,R4-R9,LR}                                       ; +0x2, 0x48cd16\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x48cd1a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x48cd1c\nADD.W           R8, R0, #0x2A40                                        ; +0xa, 0x48cd1e\nADD.W           R4, R0, #0x2A40                                        ; +0xe, 0x48cd22\nLDR             R2, [R3]                                               ; +0x12, 0x48cd26\nADD.W           R8, R8, #0x14                                          ; +0x14, 0x48cd28\nADDS            R4, #0x18                                              ; +0x18, 0x48cd2c\nMOVS            R7, #0                                                 ; +0x1a, 0x48cd2e\nMOV             R6, R3                                                 ; +0x1c, 0x48cd30\nMOV             R9, SP                                                 ; +0x1e, 0x48cd32\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x20, 0x48cd34\nLDR.W           R0, [R8]; this                                         ; +0x22, 0x48cd36\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x48cd3a\nCMP             R7, R0                                                 ; +0x2a, 0x48cd3e\nBCS             loc_48CD7E                                             ; +0x2c, 0x48cd40\nLDR.W           R0, [R8]; this                                         ; +0x2e, 0x48cd42\nMOV             R1, R7; unsigned int                                   ; +0x32, 0x48cd46\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x48cd48\nLDR             R3, [R0]                                               ; +0x38, 0x48cd4c\nMOV             R5, R0                                                 ; +0x3a, 0x48cd4e\nLDR.W           R3, [R3,#0x30C]                                        ; +0x3c, 0x48cd50\nBLX             R3                                                     ; +0x40, 0x48cd54\nCBZ             R0, loc_48CD7A                                         ; +0x42, 0x48cd56\nLDR             R3, [R5]                                               ; +0x44, 0x48cd58\nMOV             R0, R5                                                 ; +0x46, 0x48cd5a\nLDR.W           R3, [R3,#0x104]                                        ; +0x48, 0x48cd5c\nBLX             R3                                                     ; +0x4c, 0x48cd60\nLDR             R3, [R5,#4]                                            ; +0x4e, 0x48cd62\nMOV             R1, R9                                                 ; +0x50, 0x48cd64\nMOV             R0, R4                                                 ; +0x52, 0x48cd66\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x54, 0x48cd68\nBL              sub_48CCE8                                             ; +0x56, 0x48cd6a\nLDR.W           R0, [R8]; this                                         ; +0x5a, 0x48cd6e\nMOV             R1, R7; unsigned int                                   ; +0x5e, 0x48cd72\nBL              _ZN7cocos2d7CCArray23fastRemoveObjectAtIndexEj; cocos2d::CCArray::fastRemoveObjectAtIndex(uint) ; +0x60, 0x48cd74\nB               loc_48CD36                                             ; +0x64, 0x48cd78\nADDS            R7, #1                                                 ; +0x66, 0x48cd7a\nB               loc_48CD36                                             ; +0x68, 0x48cd7c\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x6a, 0x48cd7e\nLDR             R3, [R6]                                               ; +0x6c, 0x48cd80\nCMP             R2, R3                                                 ; +0x6e, 0x48cd82\nBEQ             loc_48CD8A                                             ; +0x70, 0x48cd84\nBLX             __stack_chk_fail                                       ; +0x72, 0x48cd86\nADD             SP, SP, #0xC                                           ; +0x76, 0x48cd8a\nPOP.W           {R4-R9,PC}                                             ; +0x78, 0x48cd8c", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x491bb4"], "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"}