{"type": "func", "start": 13268068, "end": 13268268, "name": "DeathStatsPopup::onClose", "pseudocode": "// \n// DeathStatsPopup::onClose from 0xca7464 to 0xca752c (200 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x9ef50\n// > <???> @ 0x14f7ef8\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::onClose(DeathStatsPopup *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x19\n  __int64 v4; // x0\n  __int64 *v5; // x1\n  __int64 v6; // x2\n  __int64 v7; // x0\n  _QWORD v9[2]; // [xsp+38h] [xbp+38h]\n\n  v3 = 0;\n  cocos2d::CCNode::unschedule(this, DeathStatsPopup::pollFetch, 0);\n  v4 = *((_QWORD *)this + 129);\n  v9[0] = *((_QWORD *)this + 128);\n  v9[1] = v4;\n  do\n  {\n    v5 = (__int64 *)v9[v3];\n    if ( v5 )\n    {\n      v6 = *v5;\n      v7 = v9[v3];\n      v5[73] = 0;\n      (*(void (__fastcall **)(__int64, _QWORD))(v6 + 1160))(v7, 0);\n    }\n    ++v3;\n  }\n  while ( v3 != 2 );\n  (*(void (__fastcall **)(DeathStatsPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);\n  (*(void (__fastcall **)(DeathStatsPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);\n  return _stack_chk_guard;\n}", "assembly": "; \n; DeathStatsPopup::onClose from 0xca7464 to 0xca752c (200 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x9ef50\n; > <???> @ 0x14f7ef8\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_50]!                                ; +0x0, 0xca7464\nADRP            X1, #_ZN15DeathStatsPopup9pollFetchEf_ptr@PAGE         ; +0x4, 0xca7468\nMOV             X2, #0                                                 ; +0x8, 0xca746c\nMOV             X29, SP                                                ; +0xc, 0xca7470\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0xca7474\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0xca7478\nLDR             X1, [X1,#_ZN15DeathStatsPopup9pollFetchEf_ptr@PAGEOFF]; DeathStatsPopup::pollFetch(float) ... ; +0x18, 0xca747c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x1c, 0xca7480\nMOV             X20, X0                                                ; +0x20, 0xca7484\nMOV             X19, #0                                                ; +0x24, 0xca7488\nLDR             X3, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0xca748c\nADD             X22, X29, #0x50+var_18                                 ; +0x2c, 0xca7490\nLDR             X3, [X3]                                               ; +0x30, 0xca7494\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x34, 0xca7498\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x38, 0xca749c\nLDR             X1, [X20,#0x400]                                       ; +0x3c, 0xca74a0\nLDR             X0, [X20,#0x408]                                       ; +0x40, 0xca74a4\nSTR             X1, [X29,#0x50+var_18]                                 ; +0x44, 0xca74a8\nSTR             X0, [X29,#0x50+var_10]                                 ; +0x48, 0xca74ac\nLDR             X1, [X22,X19]                                          ; +0x4c, 0xca74b0\nCBZ             X1, loc_CA74D0                                         ; +0x50, 0xca74b4\nLDR             X2, [X1]                                               ; +0x54, 0xca74b8\nMOV             X0, X1                                                 ; +0x58, 0xca74bc\nSTR             XZR, [X1,#0x248]                                       ; +0x5c, 0xca74c0\nMOV             W1, #0                                                 ; +0x60, 0xca74c4\nLDR             X2, [X2,#0x488]                                        ; +0x64, 0xca74c8\nBLR             X2                                                     ; +0x68, 0xca74cc\nADD             X19, X19, #8                                           ; +0x6c, 0xca74d0\nCMP             X19, #0x10                                             ; +0x70, 0xca74d4\nB.NE            loc_CA74B0                                             ; +0x74, 0xca74d8\nLDR             X2, [X20]                                              ; +0x78, 0xca74dc\nMOV             X0, X20                                                ; +0x7c, 0xca74e0\nMOV             W1, #0                                                 ; +0x80, 0xca74e4\nLDR             X2, [X2,#0x430]                                        ; +0x84, 0xca74e8\nBLR             X2                                                     ; +0x88, 0xca74ec\nLDR             X2, [X20]                                              ; +0x8c, 0xca74f0\nMOV             X0, X20                                                ; +0x90, 0xca74f4\nMOV             W1, #1                                                 ; +0x94, 0xca74f8\nLDR             X2, [X2,#0x210]                                        ; +0x98, 0xca74fc\nBLR             X2                                                     ; +0x9c, 0xca7500\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa0, 0xca7504\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xa4, 0xca7508\nLDR             X0, [X21]                                              ; +0xa8, 0xca750c\nCMP             X1, X0                                                 ; +0xac, 0xca7510\nB.NE            loc_CA7528                                             ; +0xb0, 0xca7514\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xb4, 0xca7518\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xb8, 0xca751c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xbc, 0xca7520\nRET                                                                    ; +0xc0, 0xca7524\nBL              .__stack_chk_fail                                      ; +0xc4, 0xca7528", "xrefs": ["<???> @ 0x9ef50", "<???> @ 0x14f7ef8"], "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"}