{"type": "func", "start": 5373218640, "end": 5373218947, "name": "LevelBindingsLayer::onApplyGlobal", "pseudocode": "// \n// LevelBindingsLayer::onApplyGlobal from 0x14044cf50 to 0x14044d083 (307 bytes)\n// \n// 2 xrefs:\n// > LevelBindingsLayer::settingsEntries @ 0x14044c4cc\n// > <???> @ 0x140927548\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::onApplyGlobal(__int64 *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  __int128 v9; // [rsp+30h] [rbp-58h] BYREF\n  __int64 v10; // [rsp+40h] [rbp-48h]\n  __int64 v11; // [rsp+48h] [rbp-40h]\n  __int128 v12; // [rsp+50h] [rbp-38h] BYREF\n  __int64 v13; // [rsp+60h] [rbp-28h]\n  __int64 v14; // [rsp+68h] [rbp-20h]\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  LevelControlConfig::bindGlobalBinds(a1[148], *((_BYTE *)a1 + 1192));\n  (*(void (__fastcall **)(__int64 *))(*a1 + 1056))(a1);\n  v12 = 0;\n  v13 = 0;\n  v14 = 15;\n  LOBYTE(v12) = 0;\n  v9 = 0;\n  *(_QWORD *)&v9 = sub_14003D460(0x20u);\n  v10 = 23;\n  v11 = 31;\n  strcpy((char *)v9, \"Global controls applied\");\n  v4 = *a1;\n  v7 = TextAlertPopup::create((__int64)&v9, v5, v6, 150, (__int64)&v12);\n  return (*(__int64 (__fastcall **)(__int64 *, cocos2d::CCNode *, __int64))(v4 + 456))(a1, v7, 100);\n}", "assembly": "; \n; LevelBindingsLayer::onApplyGlobal from 0x14044cf50 to 0x14044d083 (307 bytes)\n; \n; 2 xrefs:\n; > LevelBindingsLayer::settingsEntries @ 0x14044c4cc\n; > <???> @ 0x140927548\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, 0x14044cf50\npush    rsi                                                            ; +0x5, 0x14044cf55\npush    rdi                                                            ; +0x6, 0x14044cf56\npush    r14                                                            ; +0x7, 0x14044cf57\nsub     rsp, 70h                                                       ; +0x9, 0x14044cf59\nmov     r14, rcx                                                       ; +0xd, 0x14044cf5d\nmov     rsi, [rcx+4A0h]                                                ; +0x10, 0x14044cf60\nmov     rbx, [rsi+8]                                                   ; +0x17, 0x14044cf67\nmov     r8, [rbx+8]                                                    ; +0x1b, 0x14044cf6b\nlea     rdx, [rsi+8]                                                   ; +0x1f, 0x14044cf6f\nlea     rcx, [rsi+8]                                                   ; +0x23, 0x14044cf73\ncall    sub_14038D0E0                                                  ; +0x27, 0x14044cf77\nmov     [rbx+8], rbx                                                   ; +0x2c, 0x14044cf7c\nmov     [rbx], rbx                                                     ; +0x30, 0x14044cf80\nmov     [rbx+10h], rbx                                                 ; +0x33, 0x14044cf83\nxor     ebx, ebx                                                       ; +0x37, 0x14044cf87\nmov     [rsi+10h], rbx                                                 ; +0x39, 0x14044cf89\nmov     byte ptr [rsi+18h], 1                                          ; +0x3d, 0x14044cf8d\nmovzx   edx, byte ptr [r14+4A8h]                                       ; +0x41, 0x14044cf91\nmov     rcx, [r14+4A0h]                                                ; +0x49, 0x14044cf99\ncall    LevelControlConfig__bindGlobalBinds                            ; +0x50, 0x14044cfa0\nmov     rax, [r14]                                                     ; +0x55, 0x14044cfa5\nmov     rcx, r14                                                       ; +0x58, 0x14044cfa8\ncall    qword ptr [rax+420h]                                           ; +0x5b, 0x14044cfab\nlea     rax, [rsp+88h+var_38]                                          ; +0x61, 0x14044cfb1\nmov     [rsp+88h+arg_0], rax                                           ; +0x66, 0x14044cfb6\nxorps   xmm0, xmm0                                                     ; +0x6e, 0x14044cfbe\nmovups  [rsp+88h+var_38], xmm0                                         ; +0x71, 0x14044cfc1\nmov     [rsp+88h+var_28], rbx                                          ; +0x76, 0x14044cfc6\nmov     [rsp+88h+var_20], 0Fh                                          ; +0x7b, 0x14044cfcb\nmov     byte ptr [rsp+88h+var_38], bl                                  ; +0x84, 0x14044cfd4\nmovups  [rsp+88h+var_58], xmm0                                         ; +0x88, 0x14044cfd8\nmov     [rsp+88h+var_48], rbx                                          ; +0x8d, 0x14044cfdd\nmov     [rsp+88h+var_40], rbx                                          ; +0x92, 0x14044cfe2\nmov     ecx, 20h ; ' '                                                 ; +0x97, 0x14044cfe7\ncall    sub_14003D460                                                  ; +0x9c, 0x14044cfec\nmov     qword ptr [rsp+88h+var_58], rax                                ; +0xa1, 0x14044cff1\nmov     [rsp+88h+var_48], 17h                                          ; +0xa6, 0x14044cff6\nmov     [rsp+88h+var_40], 1Fh                                          ; +0xaf, 0x14044cfff\nmovups  xmm0, cs:xmmword_140793660                                     ; +0xb8, 0x14044d008\nmovups  xmmword ptr [rax], xmm0                                        ; +0xbf, 0x14044d00f\nmov     ecx, cs:dword_140793670                                        ; +0xc2, 0x14044d012\nmov     [rax+10h], ecx                                                 ; +0xc8, 0x14044d018\nmovzx   ecx, cs:word_140793674                                         ; +0xcb, 0x14044d01b\nmov     [rax+14h], cx                                                  ; +0xd2, 0x14044d022\nmovzx   ecx, cs:byte_140793676                                         ; +0xd6, 0x14044d026\nmov     [rax+16h], cl                                                  ; +0xdd, 0x14044d02d\nmov     [rax+17h], bl                                                  ; +0xe0, 0x14044d030\nmov     rbx, [r14]                                                     ; +0xe3, 0x14044d033\nlea     rax, [rsp+88h+var_38]                                          ; +0xe6, 0x14044d036\nmov     [rsp+88h+var_68], rax                                          ; +0xeb, 0x14044d03b\nmov     r9d, 96h                                                       ; +0xf0, 0x14044d040\nmovss   xmm2, cs:dword_140834F64                                       ; +0xf6, 0x14044d046\nmovss   xmm1, cs:dword_140834F20                                       ; +0xfe, 0x14044d04e\nlea     rcx, [rsp+88h+var_58]                                          ; +0x106, 0x14044d056\ncall    TextAlertPopup__create                                         ; +0x10b, 0x14044d05b\nmov     rdx, rax                                                       ; +0x110, 0x14044d060\nmov     r8d, 64h ; 'd'                                                 ; +0x113, 0x14044d063\nmov     rcx, r14                                                       ; +0x119, 0x14044d069\ncall    qword ptr [rbx+1C8h]                                           ; +0x11c, 0x14044d06c\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x122, 0x14044d072\nadd     rsp, 70h                                                       ; +0x12a, 0x14044d07a\npop     r14                                                            ; +0x12e, 0x14044d07e\npop     rdi                                                            ; +0x130, 0x14044d080\npop     rsi                                                            ; +0x131, 0x14044d081\nretn                                                                   ; +0x132, 0x14044d082", "xrefs": ["LevelBindingsLayer::settingsEntries @ 0x14044c4cc", "<???> @ 0x140927548"], "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"}