{"type": "func", "start": 7795104, "end": 7795318, "name": "DeathStatsPopup::onFetch", "pseudocode": "// \n// DeathStatsPopup::onFetch from 0x76f1a0 to 0x76f276 (214 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:14 +0000\n// \n\nint __fastcall DeathStatsPopup::onFetch(DeathStatsPopup *this, cocos2d::CCObject *a2)\n{\n  int v2; // r1\n  const char *v5; // r0\n  int v6; // r8\n  GameLevelManager *v7; // r0\n  int v8; // r1\n  char *v9; // r0\n  int v10; // r5\n  GameLevelManager *v11; // r0\n  char v12; // [sp+10h] [bp-10h] BYREF\n  _BYTE v13[7]; // [sp+11h] [bp-Fh] BYREF\n  char *v14; // [sp+18h] [bp-8h]\n\n  v2 = *((_DWORD *)this + 179);\n  if ( !v2 )\n    return DeathStatsPopup::setStatus(this, \"Enter a valid level ID.\");\n  CCTextInputNode::getString((CCTextInputNode *)&v12, v2);\n  v5 = (v12 & 1) != 0 ? v14 : v13;\n  v6 = atoi(v5);\n  v7 = (GameLevelManager *)std::string::~string((int)&v12);\n  if ( v6 <= 0 )\n    return DeathStatsPopup::setStatus(this, \"Enter a valid level ID.\");\n  v8 = *((_DWORD *)this + 180);\n  if ( v8 )\n  {\n    CCTextInputNode::getString((CCTextInputNode *)&v12, v8);\n    if ( (v12 & 1) != 0 )\n      v9 = v14;\n    else\n      v9 = v13;\n    v10 = atoi(v9);\n    v7 = (GameLevelManager *)std::string::~string((int)&v12);\n  }\n  else\n  {\n    v10 = 0;\n  }\n  v11 = (GameLevelManager *)GameLevelManager::sharedState(v7);\n  GameLevelManager::forceDeathDataRefetch(v11, v6, v10);\n  *((_DWORD *)this + 183) = v10;\n  *((_DWORD *)this + 184) = 0;\n  *((_DWORD *)this + 182) = v6;\n  DeathStatsPopup::setStatus(this, \"Fetching...\");\n  cocos2d::CCNode::unschedule(this, DeathStatsPopup::pollFetch, 0);\n  return cocos2d::CCNode::schedule(this, DeathStatsPopup::pollFetch, 0, 1041865114);\n}", "assembly": "; \n; DeathStatsPopup::onFetch from 0x76f1a0 to 0x76f276 (214 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:14 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x76F1AA)                ; +0x0, 0x76f1a0\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x76f1a2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x76f1a6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x76f1a8\nLDR.W           R1, [R0,#0x2CC]                                        ; +0xa, 0x76f1aa\nSUB             SP, SP, #0x20                                          ; +0xe, 0x76f1ae\nLDR             R2, [R3]                                               ; +0x10, 0x76f1b0\nMOV             R4, R0                                                 ; +0x12, 0x76f1b2\nMOV             R7, R3                                                 ; +0x14, 0x76f1b4\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x16, 0x76f1b6\nCBNZ            R1, loc_76F1C6                                         ; +0x18, 0x76f1b8\nLDR             R1, =(aEnterAValidLev - 0x76F1C2); \"Enter a valid level ID.\" ; +0x1a, 0x76f1ba\nMOV             R0, R4; this                                           ; +0x1c, 0x76f1bc\nADD             R1, PC; \"Enter a valid level ID.\"                      ; +0x1e, 0x76f1be\nBL              _ZN15DeathStatsPopup9setStatusEPKc; DeathStatsPopup::setStatus(char const*) ; +0x20, 0x76f1c0\nB               loc_76F264                                             ; +0x24, 0x76f1c4\nADD             R6, SP, #0x20+var_10                                   ; +0x26, 0x76f1c6\nMOV             R0, R6; this                                           ; +0x28, 0x76f1c8\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x2a, 0x76f1ca\nLDRB.W          R3, [SP,#0x20+var_10]                                  ; +0x2e, 0x76f1ce\nLSLS            R2, R3, #0x1F                                          ; +0x32, 0x76f1d2\nITE PL                                                                 ; +0x34, 0x76f1d4\nADDPL.W         R0, SP, #0x20+var_F                                    ; +0x36, 0x76f1d6\nLDRMI           R0, [SP,#0x20+var_8]; char *                           ; +0x3a, 0x76f1da\nBLX             atoi                                                   ; +0x3c, 0x76f1dc\nMOV             R8, R0                                                 ; +0x40, 0x76f1e0\nMOV             R0, R6                                                 ; +0x42, 0x76f1e2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x44, 0x76f1e4\nCMP.W           R8, #0                                                 ; +0x48, 0x76f1e8\nBLE             loc_76F1BA                                             ; +0x4c, 0x76f1ec\nLDR.W           R1, [R4,#0x2D0]                                        ; +0x4e, 0x76f1ee\nCBZ             R1, loc_76F216                                         ; +0x52, 0x76f1f2\nMOV             R0, R6; this                                           ; +0x54, 0x76f1f4\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x56, 0x76f1f6\nLDRB.W          R3, [SP,#0x20+var_10]                                  ; +0x5a, 0x76f1fa\nLSLS            R3, R3, #0x1F                                          ; +0x5e, 0x76f1fe\nITE PL                                                                 ; +0x60, 0x76f200\nADDPL.W         R0, SP, #0x20+var_F                                    ; +0x62, 0x76f202\nLDRMI           R0, [SP,#0x20+var_8]; char *                           ; +0x66, 0x76f206\nBLX             atoi                                                   ; +0x68, 0x76f208\nMOV             R5, R0                                                 ; +0x6c, 0x76f20c\nMOV             R0, R6                                                 ; +0x6e, 0x76f20e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x70, 0x76f210\nB               loc_76F218                                             ; +0x74, 0x76f214\nMOV             R5, R1                                                 ; +0x76, 0x76f216\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x78, 0x76f218\nMOV             R2, R5; int                                            ; +0x7c, 0x76f21c\nMOV             R1, R8; int                                            ; +0x7e, 0x76f21e\nMOVS            R6, #0                                                 ; +0x80, 0x76f220\nBL              _ZN16GameLevelManager21forceDeathDataRefetchEii; GameLevelManager::forceDeathDataRefetch(int,int) ; +0x82, 0x76f222\nLDR             R1, =(aFetching - 0x76F23A); \"Fetching...\"             ; +0x86, 0x76f226\nSTR.W           R5, [R4,#0x2DC]                                        ; +0x88, 0x76f228\nMOVS            R3, #0                                                 ; +0x8c, 0x76f22c\nLDR             R5, =(_ZN15DeathStatsPopup9pollFetchEf_ptr - 0x76F244) ; +0x8e, 0x76f22e\nMOV             R0, R4; this                                           ; +0x90, 0x76f230\nSTR.W           R3, [R4,#0x2E0]                                        ; +0x92, 0x76f232\nADD             R1, PC; \"Fetching...\"                                  ; +0x96, 0x76f236\nSTR.W           R8, [R4,#0x2D8]                                        ; +0x98, 0x76f238\nBL              _ZN15DeathStatsPopup9setStatusEPKc; DeathStatsPopup::setStatus(char const*) ; +0x9c, 0x76f23c\nADD             R5, PC; _ZN15DeathStatsPopup9pollFetchEf_ptr           ; +0xa0, 0x76f240\nLDR             R5, [R5]; DeathStatsPopup::pollFetch(float)            ; +0xa2, 0x76f242\nSTR             R6, [SP,#0x20+var_1C]                                  ; +0xa4, 0x76f244\nMOV             R0, R4                                                 ; +0xa6, 0x76f246\nSTR             R5, [SP,#0x20+var_20]                                  ; +0xa8, 0x76f248\nLDMFD.W         SP, {R1,R2}                                            ; +0xaa, 0x76f24a\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0xae, 0x76f24e\nADD             R3, SP, #0x20+var_18                                   ; +0xb2, 0x76f252\nSTR             R5, [SP,#0x20+var_18]                                  ; +0xb4, 0x76f254\nMOV             R0, R4                                                 ; +0xb6, 0x76f256\nSTR             R6, [SP,#0x20+var_14]                                  ; +0xb8, 0x76f258\nLDM.W           R3, {R1,R2}                                            ; +0xba, 0x76f25a\nLDR             R3, =0x3E19999A                                        ; +0xbe, 0x76f25e\nBL              _ZN7cocos2d6CCNode8scheduleEMNS_8CCObjectEFvfEf; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float) ; +0xc0, 0x76f260\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xc4, 0x76f264\nLDR             R3, [R7]                                               ; +0xc6, 0x76f266\nCMP             R2, R3                                                 ; +0xc8, 0x76f268\nBEQ             loc_76F270                                             ; +0xca, 0x76f26a\nBLX             __stack_chk_fail                                       ; +0xcc, 0x76f26c\nADD             SP, SP, #0x20 ; ' '                                    ; +0xd0, 0x76f270\nPOP.W           {R4-R8,PC}                                             ; +0xd2, 0x76f272", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}