{"type": "func", "start": 13268516, "end": 13268856, "name": "DeathStatsPopup::onFetch", "pseudocode": "// \n// DeathStatsPopup::onFetch from 0xca7624 to 0xca7778 (340 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x91000\n// > DeathStatsPopup::init @ 0xca7e98\n// > <???> @ 0x1543e18\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:06:03 +0000\n// \n\n__int64 __fastcall DeathStatsPopup::onFetch(DeathStatsPopup *this, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *v3; // x0\n  int v4; // w21\n  CCTextInputNode *v5; // x0\n  char *v6; // x23\n  unsigned int v7; // w22\n  GameLevelManager *v8; // x0\n  char *v10; // x23\n  __int64 v11[2]; // [xsp+40h] [xbp+40h] BYREF\n  char *v12; // [xsp+50h] [xbp+50h]\n\n  v3 = *((CCTextInputNode **)this + 128);\n  if ( !v3 )\n    goto LABEL_12;\n  CCTextInputNode::getString(v3, v11);\n  if ( (v11[0] & 1) != 0 )\n  {\n    v10 = v12;\n    v4 = atoi(v12);\n    operator delete(v10);\n  }\n  else\n  {\n    v4 = atoi((const char *)v11 + 1);\n  }\n  if ( v4 > 0 )\n  {\n    v5 = *((CCTextInputNode **)this + 129);\n    if ( v5 )\n    {\n      CCTextInputNode::getString(v5, v11);\n      if ( (v11[0] & 1) != 0 )\n      {\n        v6 = v12;\n        v7 = atoi(v12);\n        operator delete(v6);\n      }\n      else\n      {\n        v5 = (CCTextInputNode *)atoi((const char *)v11 + 1);\n        v7 = (unsigned int)v5;\n      }\n    }\n    else\n    {\n      v7 = 0;\n    }\n    v8 = (GameLevelManager *)GameLevelManager::sharedState(v5);\n    GameLevelManager::forceDeathDataRefetch(v8, v4, v7);\n    *((_DWORD *)this + 262) = v4;\n    *((_DWORD *)this + 263) = v7;\n    *((_DWORD *)this + 264) = 0;\n    DeathStatsPopup::setStatus(this, \"Fetching...\");\n    cocos2d::CCNode::unschedule(this, DeathStatsPopup::pollFetch, 0);\n    cocos2d::CCNode::schedule(this, DeathStatsPopup::pollFetch, 0, 0.15);\n  }\n  else\n  {\nLABEL_12:\n    DeathStatsPopup::setStatus(this, \"Enter a valid level ID.\");\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; DeathStatsPopup::onFetch from 0xca7624 to 0xca7778 (340 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x91000\n; > DeathStatsPopup::init @ 0xca7e98\n; > <???> @ 0x1543e18\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:06:03 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xca7624\nMOV             X29, SP                                                ; +0x4, 0xca7628\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xca762c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xca7630\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0xca7634\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0xca7638\nMOV             X19, X0                                                ; +0x18, 0xca763c\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xca7640\nLDR             X0, [X0,#0x400]; this                                  ; +0x20, 0xca7644\nLDR             X1, [X1]                                               ; +0x24, 0xca7648\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x28, 0xca764c\nCBZ             X0, loc_CA7758                                         ; +0x2c, 0xca7650\nADD             X22, X29, #0x60+var_20                                 ; +0x30, 0xca7654\nMOV             X8, X22                                                ; +0x34, 0xca7658\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x38, 0xca765c\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0x3c, 0xca7660\nTBNZ            W0, #0, loc_CA772C                                     ; +0x40, 0xca7664\nADD             X0, X22, #1; char *                                    ; +0x44, 0xca7668\nBL              .atoi                                                  ; +0x48, 0xca766c\nMOV             W21, W0                                                ; +0x4c, 0xca7670\nCMP             W21, WZR                                               ; +0x50, 0xca7674\nB.LE            loc_CA7758                                             ; +0x54, 0xca7678\nLDR             X0, [X19,#0x408]; this                                 ; +0x58, 0xca767c\nCBZ             X0, loc_CA776C                                         ; +0x5c, 0xca7680\nMOV             X8, X22                                                ; +0x60, 0xca7684\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x64, 0xca7688\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0x68, 0xca768c\nTBZ             W0, #0, loc_CA7748                                     ; +0x6c, 0xca7690\nLDR             X23, [X29,#0x60+var_10]                                ; +0x70, 0xca7694\nMOV             X0, X23; char *                                        ; +0x74, 0xca7698\nBL              .atoi                                                  ; +0x78, 0xca769c\nMOV             W22, W0                                                ; +0x7c, 0xca76a0\nMOV             X0, X23; void *                                        ; +0x80, 0xca76a4\nBL              _ZdlPv; operator delete(void *)                        ; +0x84, 0xca76a8\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x88, 0xca76ac\nADRP            X23, #_ZN15DeathStatsPopup9pollFetchEf_ptr@PAGE        ; +0x8c, 0xca76b0\nMOV             W2, W22; int                                           ; +0x90, 0xca76b4\nMOV             W1, W21; int                                           ; +0x94, 0xca76b8\nBL              _ZN16GameLevelManager21forceDeathDataRefetchEii; GameLevelManager::forceDeathDataRefetch(int,int) ; +0x98, 0xca76bc\nSTR             W21, [X19,#0x418]                                      ; +0x9c, 0xca76c0\nFMOV            S0, WZR                                                ; +0xa0, 0xca76c4\nADRP            X1, #aFetching@PAGE; \"Fetching...\"                     ; +0xa4, 0xca76c8\nMOV             X0, X19; this                                          ; +0xa8, 0xca76cc\nADD             X1, X1, #aFetching@PAGEOFF; \"Fetching...\"              ; +0xac, 0xca76d0\nSTR             W22, [X19,#0x41C]                                      ; +0xb0, 0xca76d4\nSTR             S0, [X19,#0x420]                                       ; +0xb4, 0xca76d8\nBL              _ZN15DeathStatsPopup9setStatusEPKc; DeathStatsPopup::setStatus(char const*) ; +0xb8, 0xca76dc\nLDR             X1, [X23,#_ZN15DeathStatsPopup9pollFetchEf_ptr@PAGEOFF]; DeathStatsPopup::pollFetch(float) ... ; +0xbc, 0xca76e0\nMOV             X0, X19                                                ; +0xc0, 0xca76e4\nMOV             X2, #0                                                 ; +0xc4, 0xca76e8\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0xc8, 0xca76ec\nLDR             S0, =0x3E19999A                                        ; +0xcc, 0xca76f0\nLDR             X1, [X23,#_ZN15DeathStatsPopup9pollFetchEf_ptr@PAGEOFF]; DeathStatsPopup::pollFetch(float) ... ; +0xd0, 0xca76f4\nMOV             X0, X19                                                ; +0xd4, 0xca76f8\nMOV             X2, #0                                                 ; +0xd8, 0xca76fc\nBL              _ZN7cocos2d6CCNode8scheduleEMNS_8CCObjectEFvfEf; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float) ; +0xdc, 0xca7700\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0xca7704\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xe4, 0xca7708\nLDR             X0, [X20]                                              ; +0xe8, 0xca770c\nCMP             X1, X0                                                 ; +0xec, 0xca7710\nB.NE            loc_CA7774                                             ; +0xf0, 0xca7714\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xf4, 0xca7718\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xf8, 0xca771c\nLDR             X23, [SP,#0x60+var_30]                                 ; +0xfc, 0xca7720\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x100, 0xca7724\nRET                                                                    ; +0x104, 0xca7728\nLDR             X23, [X29,#0x60+var_10]                                ; +0x108, 0xca772c\nMOV             X0, X23; char *                                        ; +0x10c, 0xca7730\nBL              .atoi                                                  ; +0x110, 0xca7734\nMOV             W21, W0                                                ; +0x114, 0xca7738\nMOV             X0, X23; void *                                        ; +0x118, 0xca773c\nBL              _ZdlPv; operator delete(void *)                        ; +0x11c, 0xca7740\nB               loc_CA7674                                             ; +0x120, 0xca7744\nADD             X0, X22, #1; char *                                    ; +0x124, 0xca7748\nBL              .atoi                                                  ; +0x128, 0xca774c\nMOV             W22, W0                                                ; +0x12c, 0xca7750\nB               loc_CA76AC                                             ; +0x130, 0xca7754\nADRP            X1, #aEnterAValidLev@PAGE; \"Enter a valid level ID.\"   ; +0x134, 0xca7758\nMOV             X0, X19; this                                          ; +0x138, 0xca775c\nADD             X1, X1, #aEnterAValidLev@PAGEOFF; \"Enter a valid level ID.\" ; +0x13c, 0xca7760\nBL              _ZN15DeathStatsPopup9setStatusEPKc; DeathStatsPopup::setStatus(char const*) ; +0x140, 0xca7764\nB               loc_CA7704                                             ; +0x144, 0xca7768\nMOV             W22, #0                                                ; +0x148, 0xca776c\nB               loc_CA76AC                                             ; +0x14c, 0xca7770\nBL              .__stack_chk_fail                                      ; +0x150, 0xca7774", "xrefs": ["<???> @ 0x91000", "DeathStatsPopup::init @ 0xca7e98", "<???> @ 0x1543e18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}