{"type": "func", "start": 5369160752, "end": 5369161129, "name": "GameToolbox::createToggleButton_1", "pseudocode": "// \n// GameToolbox::createToggleButton_1 from 0x14006e430 to 0x14006e5a9 (377 bytes)\n// \n// 4 xrefs:\n// > EditorSoundConfigUploadPopup::init @ 0x14019b08c\n// > EditorSoundConfigUploadPopup::init @ 0x14019b145\n// > LevelSettingsLayer::init @ 0x1404595d2\n// > <???> @ 0x1409116d8\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:25:48 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall GameToolbox::createToggleButton_1(\n        __int64 a1,\n        int a2,\n        unsigned __int8 a3,\n        __int64 a4,\n        const struct cocos2d::CCPoint *a5,\n        __int64 a6,\n        __int64 a7,\n        __int64 a8)\n{\n  int v11; // ebp\n  __int64 v12; // rax\n  __int64 v13; // rbx\n  __int64 v14; // rax\n  __int64 ToggleButton; // rbx\n  _BYTE v17[8]; // [rsp+80h] [rbp-A8h] BYREF\n  __int64 v18; // [rsp+88h] [rbp-A0h]\n  __int64 v19; // [rsp+90h] [rbp-98h]\n  _BYTE *v20; // [rsp+98h] [rbp-90h]\n  _BYTE v21[8]; // [rsp+A0h] [rbp-88h] BYREF\n  _BYTE v22[8]; // [rsp+A8h] [rbp-80h] BYREF\n  _BYTE v23[32]; // [rsp+B0h] [rbp-78h] BYREF\n  __int64 v24; // [rsp+D0h] [rbp-58h]\n\n  v18 = a4;\n  v19 = a1;\n  v24 = a1;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 8.0, 0.0);\n  v20 = v23;\n  v11 = sub_14003F4F0((__int64)v23, a1);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (const struct cocos2d::CCPoint *)v17);\n  v13 = v12;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, a5);\n  ToggleButton = GameToolbox::createToggleButton(\n                   v11,\n                   a2,\n                   a3,\n                   v18,\n                   v14,\n                   a6,\n                   a7,\n                   1060320051,\n                   1056964608,\n                   1117782016,\n                   v13,\n                   (__int64)&qword_140704F78,\n                   0,\n                   0,\n                   a8);\n  sub_14003D310(v19);\n  return ToggleButton;\n}", "assembly": "; \n; GameToolbox::createToggleButton_1 from 0x14006e430 to 0x14006e5a9 (377 bytes)\n; \n; 4 xrefs:\n; > EditorSoundConfigUploadPopup::init @ 0x14019b08c\n; > EditorSoundConfigUploadPopup::init @ 0x14019b145\n; > LevelSettingsLayer::init @ 0x1404595d2\n; > <???> @ 0x1409116d8\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:25:48 +0000\n; \npush    rbx                                                            ; +0x0, 0x14006e430\npush    rbp                                                            ; +0x2, 0x14006e432\npush    rsi                                                            ; +0x3, 0x14006e433\npush    rdi                                                            ; +0x4, 0x14006e434\npush    r12                                                            ; +0x5, 0x14006e435\npush    r13                                                            ; +0x7, 0x14006e437\npush    r14                                                            ; +0x9, 0x14006e439\npush    r15                                                            ; +0xb, 0x14006e43b\nsub     rsp, 0E8h                                                      ; +0xd, 0x14006e43d\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x14006e444\nxor     rax, rsp                                                       ; +0x1b, 0x14006e44b\nmov     [rsp+128h+var_50], rax                                         ; +0x1e, 0x14006e44e\nmov     [rsp+128h+var_A0], r9                                          ; +0x26, 0x14006e456\nmovzx   r13d, r8b                                                      ; +0x2e, 0x14006e45e\nmov     r12, rdx                                                       ; +0x32, 0x14006e462\nmov     rbx, rcx                                                       ; +0x35, 0x14006e465\nmov     [rsp+128h+var_98], rcx                                         ; +0x38, 0x14006e468\nmov     [rsp+128h+var_58], rcx                                         ; +0x40, 0x14006e470\nmov     rdi, [rsp+128h+arg_20]                                         ; +0x48, 0x14006e478\nmov     r15, [rsp+128h+arg_28]                                         ; +0x50, 0x14006e480\nmov     r14, [rsp+128h+arg_30]                                         ; +0x58, 0x14006e488\nmov     rsi, [rsp+128h+arg_38]                                         ; +0x60, 0x14006e490\nxorps   xmm2, xmm2                                                     ; +0x68, 0x14006e498\nmovss   xmm1, cs:dword_1408354D4                                       ; +0x6b, 0x14006e49b\nlea     rcx, [rsp+128h+var_A8]                                         ; +0x73, 0x14006e4a3\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7b, 0x14006e4ab\nlea     rax, [rsp+128h+var_78]                                         ; +0x81, 0x14006e4b1\nmov     [rsp+128h+var_90], rax                                         ; +0x89, 0x14006e4b9\nmov     rdx, rbx                                                       ; +0x91, 0x14006e4c1\nlea     rcx, [rsp+128h+var_78]                                         ; +0x94, 0x14006e4c4\ncall    sub_14003F4F0                                                  ; +0x9c, 0x14006e4cc\nmov     rbp, rax                                                       ; +0xa1, 0x14006e4d1\nlea     rdx, [rsp+128h+var_A8]                                         ; +0xa4, 0x14006e4d4\nlea     rcx, [rsp+128h+var_88]                                         ; +0xac, 0x14006e4dc\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xb4, 0x14006e4e4\nmov     rbx, rax                                                       ; +0xba, 0x14006e4ea\nmov     rdx, rdi                                                       ; +0xbd, 0x14006e4ed\nlea     rcx, [rsp+128h+var_80]                                         ; +0xc0, 0x14006e4f0\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xc8, 0x14006e4f8\nnop                                                                    ; +0xce, 0x14006e4fe\nmov     [rsp+128h+var_B8], rsi                                         ; +0xcf, 0x14006e4ff\nmov     [rsp+128h+var_C0], 0                                           ; +0xd4, 0x14006e504\nmov     [rsp+128h+var_C8], 0                                           ; +0xdc, 0x14006e50c\nlea     rcx, qword_140704F78                                           ; +0xe1, 0x14006e511\nmov     [rsp+128h+var_D0], rcx                                         ; +0xe8, 0x14006e518\nmov     [rsp+128h+var_D8], rbx                                         ; +0xed, 0x14006e51d\nmovss   xmm0, cs:dword_14083574C                                       ; +0xf2, 0x14006e522\nmovss   [rsp+128h+var_E0], xmm0                                        ; +0xfa, 0x14006e52a\nmovss   xmm1, cs:dword_140834F20                                       ; +0x100, 0x14006e530\nmovss   [rsp+128h+var_E8], xmm1                                        ; +0x108, 0x14006e538\nmovss   xmm0, cs:dword_140834FAC                                       ; +0x10e, 0x14006e53e\nmovss   [rsp+128h+var_F0], xmm0                                        ; +0x116, 0x14006e546\nmov     [rsp+128h+var_F8], r14                                         ; +0x11c, 0x14006e54c\nmov     [rsp+128h+var_100], r15                                        ; +0x121, 0x14006e551\nmov     [rsp+128h+var_108], rax                                        ; +0x126, 0x14006e556\nmov     r9, [rsp+128h+var_A0]                                          ; +0x12b, 0x14006e55b\nmovzx   r8d, r13b                                                      ; +0x133, 0x14006e563\nmov     rdx, r12                                                       ; +0x137, 0x14006e567\nmov     rcx, rbp                                                       ; +0x13a, 0x14006e56a\ncall    GameToolbox__createToggleButton                                ; +0x13d, 0x14006e56d\nmov     rbx, rax                                                       ; +0x142, 0x14006e572\nmov     rcx, [rsp+128h+var_98]                                         ; +0x145, 0x14006e575\ncall    sub_14003D310                                                  ; +0x14d, 0x14006e57d\nmov     rax, rbx                                                       ; +0x152, 0x14006e582\nmov     rcx, [rsp+128h+var_50]                                         ; +0x155, 0x14006e585\nxor     rcx, rsp; StackCookie                                          ; +0x15d, 0x14006e58d\ncall    __security_check_cookie                                        ; +0x160, 0x14006e590\nadd     rsp, 0E8h                                                      ; +0x165, 0x14006e595\npop     r15                                                            ; +0x16c, 0x14006e59c\npop     r14                                                            ; +0x16e, 0x14006e59e\npop     r13                                                            ; +0x170, 0x14006e5a0\npop     r12                                                            ; +0x172, 0x14006e5a2\npop     rdi                                                            ; +0x174, 0x14006e5a4\npop     rsi                                                            ; +0x175, 0x14006e5a5\npop     rbp                                                            ; +0x176, 0x14006e5a6\npop     rbx                                                            ; +0x177, 0x14006e5a7\nretn                                                                   ; +0x178, 0x14006e5a8", "xrefs": ["EditorSoundConfigUploadPopup::init @ 0x14019b08c", "EditorSoundConfigUploadPopup::init @ 0x14019b145", "LevelSettingsLayer::init @ 0x1404595d2", "<???> @ 0x1409116d8"], "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"}