{"type": "func", "start": 5373381536, "end": 5373381836, "name": "SetupTriggerPopup::createToggleButton", "pseudocode": "// \n// SetupTriggerPopup::createToggleButton from 0x140474ba0 to 0x140474ccc (300 bytes)\n// \n// 28 xrefs:\n// > ColorSelectPopup::init @ 0x14008ea55\n// > ColorSelectPopup::init @ 0x14008eae6\n// > ColorSelectPopup::init @ 0x14008eb81\n// > ColorSelectPopup::init @ 0x14008ec11\n// > ColorSelectPopup::init @ 0x14008ecaa\n// > ColorSelectPopup::init @ 0x14008ed60\n// > ColorSelectPopup::init @ 0x14008edeb\n// > SetupCollisionTriggerPopup::init @ 0x140418f4e\n// > SetupCollisionTriggerPopup::init @ 0x140418fd7\n// > SetupCollisionTriggerPopup::init @ 0x14041904f\n// > SetupCollisionTriggerPopup::init @ 0x1404190c3\n// > SetupCollisionTriggerPopup::init @ 0x14041913b\n// > SetupCountTriggerPopup::init @ 0x14041bf4f\n// > SetupCountTriggerPopup::init @ 0x14041bfe5\n// > SetupEndPopup::init @ 0x14041d43b\n// > SetupEndPopup::init @ 0x14041d4be\n// > SetupEndPopup::init @ 0x14041d541\n// > SetupInstantCountPopup::init @ 0x140423035\n// > SetupInstantCountPopup::init @ 0x1404230eb\n// > SetupInstantCountPopup::init @ 0x14042318d\n// > SetupInstantCountPopup::init @ 0x14042323f\n// > SetupTouchTogglePopup::init @ 0x140464564\n// > SetupTouchTogglePopup::init @ 0x140464624\n// > SetupTouchTogglePopup::init @ 0x1404646d1\n// > SetupTouchTogglePopup::init @ 0x1404647a0\n// > SetupTouchTogglePopup::init @ 0x140464844\n// > SetupTouchTogglePopup::init @ 0x1404648fa\n// > <???> @ 0x1406db4bc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nCCMenuItemToggler *__fastcall SetupTriggerPopup::createToggleButton(\n        __int64 a1,\n        __int64 a2,\n        cocos2d::SEL_MenuHandler *a3,\n        bool a4)\n{\n  float v4; // xmm0_4\n  const char *v9; // rsi\n  float *v10; // rax\n  float *v11; // rbx\n  struct cocos2d::CCPoint v12; // rax\n  CCMenuItemToggler *ToggleButton; // rbx\n  cocos2d::CCPoint v15; // [rsp+90h] [rbp-78h] BYREF\n  _QWORD v16[5]; // [rsp+98h] [rbp-70h] BYREF\n\n  v16[4] = a2;\n  v9 = (const char *)sub_14003BDB0((__int64)v16, a2);\n  cocos2d::CCPoint::CCPoint(v4, 8.0);\n  v11 = v10;\n  cocos2d::CCPoint::CCPoint(&v15);\n  ToggleButton = GameToolbox::createToggleButton(\n                   v9,\n                   a3,\n                   a4,\n                   *(cocos2d::CCNode **)(a1 + 544),\n                   v12,\n                   (cocos2d::CCObject *)a1,\n                   *(cocos2d::CCObject **)(a1 + 576),\n                   0.69999999,\n                   0.34999999,\n                   110.0,\n                   v11,\n                   (const char *)&qword_14052A4D8,\n                   0,\n                   0,\n                   nullptr);\n  sub_14003A830(a2);\n  return ToggleButton;\n}", "assembly": "; \n; SetupTriggerPopup::createToggleButton from 0x140474ba0 to 0x140474ccc (300 bytes)\n; \n; 28 xrefs:\n; > ColorSelectPopup::init @ 0x14008ea55\n; > ColorSelectPopup::init @ 0x14008eae6\n; > ColorSelectPopup::init @ 0x14008eb81\n; > ColorSelectPopup::init @ 0x14008ec11\n; > ColorSelectPopup::init @ 0x14008ecaa\n; > ColorSelectPopup::init @ 0x14008ed60\n; > ColorSelectPopup::init @ 0x14008edeb\n; > SetupCollisionTriggerPopup::init @ 0x140418f4e\n; > SetupCollisionTriggerPopup::init @ 0x140418fd7\n; > SetupCollisionTriggerPopup::init @ 0x14041904f\n; > SetupCollisionTriggerPopup::init @ 0x1404190c3\n; > SetupCollisionTriggerPopup::init @ 0x14041913b\n; > SetupCountTriggerPopup::init @ 0x14041bf4f\n; > SetupCountTriggerPopup::init @ 0x14041bfe5\n; > SetupEndPopup::init @ 0x14041d43b\n; > SetupEndPopup::init @ 0x14041d4be\n; > SetupEndPopup::init @ 0x14041d541\n; > SetupInstantCountPopup::init @ 0x140423035\n; > SetupInstantCountPopup::init @ 0x1404230eb\n; > SetupInstantCountPopup::init @ 0x14042318d\n; > SetupInstantCountPopup::init @ 0x14042323f\n; > SetupTouchTogglePopup::init @ 0x140464564\n; > SetupTouchTogglePopup::init @ 0x140464624\n; > SetupTouchTogglePopup::init @ 0x1404646d1\n; > SetupTouchTogglePopup::init @ 0x1404647a0\n; > SetupTouchTogglePopup::init @ 0x140464844\n; > SetupTouchTogglePopup::init @ 0x1404648fa\n; > <???> @ 0x1406db4bc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     r11, rsp                                                       ; +0x0, 0x140474ba0\npush    rbx                                                            ; +0x3, 0x140474ba3\npush    rbp                                                            ; +0x4, 0x140474ba4\npush    rsi                                                            ; +0x5, 0x140474ba5\npush    rdi                                                            ; +0x6, 0x140474ba6\npush    r12                                                            ; +0x7, 0x140474ba7\npush    r14                                                            ; +0x9, 0x140474ba9\npush    r15                                                            ; +0xb, 0x140474bab\nsub     rsp, 0D0h                                                      ; +0xd, 0x140474bad\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x140474bb4\nxor     rax, rsp                                                       ; +0x1b, 0x140474bbb\nmov     [rsp+108h+var_48], rax                                         ; +0x1e, 0x140474bbe\nmovzx   r15d, r9b                                                      ; +0x26, 0x140474bc6\nmov     r14, r8                                                        ; +0x2a, 0x140474bca\nmov     r12, rdx                                                       ; +0x2d, 0x140474bcd\nmov     rbp, rcx                                                       ; +0x30, 0x140474bd0\nmov     [r11-50h], rdx                                                 ; +0x33, 0x140474bd3\nmov     rdi, [rsp+108h+arg_20]                                         ; +0x37, 0x140474bd7\nlea     rax, [r11-70h]                                                 ; +0x3f, 0x140474bdf\nmov     [r11-88h], rax                                                 ; +0x43, 0x140474be3\nlea     rcx, [r11-70h]                                                 ; +0x4a, 0x140474bea\ncall    sub_14003BDB0                                                  ; +0x4e, 0x140474bee\nmov     rsi, rax                                                       ; +0x53, 0x140474bf3\nxorps   xmm2, xmm2                                                     ; +0x56, 0x140474bf6\nmovss   xmm1, cs:dword_140623068                                       ; +0x59, 0x140474bf9\nlea     rcx, [rsp+108h+var_80]                                         ; +0x61, 0x140474c01\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x69, 0x140474c09\nmov     rbx, rax                                                       ; +0x6f, 0x140474c0f\nmov     rdx, rdi                                                       ; +0x72, 0x140474c12\nlea     rcx, [rsp+108h+var_78]                                         ; +0x75, 0x140474c15\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x7d, 0x140474c1d\nmov     r10, rax                                                       ; +0x83, 0x140474c23\nxor     eax, eax                                                       ; +0x86, 0x140474c26\nmov     [rsp+108h+var_98], rax                                         ; +0x88, 0x140474c28\nmov     [rsp+108h+var_A0], eax                                         ; +0x8d, 0x140474c2d\nmov     [rsp+108h+var_A8], al                                          ; +0x91, 0x140474c31\nlea     rax, qword_14052A4D8                                           ; +0x95, 0x140474c35\nmov     [rsp+108h+var_B0], rax                                         ; +0x9c, 0x140474c3c\nmov     [rsp+108h+var_B8], rbx                                         ; +0xa1, 0x140474c41\nmovss   xmm0, cs:dword_1406232D8                                       ; +0xa6, 0x140474c46\nmovss   [rsp+108h+var_C0], xmm0                                        ; +0xae, 0x140474c4e\nmovss   xmm1, cs:dword_140622ABC                                       ; +0xb4, 0x140474c54\nmovss   [rsp+108h+var_C8], xmm1                                        ; +0xbc, 0x140474c5c\nmovss   xmm0, cs:dword_140622B74                                       ; +0xc2, 0x140474c62\nmovss   [rsp+108h+var_D0], xmm0                                        ; +0xca, 0x140474c6a\nmov     rax, [rbp+240h]                                                ; +0xd0, 0x140474c70\nmov     [rsp+108h+var_D8], rax                                         ; +0xd7, 0x140474c77\nmov     [rsp+108h+var_E0], rbp                                         ; +0xdc, 0x140474c7c\nmov     [rsp+108h+var_E8], r10                                         ; +0xe1, 0x140474c81\nmov     r9, [rbp+220h]                                                 ; +0xe6, 0x140474c86\nmovzx   r8d, r15b                                                      ; +0xed, 0x140474c8d\nmov     rdx, r14                                                       ; +0xf1, 0x140474c91\nmov     rcx, rsi                                                       ; +0xf4, 0x140474c94\ncall    GameToolbox__createToggleButton                                ; +0xf7, 0x140474c97\nmov     rbx, rax                                                       ; +0xfc, 0x140474c9c\nmov     rcx, r12                                                       ; +0xff, 0x140474c9f\ncall    sub_14003A830                                                  ; +0x102, 0x140474ca2\nmov     rax, rbx                                                       ; +0x107, 0x140474ca7\nmov     rcx, [rsp+108h+var_48]                                         ; +0x10a, 0x140474caa\nxor     rcx, rsp; StackCookie                                          ; +0x112, 0x140474cb2\ncall    __security_check_cookie                                        ; +0x115, 0x140474cb5\nadd     rsp, 0D0h                                                      ; +0x11a, 0x140474cba\npop     r15                                                            ; +0x121, 0x140474cc1\npop     r14                                                            ; +0x123, 0x140474cc3\npop     r12                                                            ; +0x125, 0x140474cc5\npop     rdi                                                            ; +0x127, 0x140474cc7\npop     rsi                                                            ; +0x128, 0x140474cc8\npop     rbp                                                            ; +0x129, 0x140474cc9\npop     rbx                                                            ; +0x12a, 0x140474cca\nretn                                                                   ; +0x12b, 0x140474ccb", "xrefs": ["ColorSelectPopup::init @ 0x14008ea55", "ColorSelectPopup::init @ 0x14008eae6", "ColorSelectPopup::init @ 0x14008eb81", "ColorSelectPopup::init @ 0x14008ec11", "ColorSelectPopup::init @ 0x14008ecaa", "ColorSelectPopup::init @ 0x14008ed60", "ColorSelectPopup::init @ 0x14008edeb", "SetupCollisionTriggerPopup::init @ 0x140418f4e", "SetupCollisionTriggerPopup::init @ 0x140418fd7", "SetupCollisionTriggerPopup::init @ 0x14041904f", "SetupCollisionTriggerPopup::init @ 0x1404190c3", "SetupCollisionTriggerPopup::init @ 0x14041913b", "SetupCountTriggerPopup::init @ 0x14041bf4f", "SetupCountTriggerPopup::init @ 0x14041bfe5", "SetupEndPopup::init @ 0x14041d43b", "SetupEndPopup::init @ 0x14041d4be", "SetupEndPopup::init @ 0x14041d541", "SetupInstantCountPopup::init @ 0x140423035", "SetupInstantCountPopup::init @ 0x1404230eb", "SetupInstantCountPopup::init @ 0x14042318d", "SetupInstantCountPopup::init @ 0x14042323f", "SetupTouchTogglePopup::init @ 0x140464564", "SetupTouchTogglePopup::init @ 0x140464624", "SetupTouchTogglePopup::init @ 0x1404646d1", "SetupTouchTogglePopup::init @ 0x1404647a0", "SetupTouchTogglePopup::init @ 0x140464844", "SetupTouchTogglePopup::init @ 0x1404648fa", "<???> @ 0x1406db4bc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}