{"type": "func", "start": 5373218352, "end": 5373218639, "name": "LevelBindingsLayer::onReset", "pseudocode": "// \n// LevelBindingsLayer::onReset from 0x14044ce30 to 0x14044cf4f (287 bytes)\n// \n// 2 xrefs:\n// > LevelBindingsLayer::settingsEntries @ 0x14044c49e\n// > <???> @ 0x14092753c\n// \n// This function is hookable on this platform (idp: pc, 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:32:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall LevelBindingsLayer::onReset(__int64 *a1)\n{\n  __int64 v2; // rsi\n  _QWORD *v3; // rbx\n  __int64 v4; // rcx\n  __int64 v5; // rbx\n  __int64 v6; // rdx\n  __int64 v7; // r8\n  cocos2d::CCNode *v8; // rax\n  __int128 v10; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v11; // [rsp+40h] [rbp-38h]\n  __int64 v12; // [rsp+48h] [rbp-30h]\n  __int128 v13; // [rsp+50h] [rbp-28h] BYREF\n  __int64 v14; // [rsp+60h] [rbp-18h]\n  __int64 v15; // [rsp+68h] [rbp-10h]\n\n  v2 = a1[148];\n  v3 = *(_QWORD **)(v2 + 8);\n  sub_14038D0E0(v2 + 8, v2 + 8, v3[1]);\n  v3[1] = v3;\n  *v3 = v3;\n  v3[2] = v3;\n  *(_QWORD *)(v2 + 16) = 0;\n  *(_BYTE *)(v2 + 24) = 1;\n  v4 = a1[148];\n  if ( *((_BYTE *)a1 + 1192) )\n    LevelControlConfig::bindDefaultController(v4);\n  else\n    LevelControlConfig::bindDefaultKeyboard(v4);\n  (*(void (__fastcall **)(__int64 *))(*a1 + 1056))(a1);\n  v13 = 0;\n  v14 = 0;\n  v15 = 15;\n  LOBYTE(v13) = 0;\n  v10 = 0;\n  v11 = 5;\n  v12 = 15;\n  LODWORD(v10) = *(_DWORD *)\"Reset\";\n  WORD2(v10) = (unsigned __int8)aReset[4];\n  v5 = *a1;\n  v8 = TextAlertPopup::create((__int64)&v10, v6, v7, 150, (__int64)&v13);\n  return (*(__int64 (__fastcall **)(__int64 *, cocos2d::CCNode *, __int64))(v5 + 456))(a1, v8, 100);\n}", "assembly": "; \n; LevelBindingsLayer::onReset from 0x14044ce30 to 0x14044cf4f (287 bytes)\n; \n; 2 xrefs:\n; > LevelBindingsLayer::settingsEntries @ 0x14044c49e\n; > <???> @ 0x14092753c\n; \n; This function is hookable on this platform (idp: pc, 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:32:25 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14044ce30\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14044ce35\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x14044ce3a\npush    r14                                                            ; +0xf, 0x14044ce3f\nsub     rsp, 70h                                                       ; +0x11, 0x14044ce41\nmov     r14, rcx                                                       ; +0x15, 0x14044ce45\nmov     rsi, [rcx+4A0h]                                                ; +0x18, 0x14044ce48\nmov     rbx, [rsi+8]                                                   ; +0x1f, 0x14044ce4f\nmov     r8, [rbx+8]                                                    ; +0x23, 0x14044ce53\nlea     rdx, [rsi+8]                                                   ; +0x27, 0x14044ce57\nlea     rcx, [rsi+8]                                                   ; +0x2b, 0x14044ce5b\ncall    sub_14038D0E0                                                  ; +0x2f, 0x14044ce5f\nmov     [rbx+8], rbx                                                   ; +0x34, 0x14044ce64\nmov     [rbx], rbx                                                     ; +0x38, 0x14044ce68\nmov     [rbx+10h], rbx                                                 ; +0x3b, 0x14044ce6b\nxor     ebx, ebx                                                       ; +0x3f, 0x14044ce6f\nmov     [rsi+10h], rbx                                                 ; +0x41, 0x14044ce71\nmov     byte ptr [rsi+18h], 1                                          ; +0x45, 0x14044ce75\nmov     rcx, [r14+4A0h]                                                ; +0x49, 0x14044ce79\ncmp     [r14+4A8h], bl                                                 ; +0x50, 0x14044ce80\njz      short loc_14044CE90                                            ; +0x57, 0x14044ce87\ncall    LevelControlConfig__bindDefaultController                      ; +0x59, 0x14044ce89\njmp     short loc_14044CE95                                            ; +0x5e, 0x14044ce8e\ncall    LevelControlConfig__bindDefaultKeyboard                        ; +0x60, 0x14044ce90\nmov     rax, [r14]                                                     ; +0x65, 0x14044ce95\nmov     rcx, r14                                                       ; +0x68, 0x14044ce98\ncall    qword ptr [rax+420h]                                           ; +0x6b, 0x14044ce9b\nlea     rax, [rsp+78h+var_28]                                          ; +0x71, 0x14044cea1\nmov     [rsp+78h+arg_0], rax                                           ; +0x76, 0x14044cea6\nxorps   xmm0, xmm0                                                     ; +0x7e, 0x14044ceae\nmovups  [rsp+78h+var_28], xmm0                                         ; +0x81, 0x14044ceb1\nmov     [rsp+78h+var_18], rbx                                          ; +0x86, 0x14044ceb6\nmov     [rsp+78h+var_10], 0Fh                                          ; +0x8b, 0x14044cebb\nmov     byte ptr [rsp+78h+var_28], bl                                  ; +0x94, 0x14044cec4\nmovups  [rsp+78h+var_48], xmm0                                         ; +0x98, 0x14044cec8\nmov     [rsp+78h+var_38], 5                                            ; +0x9d, 0x14044cecd\nmov     [rsp+78h+var_30], 0Fh                                          ; +0xa6, 0x14044ced6\nmov     eax, dword ptr cs:aReset; \"Reset\"                              ; +0xaf, 0x14044cedf\nmov     dword ptr [rsp+78h+var_48], eax                                ; +0xb5, 0x14044cee5\nmovzx   eax, byte ptr cs:aReset+4; \"t\"                                 ; +0xb9, 0x14044cee9\nmov     byte ptr [rsp+78h+var_48+4], al                                ; +0xc0, 0x14044cef0\nmov     byte ptr [rsp+78h+var_48+5], 0                                 ; +0xc4, 0x14044cef4\nmov     rbx, [r14]                                                     ; +0xc9, 0x14044cef9\nlea     rax, [rsp+78h+var_28]                                          ; +0xcc, 0x14044cefc\nmov     [rsp+78h+var_58], rax                                          ; +0xd1, 0x14044cf01\nmov     r9d, 96h                                                       ; +0xd6, 0x14044cf06\nmovss   xmm2, cs:dword_140834F64                                       ; +0xdc, 0x14044cf0c\nmovss   xmm1, cs:dword_140834F20                                       ; +0xe4, 0x14044cf14\nlea     rcx, [rsp+78h+var_48]                                          ; +0xec, 0x14044cf1c\ncall    TextAlertPopup__create                                         ; +0xf1, 0x14044cf21\nmov     rdx, rax                                                       ; +0xf6, 0x14044cf26\nmov     r8d, 64h ; 'd'                                                 ; +0xf9, 0x14044cf29\nmov     rcx, r14                                                       ; +0xff, 0x14044cf2f\ncall    qword ptr [rbx+1C8h]                                           ; +0x102, 0x14044cf32\nlea     r11, [rsp+78h+var_8]                                           ; +0x108, 0x14044cf38\nmov     rbx, [r11+18h]                                                 ; +0x10d, 0x14044cf3d\nmov     rsi, [r11+20h]                                                 ; +0x111, 0x14044cf41\nmov     rdi, [r11+28h]                                                 ; +0x115, 0x14044cf45\nmov     rsp, r11                                                       ; +0x119, 0x14044cf49\npop     r14                                                            ; +0x11c, 0x14044cf4c\nretn                                                                   ; +0x11e, 0x14044cf4e", "xrefs": ["LevelBindingsLayer::settingsEntries @ 0x14044c49e", "<???> @ 0x14092753c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}