{"type": "func", "start": 4299919656, "end": 4299919800, "name": "DeathStatsPopup::onClose", "pseudocode": "// \n// DeathStatsPopup::onClose from 0x1004b9128 to 0x1004b91b8 (144 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100983628\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 11:06:15 +0000\n// \n\n__int64 __fastcall DeathStatsPopup::onClose(__int64 a1)\n{\n  _QWORD *v2; // x20\n  _QWORD *v3; // x0\n  char v4; // w8\n  char v5; // w21\n\n  cocos2d::CCNode::unschedule((unsigned int *)a1, (unsigned __int64)sub_1004B8D30, 0);\n  v2 = *(_QWORD **)(a1 + 1032);\n  v3 = *(_QWORD **)(a1 + 1024);\n  v4 = 1;\n  do\n  {\n    v5 = v4;\n    if ( v3 )\n    {\n      v3[73] = 0;\n      (*(void (__fastcall **)(_QWORD *, _QWORD))(*v3 + 1160LL))(v3, 0);\n    }\n    v4 = 0;\n    v3 = v2;\n  }\n  while ( (v5 & 1) != 0 );\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n}", "assembly": "; \n; DeathStatsPopup::onClose from 0x1004b9128 to 0x1004b91b8 (144 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100983628\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 11:06:15 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1004b9128\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004b912c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004b9130\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004b9134\nMOV             X19, X0                                                ; +0x10, 0x1004b9138\nADRL            X1, sub_1004B8D30                                      ; +0x14, 0x1004b913c\nMOV             X2, #0                                                 ; +0x1c, 0x1004b9144\nBL              cocos2d__CCNode__unschedule                            ; +0x20, 0x1004b9148\nLDR             Q0, [X19,#0x400]                                       ; +0x24, 0x1004b914c\nUMOV            X20, V0.D[1]                                           ; +0x28, 0x1004b9150\nFMOV            X0, D0                                                 ; +0x2c, 0x1004b9154\nMOV             W8, #1                                                 ; +0x30, 0x1004b9158\nMOV             X21, X8                                                ; +0x34, 0x1004b915c\nCBZ             X0, loc_1004B9178                                      ; +0x38, 0x1004b9160\nSTR             XZR, [X0,#0x248]                                       ; +0x3c, 0x1004b9164\nLDR             X8, [X0]                                               ; +0x40, 0x1004b9168\nLDR             X8, [X8,#0x488]                                        ; +0x44, 0x1004b916c\nMOV             W1, #0                                                 ; +0x48, 0x1004b9170\nBLR             X8                                                     ; +0x4c, 0x1004b9174\nMOV             W8, #0                                                 ; +0x50, 0x1004b9178\nMOV             X0, X20                                                ; +0x54, 0x1004b917c\nTBNZ            W21, #0, loc_1004B915C                                 ; +0x58, 0x1004b9180\nLDR             X8, [X19]                                              ; +0x5c, 0x1004b9184\nLDR             X8, [X8,#0x430]                                        ; +0x60, 0x1004b9188\nMOV             X0, X19                                                ; +0x64, 0x1004b918c\nMOV             W1, #0                                                 ; +0x68, 0x1004b9190\nBLR             X8                                                     ; +0x6c, 0x1004b9194\nLDR             X8, [X19]                                              ; +0x70, 0x1004b9198\nLDR             X2, [X8,#0x210]                                        ; +0x74, 0x1004b919c\nMOV             X0, X19                                                ; +0x78, 0x1004b91a0\nMOV             W1, #1                                                 ; +0x7c, 0x1004b91a4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x80, 0x1004b91a8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x84, 0x1004b91ac\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x88, 0x1004b91b0\nBR              X2                                                     ; +0x8c, 0x1004b91b4", "xrefs": ["<???> @ 0x100983628"], "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"}