{"type": "func", "start": 5373218960, "end": 5373219231, "name": "LevelBindingsLayer::onClear", "pseudocode": "// \n// LevelBindingsLayer::onClear from 0x14044d090 to 0x14044d19f (271 bytes)\n// \n// 2 xrefs:\n// > LevelBindingsLayer::settingsEntries @ 0x14044c4f7\n// > <???> @ 0x140927554\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::onClear(_QWORD *a1)\n{\n  __int64 v2; // rsi\n  _QWORD *v3; // rbx\n  __int64 v4; // rbx\n  __int64 v5; // rdx\n  __int64 v6; // r8\n  cocos2d::CCNode *v7; // rax\n  char v9[8]; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v10; // [rsp+38h] [rbp-40h]\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  (*(void (__fastcall **)(_QWORD *))(*a1 + 1056LL))(a1);\n  v13 = 0;\n  v14 = 0;\n  v15 = 15;\n  LOBYTE(v13) = 0;\n  v10 = 0;\n  v11 = 7;\n  v12 = 15;\n  strcpy(v9, \"Cleared\");\n  v4 = *a1;\n  v7 = TextAlertPopup::create((__int64)v9, v5, v6, 150, (__int64)&v13);\n  return (*(__int64 (__fastcall **)(_QWORD *, cocos2d::CCNode *, __int64))(v4 + 456))(a1, v7, 100);\n}", "assembly": "; \n; LevelBindingsLayer::onClear from 0x14044d090 to 0x14044d19f (271 bytes)\n; \n; 2 xrefs:\n; > LevelBindingsLayer::settingsEntries @ 0x14044c4f7\n; > <???> @ 0x140927554\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, 0x14044d090\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14044d095\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x14044d09a\npush    r14                                                            ; +0xf, 0x14044d09f\nsub     rsp, 70h                                                       ; +0x11, 0x14044d0a1\nmov     r14, rcx                                                       ; +0x15, 0x14044d0a5\nmov     rsi, [rcx+4A0h]                                                ; +0x18, 0x14044d0a8\nmov     rbx, [rsi+8]                                                   ; +0x1f, 0x14044d0af\nmov     r8, [rbx+8]                                                    ; +0x23, 0x14044d0b3\nlea     rdx, [rsi+8]                                                   ; +0x27, 0x14044d0b7\nlea     rcx, [rsi+8]                                                   ; +0x2b, 0x14044d0bb\ncall    sub_14038D0E0                                                  ; +0x2f, 0x14044d0bf\nmov     [rbx+8], rbx                                                   ; +0x34, 0x14044d0c4\nmov     [rbx], rbx                                                     ; +0x38, 0x14044d0c8\nmov     [rbx+10h], rbx                                                 ; +0x3b, 0x14044d0cb\nxor     ebx, ebx                                                       ; +0x3f, 0x14044d0cf\nmov     [rsi+10h], rbx                                                 ; +0x41, 0x14044d0d1\nmov     byte ptr [rsi+18h], 1                                          ; +0x45, 0x14044d0d5\nmov     rax, [r14]                                                     ; +0x49, 0x14044d0d9\nmov     rcx, r14                                                       ; +0x4c, 0x14044d0dc\ncall    qword ptr [rax+420h]                                           ; +0x4f, 0x14044d0df\nlea     rax, [rsp+78h+var_28]                                          ; +0x55, 0x14044d0e5\nmov     [rsp+78h+arg_0], rax                                           ; +0x5a, 0x14044d0ea\nxorps   xmm0, xmm0                                                     ; +0x62, 0x14044d0f2\nmovups  [rsp+78h+var_28], xmm0                                         ; +0x65, 0x14044d0f5\nmov     [rsp+78h+var_18], rbx                                          ; +0x6a, 0x14044d0fa\nmov     [rsp+78h+var_10], 0Fh                                          ; +0x6f, 0x14044d0ff\nmov     byte ptr [rsp+78h+var_28], bl                                  ; +0x78, 0x14044d108\nmov     [rsp+78h+var_40], rbx                                          ; +0x7c, 0x14044d10c\nmov     [rsp+78h+var_38], 7                                            ; +0x81, 0x14044d111\nmov     [rsp+78h+var_30], 0Fh                                          ; +0x8a, 0x14044d11a\nmov     rax, qword ptr cs:aCleared; \"Cleared\"                          ; +0x93, 0x14044d123\nmov     dword ptr [rsp+78h+var_48], eax                                ; +0x9a, 0x14044d12a\nmovzx   eax, word ptr cs:aCleared+4; \"red\"                             ; +0x9e, 0x14044d12e\nmov     word ptr [rsp+78h+var_48+4], ax                                ; +0xa5, 0x14044d135\nmovzx   eax, byte ptr cs:aCleared+6; \"d\"                               ; +0xaa, 0x14044d13a\nmov     [rsp+78h+var_48+6], al                                         ; +0xb1, 0x14044d141\nmov     [rsp+78h+var_48+7], bl                                         ; +0xb5, 0x14044d145\nmov     rbx, [r14]                                                     ; +0xb9, 0x14044d149\nlea     rax, [rsp+78h+var_28]                                          ; +0xbc, 0x14044d14c\nmov     [rsp+78h+var_58], rax                                          ; +0xc1, 0x14044d151\nmov     r9d, 96h                                                       ; +0xc6, 0x14044d156\nmovss   xmm2, cs:dword_140834F64                                       ; +0xcc, 0x14044d15c\nmovss   xmm1, cs:dword_140834F20                                       ; +0xd4, 0x14044d164\nlea     rcx, [rsp+78h+var_48]                                          ; +0xdc, 0x14044d16c\ncall    TextAlertPopup__create                                         ; +0xe1, 0x14044d171\nmov     rdx, rax                                                       ; +0xe6, 0x14044d176\nmov     r8d, 64h ; 'd'                                                 ; +0xe9, 0x14044d179\nmov     rcx, r14                                                       ; +0xef, 0x14044d17f\ncall    qword ptr [rbx+1C8h]                                           ; +0xf2, 0x14044d182\nlea     r11, [rsp+78h+var_8]                                           ; +0xf8, 0x14044d188\nmov     rbx, [r11+18h]                                                 ; +0xfd, 0x14044d18d\nmov     rsi, [r11+20h]                                                 ; +0x101, 0x14044d191\nmov     rdi, [r11+28h]                                                 ; +0x105, 0x14044d195\nmov     rsp, r11                                                       ; +0x109, 0x14044d199\npop     r14                                                            ; +0x10c, 0x14044d19c\nretn                                                                   ; +0x10e, 0x14044d19e", "xrefs": ["LevelBindingsLayer::settingsEntries @ 0x14044c4f7", "<???> @ 0x140927554"], "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"}