{"type": "func", "start": 5373186816, "end": 5373187773, "name": "SetupAudioTriggerPopup::addTimeControls", "pseudocode": "// \n// SetupAudioTriggerPopup::addTimeControls from 0x140445300 to 0x1404456bd (957 bytes)\n// \n// 3 xrefs:\n// > SetupSFXPopup::init @ 0x140447aac\n// > SetupSongTriggerPopup::init @ 0x14045d1e0\n// > <???> @ 0x1406da5a4\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\nvoid SetupAudioTriggerPopup::addTimeControls(SetupAudioTriggerPopup *a1, int a2, float a3)\n{\n  float v3; // xmm0_4\n  int v4; // ebx\n  cocos2d::CCDirector *v5; // rax\n  double ValueControlAdvanced; // xmm0_8\n  char v7; // [rsp+80h] [rbp-31h]\n  __int64 v8; // [rsp+80h] [rbp-31h]\n  __int64 v9; // [rsp+80h] [rbp-31h]\n  __int64 v10; // [rsp+80h] [rbp-31h]\n  float v11; // [rsp+88h] [rbp-29h]\n  _BYTE v12[8]; // [rsp+90h] [rbp-21h] BYREF\n  __int128 *v13; // [rsp+98h] [rbp-19h]\n  __int128 *v14; // [rsp+A0h] [rbp-11h]\n  __int128 v15; // [rsp+A8h] [rbp-9h] BYREF\n  __int64 v16; // [rsp+B8h] [rbp+7h]\n  __int64 v17; // [rsp+C0h] [rbp+Fh]\n  char v18; // [rsp+130h] [rbp+7Fh] BYREF\n\n  v4 = (int)a1;\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v5);\n  cocos2d::CCPoint::CCPoint(v3, v11 * 0.5);\n  v13 = &v15;\n  v15 = 0;\n  v16 = 6;\n  v17 = 15;\n  strcpy((char *)&v15, \"Start:\");\n  cocos2d::CCPoint::CCPoint(0.0, -91.0);\n  cocos2d::CCPoint::operator+(&v18, v12);\n  v7 = 0;\n  ValueControlAdvanced = SetupTriggerPopup::createValueControlAdvanced(\n                           v4,\n                           408,\n                           (unsigned int)&v15,\n                           (unsigned int)v12,\n                           1059481190,\n                           0,\n                           2,\n                           6,\n                           0,\n                           0,\n                           1148846080,\n                           1,\n                           0,\n                           1,\n                           2,\n                           v7);\n  v14 = &v15;\n  v16 = 7;\n  v17 = 15;\n  v15 = 0x3A6E4965646146uLL;\n  cocos2d::CCPoint::CCPoint(*(float *)&ValueControlAdvanced, 91.0);\n  cocos2d::CCPoint::operator+(&v18, v12);\n  LOBYTE(v8) = 0;\n  SetupTriggerPopup::createValueControlAdvanced(\n    v4,\n    409,\n    (unsigned int)&v15,\n    (unsigned int)v12,\n    1059481190,\n    0,\n    2,\n    6,\n    0,\n    0,\n    1148846080,\n    1,\n    0,\n    1,\n    2,\n    v8);\n  v14 = &v15;\n  v15 = 0;\n  v16 = 4;\n  v17 = 15;\n  strcpy((char *)&v15, \"End:\");\n  cocos2d::CCPoint::CCPoint(0.0, -91.0);\n  cocos2d::CCPoint::operator+(&v18, v12);\n  LOBYTE(v9) = 0;\n  SetupTriggerPopup::createValueControlAdvanced(\n    v4,\n    410,\n    (unsigned int)&v15,\n    (unsigned int)v12,\n    1059481190,\n    0,\n    2,\n    6,\n    0,\n    0,\n    1148846080,\n    1,\n    0,\n    1,\n    2,\n    v9);\n  v14 = &v15;\n  v16 = 8;\n  v17 = 15;\n  v15 = 0x3A74754F65646146uLL;\n  cocos2d::CCPoint::CCPoint(0.0, 91.0);\n  cocos2d::CCPoint::operator+(&v18, v12);\n  LOBYTE(v10) = 0;\n  SetupTriggerPopup::createValueControlAdvanced(\n    v4,\n    411,\n    (unsigned int)&v15,\n    (unsigned int)v12,\n    1059481190,\n    0,\n    2,\n    6,\n    0,\n    0,\n    1148846080,\n    1,\n    0,\n    1,\n    2,\n    v10);\n}", "assembly": "; \n; SetupAudioTriggerPopup::addTimeControls from 0x140445300 to 0x1404456bd (957 bytes)\n; \n; 3 xrefs:\n; > SetupSFXPopup::init @ 0x140447aac\n; > SetupSongTriggerPopup::init @ 0x14045d1e0\n; > <???> @ 0x1406da5a4\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     rax, rsp                                                       ; +0x0, 0x140445300\nmov     [rax+8], rbx                                                   ; +0x3, 0x140445303\nmov     [rax+10h], rdi                                                 ; +0x7, 0x140445307\npush    rbp                                                            ; +0xb, 0x14044530b\nlea     rbp, [rax-5Fh]                                                 ; +0xc, 0x14044530c\nsub     rsp, 100h                                                      ; +0x10, 0x140445310\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x17, 0x140445317\nmovaps  xmmword ptr [rax-28h], xmm9                                    ; +0x1b, 0x14044531b\nmovaps  xmmword ptr [rax-38h], xmm10                                   ; +0x20, 0x140445320\nmovaps  xmmword ptr [rax-48h], xmm11                                   ; +0x25, 0x140445325\nmovaps  xmm6, xmm2                                                     ; +0x2a, 0x14044532a\nmov     rbx, rcx                                                       ; +0x2d, 0x14044532d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x140445330\nmov     rcx, rax                                                       ; +0x36, 0x140445336\nlea     rdx, [rbp+57h+var_80]                                          ; +0x39, 0x140445339\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x3d, 0x14044533d\nmovss   xmm2, [rbp+57h+var_7C]                                         ; +0x43, 0x140445343\nmulss   xmm2, cs:dword_140622B08                                       ; +0x48, 0x140445348\naddss   xmm2, xmm6                                                     ; +0x50, 0x140445350\nmovss   xmm1, [rbp+57h+var_80]                                         ; +0x54, 0x140445354\nmulss   xmm1, cs:dword_140622B08                                       ; +0x59, 0x140445359\nlea     rcx, [rbp+57h+arg_18]                                          ; +0x61, 0x140445361\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x65, 0x140445365\nlea     rax, [rbp+57h+var_60]                                          ; +0x6b, 0x14044536b\nmov     [rbp+57h+var_70], rax                                          ; +0x6f, 0x14044536f\nxorps   xmm0, xmm0                                                     ; +0x73, 0x140445373\nmovups  [rbp+57h+var_60], xmm0                                         ; +0x76, 0x140445376\nmov     [rbp+57h+var_50], 6                                            ; +0x7a, 0x14044537a\nmov     [rbp+57h+var_48], 0Fh                                          ; +0x82, 0x140445382\nmov     eax, cs:dword_1405EE9B8                                        ; +0x8a, 0x14044538a\nmov     dword ptr [rbp+57h+var_60], eax                                ; +0x90, 0x140445390\nmovzx   eax, cs:word_1405EE9BC                                         ; +0x93, 0x140445393\nmov     word ptr [rbp+57h+var_60+4], ax                                ; +0x9a, 0x14044539a\nmov     byte ptr [rbp+57h+var_60+6], 0                                 ; +0x9e, 0x14044539e\nmovss   xmm6, cs:flt_1406236A8                                         ; +0xa2, 0x1404453a2\nmovaps  xmm2, xmm6                                                     ; +0xaa, 0x1404453aa\nmovss   xmm1, cs:dword_1406239C4                                       ; +0xad, 0x1404453ad\nlea     rcx, [rbp+57h+var_68]                                          ; +0xb5, 0x1404453b5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb9, 0x1404453b9\nmov     r8, rax                                                        ; +0xbf, 0x1404453bf\nlea     rdx, [rbp+57h+var_78]                                          ; +0xc2, 0x1404453c2\nlea     rcx, [rbp+57h+arg_18]                                          ; +0xc6, 0x1404453c6\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xca, 0x1404453ca\nnop                                                                    ; +0xd0, 0x1404453d0\nmov     byte ptr [rsp+100h+var_88], 0                                  ; +0xd1, 0x1404453d1\nmov     dword ptr [rsp+100h+var_90], 2                                 ; +0xd6, 0x1404453d6\nmov     [rsp+100h+var_98], 1                                           ; +0xde, 0x1404453de\nxor     edi, edi                                                       ; +0xe6, 0x1404453e6\nmov     [rsp+100h+var_A0], edi                                         ; +0xe8, 0x1404453e8\nmov     [rsp+100h+var_A8], 1                                           ; +0xec, 0x1404453ec\nmovss   xmm11, cs:dword_14062350C                                      ; +0xf4, 0x1404453f4\nmovss   [rsp+100h+var_B0], xmm11                                       ; +0xfd, 0x1404453fd\nxorps   xmm10, xmm10                                                   ; +0x104, 0x140445404\nmovss   [rsp+100h+var_B8], xmm10                                       ; +0x108, 0x140445408\nmov     byte ptr [rsp+100h+var_C0], dil                                ; +0x10f, 0x14044540f\nmov     dword ptr [rsp+100h+var_C8], 6                                 ; +0x114, 0x140445414\nmov     [rsp+100h+var_D0], 2                                           ; +0x11c, 0x14044541c\nmov     byte ptr [rsp+100h+var_D8], dil                                ; +0x124, 0x140445424\nmovss   xmm9, cs:dword_140622B5C                                       ; +0x129, 0x140445429\nmovss   dword ptr [rsp+100h+var_E0], xmm9                              ; +0x132, 0x140445432\nlea     r9, [rbp+57h+var_78]                                           ; +0x139, 0x140445439\nlea     r8, [rbp+57h+var_60]                                           ; +0x13d, 0x14044543d\nmov     edx, 198h                                                      ; +0x141, 0x140445441\nmov     rcx, rbx                                                       ; +0x146, 0x140445446\ncall    SetupTriggerPopup__createValueControlAdvanced                  ; +0x149, 0x140445449\nlea     rax, [rbp+57h+var_60]                                          ; +0x14e, 0x14044544e\nmov     [rbp+57h+var_68], rax                                          ; +0x152, 0x140445452\nmov     qword ptr [rbp+57h+var_60+8], rdi                              ; +0x156, 0x140445456\nmov     [rbp+57h+var_50], 7                                            ; +0x15a, 0x14044545a\nmov     [rbp+57h+var_48], 0Fh                                          ; +0x162, 0x140445462\nmov     rax, cs:qword_1405EE9B0                                        ; +0x16a, 0x14044546a\nmov     dword ptr [rbp+57h+var_60], eax                                ; +0x171, 0x140445471\nmovzx   eax, word ptr cs:qword_1405EE9B0+4                             ; +0x174, 0x140445474\nmov     word ptr [rbp+57h+var_60+4], ax                                ; +0x17b, 0x14044547b\nmovzx   eax, byte ptr cs:qword_1405EE9B0+6                             ; +0x17f, 0x14044547f\nmov     byte ptr [rbp+57h+var_60+6], al                                ; +0x186, 0x140445486\nmov     byte ptr [rbp+57h+var_60+7], dil                               ; +0x189, 0x140445489\nmovaps  xmm2, xmm6                                                     ; +0x18d, 0x14044548d\nmovss   xmm1, cs:dword_140623298                                       ; +0x190, 0x140445490\nlea     rcx, [rbp+57h+var_70]                                          ; +0x198, 0x140445498\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x19c, 0x14044549c\nmov     r8, rax                                                        ; +0x1a2, 0x1404454a2\nlea     rdx, [rbp+57h+var_78]                                          ; +0x1a5, 0x1404454a5\nlea     rcx, [rbp+57h+arg_18]                                          ; +0x1a9, 0x1404454a9\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1ad, 0x1404454ad\nnop                                                                    ; +0x1b3, 0x1404454b3\nmov     byte ptr [rsp+100h+var_88], dil                                ; +0x1b4, 0x1404454b4\nmov     dword ptr [rsp+100h+var_90], 2                                 ; +0x1b9, 0x1404454b9\nmov     [rsp+100h+var_98], 1                                           ; +0x1c1, 0x1404454c1\nmov     [rsp+100h+var_A0], edi                                         ; +0x1c9, 0x1404454c9\nmov     [rsp+100h+var_A8], 1                                           ; +0x1cd, 0x1404454cd\nmovss   [rsp+100h+var_B0], xmm11                                       ; +0x1d5, 0x1404454d5\nmovss   [rsp+100h+var_B8], xmm10                                       ; +0x1dc, 0x1404454dc\nmov     byte ptr [rsp+100h+var_C0], dil                                ; +0x1e3, 0x1404454e3\nmov     dword ptr [rsp+100h+var_C8], 6                                 ; +0x1e8, 0x1404454e8\nmov     [rsp+100h+var_D0], 2                                           ; +0x1f0, 0x1404454f0\nmov     byte ptr [rsp+100h+var_D8], dil                                ; +0x1f8, 0x1404454f8\nmovss   dword ptr [rsp+100h+var_E0], xmm9                              ; +0x1fd, 0x1404454fd\nlea     r9, [rbp+57h+var_78]                                           ; +0x204, 0x140445504\nlea     r8, [rbp+57h+var_60]                                           ; +0x208, 0x140445508\nmov     edx, 199h                                                      ; +0x20c, 0x14044550c\nmov     rcx, rbx                                                       ; +0x211, 0x140445511\ncall    SetupTriggerPopup__createValueControlAdvanced                  ; +0x214, 0x140445514\nlea     rax, [rbp+57h+var_60]                                          ; +0x219, 0x140445519\nmov     [rbp+57h+var_68], rax                                          ; +0x21d, 0x14044551d\nxorps   xmm0, xmm0                                                     ; +0x221, 0x140445521\nmovups  [rbp+57h+var_60], xmm0                                         ; +0x224, 0x140445524\nmov     [rbp+57h+var_50], 4                                            ; +0x228, 0x140445528\nmov     [rbp+57h+var_48], 0Fh                                          ; +0x230, 0x140445530\nmov     dword ptr [rbp+57h+var_60], 3A646E45h                          ; +0x238, 0x140445538\nmov     byte ptr [rbp+57h+var_60+4], dil                               ; +0x23f, 0x14044553f\nmovss   xmm6, cs:dword_14062390C                                       ; +0x243, 0x140445543\nmovaps  xmm2, xmm6                                                     ; +0x24b, 0x14044554b\nmovss   xmm1, cs:dword_1406239C4                                       ; +0x24e, 0x14044554e\nlea     rcx, [rbp+57h+var_70]                                          ; +0x256, 0x140445556\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x25a, 0x14044555a\nmov     r8, rax                                                        ; +0x260, 0x140445560\nlea     rdx, [rbp+57h+var_78]                                          ; +0x263, 0x140445563\nlea     rcx, [rbp+57h+arg_18]                                          ; +0x267, 0x140445567\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x26b, 0x14044556b\nnop                                                                    ; +0x271, 0x140445571\nmov     byte ptr [rsp+100h+var_88], dil                                ; +0x272, 0x140445572\nmov     dword ptr [rsp+100h+var_90], 2                                 ; +0x277, 0x140445577\nmov     [rsp+100h+var_98], 1                                           ; +0x27f, 0x14044557f\nmov     [rsp+100h+var_A0], edi                                         ; +0x287, 0x140445587\nmov     [rsp+100h+var_A8], 1                                           ; +0x28b, 0x14044558b\nmovss   [rsp+100h+var_B0], xmm11                                       ; +0x293, 0x140445593\nmovss   [rsp+100h+var_B8], xmm10                                       ; +0x29a, 0x14044559a\nmov     byte ptr [rsp+100h+var_C0], dil                                ; +0x2a1, 0x1404455a1\nmov     dword ptr [rsp+100h+var_C8], 6                                 ; +0x2a6, 0x1404455a6\nmov     [rsp+100h+var_D0], 2                                           ; +0x2ae, 0x1404455ae\nmov     byte ptr [rsp+100h+var_D8], dil                                ; +0x2b6, 0x1404455b6\nmovss   dword ptr [rsp+100h+var_E0], xmm9                              ; +0x2bb, 0x1404455bb\nlea     r9, [rbp+57h+var_78]                                           ; +0x2c2, 0x1404455c2\nlea     r8, [rbp+57h+var_60]                                           ; +0x2c6, 0x1404455c6\nmov     edx, 19Ah                                                      ; +0x2ca, 0x1404455ca\nmov     rcx, rbx                                                       ; +0x2cf, 0x1404455cf\ncall    SetupTriggerPopup__createValueControlAdvanced                  ; +0x2d2, 0x1404455d2\nlea     rax, [rbp+57h+var_60]                                          ; +0x2d7, 0x1404455d7\nmov     [rbp+57h+var_68], rax                                          ; +0x2db, 0x1404455db\nxorps   xmm0, xmm0                                                     ; +0x2df, 0x1404455df\nmovups  [rbp+57h+var_60], xmm0                                         ; +0x2e2, 0x1404455e2\nmov     [rbp+57h+var_50], 8                                            ; +0x2e6, 0x1404455e6\nmov     [rbp+57h+var_48], 0Fh                                          ; +0x2ee, 0x1404455ee\nmov     rax, 3A74754F65646146h                                         ; +0x2f6, 0x1404455f6\nmov     qword ptr [rbp+57h+var_60], rax                                ; +0x300, 0x140445600\nmov     byte ptr [rbp+57h+var_60+8], dil                               ; +0x304, 0x140445604\nmovaps  xmm2, xmm6                                                     ; +0x308, 0x140445608\nmovss   xmm1, cs:dword_140623298                                       ; +0x30b, 0x14044560b\nlea     rcx, [rbp+57h+var_70]                                          ; +0x313, 0x140445613\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x317, 0x140445617\nmov     r8, rax                                                        ; +0x31d, 0x14044561d\nlea     rdx, [rbp+57h+var_78]                                          ; +0x320, 0x140445620\nlea     rcx, [rbp+57h+arg_18]                                          ; +0x324, 0x140445624\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x328, 0x140445628\nnop                                                                    ; +0x32e, 0x14044562e\nmov     byte ptr [rsp+100h+var_88], dil                                ; +0x32f, 0x14044562f\nmov     dword ptr [rsp+100h+var_90], 2                                 ; +0x334, 0x140445634\nmov     [rsp+100h+var_98], 1                                           ; +0x33c, 0x14044563c\nmov     [rsp+100h+var_A0], edi                                         ; +0x344, 0x140445644\nmov     [rsp+100h+var_A8], 1                                           ; +0x348, 0x140445648\nmovss   [rsp+100h+var_B0], xmm11                                       ; +0x350, 0x140445650\nmovss   [rsp+100h+var_B8], xmm10                                       ; +0x357, 0x140445657\nmov     byte ptr [rsp+100h+var_C0], dil                                ; +0x35e, 0x14044565e\nmov     dword ptr [rsp+100h+var_C8], 6                                 ; +0x363, 0x140445663\nmov     [rsp+100h+var_D0], 2                                           ; +0x36b, 0x14044566b\nmov     byte ptr [rsp+100h+var_D8], dil                                ; +0x373, 0x140445673\nmovss   dword ptr [rsp+100h+var_E0], xmm9                              ; +0x378, 0x140445678\nlea     r9, [rbp+57h+var_78]                                           ; +0x37f, 0x14044567f\nlea     r8, [rbp+57h+var_60]                                           ; +0x383, 0x140445683\nmov     edx, 19Bh                                                      ; +0x387, 0x140445687\nmov     rcx, rbx                                                       ; +0x38c, 0x14044568c\ncall    SetupTriggerPopup__createValueControlAdvanced                  ; +0x38f, 0x14044568f\nlea     r11, [rsp+100h+var_s0]                                         ; +0x394, 0x140445694\nmov     rbx, [r11+10h]                                                 ; +0x39c, 0x14044569c\nmov     rdi, [r11+18h]                                                 ; +0x3a0, 0x1404456a0\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x3a4, 0x1404456a4\nmovaps  xmm9, xmmword ptr [r11-20h]                                    ; +0x3a9, 0x1404456a9\nmovaps  xmm10, xmmword ptr [r11-30h]                                   ; +0x3ae, 0x1404456ae\nmovaps  xmm11, xmmword ptr [r11-40h]                                   ; +0x3b3, 0x1404456b3\nmov     rsp, r11                                                       ; +0x3b8, 0x1404456b8\npop     rbp                                                            ; +0x3bb, 0x1404456bb\nretn                                                                   ; +0x3bc, 0x1404456bc", "xrefs": ["SetupSFXPopup::init @ 0x140447aac", "SetupSongTriggerPopup::init @ 0x14045d1e0", "<???> @ 0x1406da5a4"], "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"}