{"type": "func", "start": 7794808, "end": 7794930, "name": "DeathStatsPopup::onClose", "pseudocode": "// \n// DeathStatsPopup::onClose from 0x76f078 to 0x76f0f2 (122 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::onClose(DeathStatsPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r4\n  int *v4; // r0\n  int v5; // r3\n  _DWORD v7[6]; // [sp+4h] [bp-18h]\n\n  v3 = 0;\n  v7[3] = 0;\n  v7[2] = DeathStatsPopup::pollFetch;\n  cocos2d::CCNode::unschedule(this, DeathStatsPopup::pollFetch, 0);\n  v7[0] = *((_DWORD *)this + 179);\n  v7[1] = *((_DWORD *)this + 180);\n  while ( 1 )\n  {\n    v4 = (int *)v7[v3];\n    if ( v4 )\n    {\n      v5 = *v4;\n      v4[105] = 0;\n      (*(void (__fastcall **)(int *, _DWORD))(v5 + 580))(v4, 0);\n    }\n    if ( v3 )\n      break;\n    v3 = 1;\n  }\n  (*(void (__fastcall **)(DeathStatsPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);\n  return (*(int (__fastcall **)(DeathStatsPopup *, int, _DWORD))(*(_DWORD *)this + 264))(this, v3, v7[4]);\n}", "assembly": "; \n; DeathStatsPopup::onClose from 0x76f078 to 0x76f0f2 (122 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; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x76f078\nSUB             SP, SP, #0x1C                                          ; +0x2, 0x76f07a\nLDR             R5, =(__stack_chk_guard_ptr - 0x76F088)                ; +0x4, 0x76f07c\nMOV             R6, R0                                                 ; +0x6, 0x76f07e\nMOVS            R4, #0                                                 ; +0x8, 0x76f080\nSTR             R4, [SP,#0x1C+var_C]                                   ; +0xa, 0x76f082\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x76f084\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x76f086\nMOV             R7, R4                                                 ; +0x10, 0x76f088\nLDR             R3, [R5]                                               ; +0x12, 0x76f08a\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x14, 0x76f08c\nLDR             R3, =(_ZN15DeathStatsPopup9pollFetchEf_ptr - 0x76F094) ; +0x16, 0x76f08e\nADD             R3, PC; _ZN15DeathStatsPopup9pollFetchEf_ptr           ; +0x18, 0x76f090\nLDR             R3, [R3]; DeathStatsPopup::pollFetch(float)            ; +0x1a, 0x76f092\nSTR             R3, [SP,#0x1C+var_10]                                  ; +0x1c, 0x76f094\nADD             R3, SP, #0x1C+var_10                                   ; +0x1e, 0x76f096\nLDM.W           R3, {R1,R2}                                            ; +0x20, 0x76f098\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x24, 0x76f09c\nLDR.W           R3, [R6,#0x2CC]                                        ; +0x28, 0x76f0a0\nSTR             R3, [SP,#0x1C+var_18]                                  ; +0x2c, 0x76f0a4\nLDR.W           R3, [R6,#0x2D0]                                        ; +0x2e, 0x76f0a6\nSTR             R3, [SP,#0x1C+var_14]                                  ; +0x32, 0x76f0aa\nADD             R3, SP, #0x1C+var_18                                   ; +0x34, 0x76f0ac\nLDR.W           R0, [R3,R4,LSL#2]                                      ; +0x36, 0x76f0ae\nCBZ             R0, loc_76F0C2                                         ; +0x3a, 0x76f0b2\nLDR             R3, [R0]                                               ; +0x3c, 0x76f0b4\nMOVS            R1, #0                                                 ; +0x3e, 0x76f0b6\nSTR.W           R7, [R0,#0x1A4]                                        ; +0x40, 0x76f0b8\nLDR.W           R3, [R3,#0x244]                                        ; +0x44, 0x76f0bc\nBLX             R3                                                     ; +0x48, 0x76f0c0\nCBNZ            R4, loc_76F0C8                                         ; +0x4a, 0x76f0c2\nMOVS            R4, #1                                                 ; +0x4c, 0x76f0c4\nB               loc_76F0AC                                             ; +0x4e, 0x76f0c6\nLDR             R3, [R6]                                               ; +0x50, 0x76f0c8\nMOV             R0, R6                                                 ; +0x52, 0x76f0ca\nMOVS            R1, #0                                                 ; +0x54, 0x76f0cc\nLDR.W           R3, [R3,#0x218]                                        ; +0x56, 0x76f0ce\nBLX             R3                                                     ; +0x5a, 0x76f0d2\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x5c, 0x76f0d4\nLDR             R3, [R5]                                               ; +0x5e, 0x76f0d6\nCMP             R2, R3                                                 ; +0x60, 0x76f0d8\nBEQ             loc_76F0E0                                             ; +0x62, 0x76f0da\nBLX             __stack_chk_fail                                       ; +0x64, 0x76f0dc\nLDR             R3, [R6]                                               ; +0x68, 0x76f0e0\nMOV             R0, R6                                                 ; +0x6a, 0x76f0e2\nMOV             R1, R4                                                 ; +0x6c, 0x76f0e4\nLDR.W           R3, [R3,#0x108]                                        ; +0x6e, 0x76f0e6\nADD             SP, SP, #0x1C                                          ; +0x72, 0x76f0ea\nPOP.W           {R4-R7,LR}                                             ; +0x74, 0x76f0ec\nBX              R3                                                     ; +0x78, 0x76f0f0", "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"}