{"type": "func", "start": 4685804, "end": 4686024, "name": "GJBaseGameLayer::unclaimParticle", "pseudocode": "// \n// GJBaseGameLayer::unclaimParticle from 0x477fec to 0x4780c8 (220 bytes)\n// \n// 1 xrefs:\n// > GameObject::unclaimParticle @ 0x35314a\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::unclaimParticle(GJBaseGameLayer *a1, const char *a2, cocos2d::CCParticleSystemQuad *a3)\n{\n  cocos2d::CCDictionary *m_particlesDict; // r9\n  cocos2d::CCArray *v7; // r9\n  cocos2d::CCDictionary *v8; // r11\n  cocos2d::CCArray *v9; // r10\n  const char *v10; // [sp+4h] [bp-10h] BYREF\n  std::string v11; // [sp+8h] [bp-Ch] BYREF\n\n  if ( a3 )\n  {\n    m_particlesDict = a1->m_particlesDict;\n    sub_776584((int)&v11, (char *)a2);\n    v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_particlesDict, &v11);\n    sub_774008(&v11);\n    if ( v7 )\n    {\n      v8 = a1->m_particlesDict;\n      sub_776584((int)&v10, (char *)a2);\n      GJBaseGameLayer::getParticleKey2((int)&v11, (int)a1, &v10);\n      v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v8, &v11);\n      sub_774008(&v11);\n      sub_774008(&v10);\n      cocos2d::CCArray::addObject(v7, a3);\n      cocos2d::CCArray::removeObject(v9, a3, 1);\n      cocos2d::CCArray::removeObject(a1->m_temporaryParticles, a3, 1);\n      a3->setVisible(a3, 0);\n      a3->removeFromParentAndCleanup(a3, 0);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::unclaimParticle from 0x477fec to 0x4780c8 (220 bytes)\n; \n; 1 xrefs:\n; > GameObject::unclaimParticle @ 0x35314a\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 - 0x477FF6)                ; +0x0, 0x477fec\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x477fee\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x477ff2\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x477ff4\nMOV             R7, R0                                                 ; +0xa, 0x477ff6\nSUB             SP, SP, #0x14                                          ; +0xc, 0x477ff8\nLDR             R0, [R3]                                               ; +0xe, 0x477ffa\nMOV             R10, R1                                                ; +0x10, 0x477ffc\nMOV             R5, R2                                                 ; +0x12, 0x477ffe\nMOV             R8, R3                                                 ; +0x14, 0x478000\nSTR             R0, [SP,#0x14+var_8]                                   ; +0x16, 0x478002\nCMP             R2, #0                                                 ; +0x18, 0x478004\nBEQ             loc_4780B4                                             ; +0x1a, 0x478006\nMOVW            R3, #0x2A28                                            ; +0x1c, 0x478008\nADD             R4, SP, #0x14+var_C                                    ; +0x20, 0x47800c\nLDR.W           R9, [R7,R3]                                            ; +0x22, 0x47800e\nADD             R6, SP, #0x14+var_10                                   ; +0x26, 0x478012\nMOV             R0, R4; int                                            ; +0x28, 0x478014\nMOV             R2, R6                                                 ; +0x2a, 0x478016\nBL              sub_776584                                             ; +0x2c, 0x478018\nMOV             R0, R9                                                 ; +0x30, 0x47801c\nMOV             R1, R4                                                 ; +0x32, 0x47801e\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x34, 0x478020\nMOV             R9, R0                                                 ; +0x38, 0x478024\nMOV             R0, R4                                                 ; +0x3a, 0x478026\nBL              sub_774008                                             ; +0x3c, 0x478028\nCMP.W           R9, #0                                                 ; +0x40, 0x47802c\nBEQ             loc_4780B4                                             ; +0x44, 0x478030\nMOVW            R3, #0x2A28                                            ; +0x46, 0x478032\nMOV             R1, R10; char *                                        ; +0x4a, 0x478036\nMOV             R2, SP                                                 ; +0x4c, 0x478038\nMOV             R0, R6; int                                            ; +0x4e, 0x47803a\nLDR.W           R11, [R7,R3]                                           ; +0x50, 0x47803c\nBL              sub_776584                                             ; +0x54, 0x478040\nMOV             R0, R4                                                 ; +0x58, 0x478044\nMOV             R1, R7                                                 ; +0x5a, 0x478046\nMOV             R2, R6                                                 ; +0x5c, 0x478048\nBL              _ZN15GJBaseGameLayer15getParticleKey2ESs; GJBaseGameLayer::getParticleKey2(std::string) ; +0x5e, 0x47804a\nMOV             R0, R11                                                ; +0x62, 0x47804e\nMOV             R1, R4                                                 ; +0x64, 0x478050\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x66, 0x478052\nMOV             R10, R0                                                ; +0x6a, 0x478056\nMOV             R0, R4                                                 ; +0x6c, 0x478058\nBL              sub_774008                                             ; +0x6e, 0x47805a\nMOV             R0, R6                                                 ; +0x72, 0x47805e\nBL              sub_774008                                             ; +0x74, 0x478060\nMOV             R0, R9; this                                           ; +0x78, 0x478064\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x7a, 0x478066\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x7c, 0x478068\nMOV             R0, R10; this                                          ; +0x80, 0x47806c\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x82, 0x47806e\nMOVS            R2, #1; bool                                           ; +0x84, 0x478070\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x86, 0x478072\nMOVW            R3, #0x2A54                                            ; +0x8a, 0x478076\nLDR             R0, [R7,R3]; this                                      ; +0x8e, 0x47807a\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x90, 0x47807c\nMOVS            R2, #1; bool                                           ; +0x92, 0x47807e\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x94, 0x478080\nLDR             R3, [R5]                                               ; +0x98, 0x478084\nMOV             R0, R5                                                 ; +0x9a, 0x478086\nMOVS            R1, #0                                                 ; +0x9c, 0x478088\nLDR.W           R3, [R3,#0xA4]                                         ; +0x9e, 0x47808a\nBLX             R3                                                     ; +0xa2, 0x47808e\nLDR             R3, [R5]                                               ; +0xa4, 0x478090\nMOV             R0, R5                                                 ; +0xa6, 0x478092\nMOVS            R1, #0                                                 ; +0xa8, 0x478094\nLDR.W           R3, [R3,#0x100]                                        ; +0xaa, 0x478096\nBLX             R3                                                     ; +0xae, 0x47809a\nB               loc_4780B4                                             ; +0xb0, 0x47809c\nMOV             R0, R4                                                 ; +0xb2, 0x47809e\nB               loc_4780AC                                             ; +0xb4, 0x4780a0\nMOV             R0, R4                                                 ; +0xb6, 0x4780a2\nBL              sub_774008                                             ; +0xb8, 0x4780a4\nB               loc_4780AA                                             ; +0xbc, 0x4780a8\nMOV             R0, R6                                                 ; +0xbe, 0x4780aa\nBL              sub_774008                                             ; +0xc0, 0x4780ac\nBL              __cxa_end_cleanup                                      ; +0xc4, 0x4780b0\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xc8, 0x4780b4\nLDR.W           R3, [R8]                                               ; +0xca, 0x4780b6\nCMP             R2, R3                                                 ; +0xce, 0x4780ba\nBEQ             loc_4780C2                                             ; +0xd0, 0x4780bc\nBLX             __stack_chk_fail                                       ; +0xd2, 0x4780be\nADD             SP, SP, #0x14                                          ; +0xd6, 0x4780c2\nPOP.W           {R4-R11,PC}                                            ; +0xd8, 0x4780c4", "xrefs": ["GameObject::unclaimParticle @ 0x35314a"], "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"}