{"type": "func", "start": 8001832, "end": 8002024, "name": "GJChallengeItem::~GJChallengeItem", "pseudocode": "// \n// GJChallengeItem::~GJChallengeItem from 0x7a1928 to 0x7a19e8 (192 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x7e4c8\n// > <???> @ 0x117c140\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 GJChallengeItem::~GJChallengeItem(GJChallengeItem *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_name.m_data.m_data;\n  this->__vftable = (GJChallengeItem_vtbl *)&off_117C130;\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::CCObject::~CCObject(this);\n  operator delete(this);\n}", "assembly": "; \n; GJChallengeItem::~GJChallengeItem from 0x7a1928 to 0x7a19e8 (192 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x7e4c8\n; > <???> @ 0x117c140\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, 0x7a1928\nMOV             X29, SP                                                ; +0x4, 0x7a192c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7a1930\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7a1934\nMOV             X20, X0                                                ; +0x10, 0x7a1938\nADRP            X0, #_ZTV15GJChallengeItem_ptr@PAGE                    ; +0x14, 0x7a193c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x7a1940\nLDR             X0, [X0,#_ZTV15GJChallengeItem_ptr@PAGEOFF]; `vtable for'GJChallengeItem ... ; +0x1c, 0x7a1944\nLDR             X2, [X20,#0x70]                                        ; +0x20, 0x7a1948\nLDR             X1, [X1]                                               ; +0x24, 0x7a194c\nADD             X0, X0, #0x10                                          ; +0x28, 0x7a1950\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x2c, 0x7a1954\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x30, 0x7a1958\nSTR             X0, [X20]                                              ; +0x34, 0x7a195c\nSUB             X0, X2, #0x18; p                                       ; +0x38, 0x7a1960\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x3c, 0x7a1964\nCMP             X0, X1                                                 ; +0x40, 0x7a1968\nB.NE            loc_7A19A0                                             ; +0x44, 0x7a196c\nMOV             X0, X20; this                                          ; +0x48, 0x7a1970\nBL              _ZN7cocos2d8CCObjectD1Ev; cocos2d::CCObject::~CCObject() ; +0x4c, 0x7a1974\nMOV             X0, X20; p                                             ; +0x50, 0x7a1978\nBL              _ZdlPv; operator delete(void *)                        ; +0x54, 0x7a197c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x58, 0x7a1980\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x5c, 0x7a1984\nLDR             X0, [X19]                                              ; +0x60, 0x7a1988\nCMP             X1, X0                                                 ; +0x64, 0x7a198c\nB.NE            loc_7A19E4                                             ; +0x68, 0x7a1990\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x6c, 0x7a1994\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x7a1998\nRET                                                                    ; +0x74, 0x7a199c\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0x78, 0x7a19a0\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x7c, 0x7a19a4\nCBZ             X1, loc_7A19D4                                         ; +0x80, 0x7a19a8\nSUB             X2, X2, #8                                             ; +0x84, 0x7a19ac\nLDAXR           W1, [X2]                                               ; +0x88, 0x7a19b0\nSUB             W3, W1, #1                                             ; +0x8c, 0x7a19b4\nSTLXR           W4, W3, [X2]                                           ; +0x90, 0x7a19b8\nCBNZ            W4, loc_7A19B0                                         ; +0x94, 0x7a19bc\nCMP             W1, WZR                                                ; +0x98, 0x7a19c0\nB.GT            loc_7A1970                                             ; +0x9c, 0x7a19c4\nADD             X1, X29, #0x30+var_10                                  ; +0xa0, 0x7a19c8\nBL              j__ZdlPv; operator delete(void *)                      ; +0xa4, 0x7a19cc\nB               loc_7A1970                                             ; +0xa8, 0x7a19d0\nLDUR            W1, [X2,#-8]                                           ; +0xac, 0x7a19d4\nSUB             W3, W1, #1                                             ; +0xb0, 0x7a19d8\nSTUR            W3, [X2,#-8]                                           ; +0xb4, 0x7a19dc\nB               loc_7A19C0                                             ; +0xb8, 0x7a19e0\nBL              .__stack_chk_fail                                      ; +0xbc, 0x7a19e4", "xrefs": ["<???> @ 0x7e4c8", "<???> @ 0x117c140"], "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"}