{"type": "func", "start": 9951776, "end": 9951968, "name": "GJBigSpriteNode::~GJBigSpriteNode", "pseudocode": "// \n// GJBigSpriteNode::~GJBigSpriteNode from 0x97da20 to 0x97dae0 (192 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x532e0\n// > <???> @ 0x11c4020\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 __fastcall GJBigSpriteNode::~GJBigSpriteNode(GJBigSpriteNode *this)\n{\n  stl::StringData<char>::Internal *m_data; // x2\n  char *v3; // x0\n  unsigned int *v4; // x2\n  int v5; // w1\n\n  m_data = this->m_spriteName.m_data.m_data;\n  this->__vftable = (GJBigSpriteNode_vtbl *)&off_11C4010;\n  v3 = (char *)m_data - 24;\n  if ( (__int64 *)((char *)m_data - 24) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v4 = (unsigned int *)((char *)m_data - 8);\n      do\n        v5 = __ldaxr(v4);\n      while ( __stlxr(v5 - 1, v4) );\n    }\n    else\n    {\n      v5 = *((_DWORD *)m_data - 2);\n      *((_DWORD *)m_data - 2) = v5 - 1;\n    }\n    if ( v5 <= 0 )\n      operator delete(v3);\n  }\n  cocos2d::CCNode::~CCNode(this);\n  operator delete(this);\n}", "assembly": "; \n; GJBigSpriteNode::~GJBigSpriteNode from 0x97da20 to 0x97dae0 (192 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x532e0\n; > <???> @ 0x11c4020\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_30]!                                ; +0x0, 0x97da20\nMOV             X29, SP                                                ; +0x4, 0x97da24\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x97da28\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x97da2c\nMOV             X20, X0                                                ; +0x10, 0x97da30\nADRP            X0, #_ZTV15GJBigSpriteNode_ptr@PAGE                    ; +0x14, 0x97da34\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x97da38\nLDR             X0, [X0,#_ZTV15GJBigSpriteNode_ptr@PAGEOFF]; `vtable for'GJBigSpriteNode ... ; +0x1c, 0x97da3c\nLDR             X2, [X20,#0x140]                                       ; +0x20, 0x97da40\nLDR             X1, [X1]                                               ; +0x24, 0x97da44\nADD             X0, X0, #0x10                                          ; +0x28, 0x97da48\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x2c, 0x97da4c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x30, 0x97da50\nSTR             X0, [X20]                                              ; +0x34, 0x97da54\nSUB             X0, X2, #0x18; p                                       ; +0x38, 0x97da58\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x3c, 0x97da5c\nCMP             X0, X1                                                 ; +0x40, 0x97da60\nB.NE            loc_97DA98                                             ; +0x44, 0x97da64\nMOV             X0, X20; this                                          ; +0x48, 0x97da68\nBL              _ZN7cocos2d6CCNodeD1Ev; cocos2d::CCNode::~CCNode()     ; +0x4c, 0x97da6c\nMOV             X0, X20; p                                             ; +0x50, 0x97da70\nBL              _ZdlPv; operator delete(void *)                        ; +0x54, 0x97da74\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x58, 0x97da78\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x5c, 0x97da7c\nLDR             X0, [X19]                                              ; +0x60, 0x97da80\nCMP             X1, X0                                                 ; +0x64, 0x97da84\nB.NE            loc_97DADC                                             ; +0x68, 0x97da88\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x6c, 0x97da8c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x97da90\nRET                                                                    ; +0x74, 0x97da94\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0x78, 0x97da98\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x7c, 0x97da9c\nCBZ             X1, loc_97DACC                                         ; +0x80, 0x97daa0\nSUB             X2, X2, #8                                             ; +0x84, 0x97daa4\nLDAXR           W1, [X2]                                               ; +0x88, 0x97daa8\nSUB             W3, W1, #1                                             ; +0x8c, 0x97daac\nSTLXR           W4, W3, [X2]                                           ; +0x90, 0x97dab0\nCBNZ            W4, loc_97DAA8                                         ; +0x94, 0x97dab4\nCMP             W1, WZR                                                ; +0x98, 0x97dab8\nB.GT            loc_97DA68                                             ; +0x9c, 0x97dabc\nADD             X1, X29, #0x30+var_10                                  ; +0xa0, 0x97dac0\nBL              j__ZdlPv; operator delete(void *)                      ; +0xa4, 0x97dac4\nB               loc_97DA68                                             ; +0xa8, 0x97dac8\nLDUR            W1, [X2,#-8]                                           ; +0xac, 0x97dacc\nSUB             W3, W1, #1                                             ; +0xb0, 0x97dad0\nSTUR            W3, [X2,#-8]                                           ; +0xb4, 0x97dad4\nB               loc_97DAB8                                             ; +0xb8, 0x97dad8\nBL              .__stack_chk_fail                                      ; +0xbc, 0x97dadc", "xrefs": ["<???> @ 0x532e0", "<???> @ 0x11c4020"], "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"}