{"type": "func", "start": 5373207232, "end": 5373207972, "name": "SetupShaderEffectPopup::init", "pseudocode": "// \n// SetupShaderEffectPopup::init from 0x14044a2c0 to 0x14044a5a4 (740 bytes)\n// \n// 2 xrefs:\n// > EditorUI::editObject @ 0x14011cebc\n// > <???> @ 0x1406da700\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=1\nbool SetupShaderEffectPopup::init(SetupShaderEffectPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3, int a4)\n{\n  bool result; // al\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  int v9; // eax\n  float v10; // [rsp+40h] [rbp-48h]\n  __int128 v11; // [rsp+58h] [rbp-30h] BYREF\n  __int64 v12; // [rsp+68h] [rbp-20h]\n  __int64 v13; // [rsp+70h] [rbp-18h]\n\n  result = SetupTriggerPopup::init(a1, a2, a3, 430.0, 285.0, 1);\n  if ( result )\n  {\n    a1->m_disableTextDelegate = 1;\n    a1->determineStartValues(a1);\n    v11 = 0;\n    v12 = 2;\n    v13 = 15;\n    strcpy((char *)&v11, \"OK\");\n    SetupTriggerPopup::addCloseButton(a1, &v11);\n    SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);\n    a1->m_disableSliderDelegate = 1;\n    a1->m_objectID = a4;\n    switch ( a4 )\n    {\n      case 2904:\n        SetupShaderEffectPopup::setupShaderTrigger(a1);\n        goto LABEL_23;\n      case 2905:\n        SetupShaderEffectPopup::setupShockWave(a1);\n        goto LABEL_22;\n      case 2907:\n        SetupShaderEffectPopup::setupShockLine(a1);\n        goto LABEL_22;\n      case 2909:\n        SetupShaderEffectPopup::setupGlitch(a1);\n        goto LABEL_22;\n      case 2910:\n        SetupShaderEffectPopup::setupChromatic(a1);\n        goto LABEL_22;\n      case 2911:\n        SetupShaderEffectPopup::setupChromaticGlitch(a1);\n        goto LABEL_22;\n      case 2912:\n        SetupShaderEffectPopup::setupPixelate(a1);\n        goto LABEL_22;\n      case 2913:\n        SetupShaderEffectPopup::setupLensCircle(a1);\n        goto LABEL_22;\n      case 2914:\n        SetupShaderEffectPopup::setupRadialBlur(a1);\n        goto LABEL_22;\n      case 2915:\n        SetupShaderEffectPopup::setupMotionBlur(a1);\n        goto LABEL_22;\n      case 2916:\n        SetupShaderEffectPopup::setupBulge(a1);\n        goto LABEL_22;\n      case 2917:\n        SetupShaderEffectPopup::setupPinch(a1);\n        goto LABEL_22;\n      case 2919:\n        SetupShaderEffectPopup::setupGrayscale(a1);\n        goto LABEL_22;\n      case 2920:\n        SetupShaderEffectPopup::setupSepia(a1);\n        goto LABEL_22;\n      case 2921:\n        SetupShaderEffectPopup::setupInvertColor(a1);\n        goto LABEL_22;\n      case 2922:\n        SetupShaderEffectPopup::setupHueShift(a1);\n        goto LABEL_22;\n      case 2923:\n        SetupShaderEffectPopup::setupColorChange(a1);\n        goto LABEL_22;\n      case 2924:\n        SetupShaderEffectPopup::setupSplitScreen(a1);\n        goto LABEL_22;\n      default:\n        if ( a4 != 2904 )\n        {\nLABEL_22:\n          v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n          cocos2d::CCDirector::getWinSize(v8);\n          v11 = 0;\n          v12 = 1;\n          v13 = 15;\n          LOWORD(v11) = 32;\n          cocos2d::CCPoint::CCPoint(v10 * 0.5, (float)((float)(a1->m_width * 0.5) + (float)(v10 * 0.5)) - 15.0);\n          SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 531, (unsigned int)&v11, v9, 0, 0, 0, 1058642330);\n        }\nLABEL_23:\n        a1->updateDefaultTriggerValues(a1);\n        a1->m_disableTextDelegate = 0;\n        result = 1;\n        break;\n    }\n  }\n  return result;\n}", "assembly": "; \n; SetupShaderEffectPopup::init from 0x14044a2c0 to 0x14044a5a4 (740 bytes)\n; \n; 2 xrefs:\n; > EditorUI::editObject @ 0x14011cebc\n; > <???> @ 0x1406da700\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     [rsp+arg_0], rbx                                               ; +0x0, 0x14044a2c0\npush    rdi                                                            ; +0x5, 0x14044a2c5\nsub     rsp, 80h                                                       ; +0x6, 0x14044a2c6\nmov     edi, r9d                                                       ; +0xd, 0x14044a2cd\nmov     rbx, rcx                                                       ; +0x10, 0x14044a2d0\nmov     [rsp+88h+var_60], 1                                            ; +0x13, 0x14044a2d3\nmovss   xmm0, cs:dword_14062342C                                       ; +0x1b, 0x14044a2db\nmovss   [rsp+88h+var_68], xmm0                                         ; +0x23, 0x14044a2e3\nmovss   xmm3, cs:dword_140623498                                       ; +0x29, 0x14044a2e9\ncall    SetupTriggerPopup__init                                        ; +0x31, 0x14044a2f1\ntest    al, al                                                         ; +0x36, 0x14044a2f6\njnz     short loc_14044A30B                                            ; +0x38, 0x14044a2f8\nmov     rbx, [rsp+88h+arg_0]                                           ; +0x3a, 0x14044a2fa\nadd     rsp, 80h                                                       ; +0x42, 0x14044a302\npop     rdi                                                            ; +0x49, 0x14044a309\nretn                                                                   ; +0x4a, 0x14044a30a\nmov     byte ptr [rbx+2CCh], 1                                         ; +0x4b, 0x14044a30b\nmov     rax, [rbx]                                                     ; +0x52, 0x14044a312\nmov     rcx, rbx                                                       ; +0x55, 0x14044a315\ncall    qword ptr [rax+428h]                                           ; +0x58, 0x14044a318\nxorps   xmm0, xmm0                                                     ; +0x5e, 0x14044a31e\nmovups  [rsp+88h+var_30], xmm0                                         ; +0x61, 0x14044a321\nmov     [rsp+88h+var_20], 2                                            ; +0x66, 0x14044a326\nmov     [rsp+88h+var_18], 0Fh                                          ; +0x6f, 0x14044a32f\nmov     eax, 4B4Fh                                                     ; +0x78, 0x14044a338\nmov     word ptr [rsp+88h+var_30], ax                                  ; +0x7d, 0x14044a33d\nmov     byte ptr [rsp+88h+var_30+2], 0                                 ; +0x82, 0x14044a342\nlea     rdx, [rsp+88h+var_30]                                          ; +0x87, 0x14044a347\nmov     rcx, rbx                                                       ; +0x8c, 0x14044a34c\ncall    SetupTriggerPopup__addCloseButton                              ; +0x8f, 0x14044a34f\nmov     rcx, rbx                                                       ; +0x94, 0x14044a354\ncall    SetupTriggerPopup__createMultiTriggerItemsDefaultHorizontal    ; +0x97, 0x14044a357\nmov     byte ptr [rbx+348h], 1                                         ; +0x9c, 0x14044a35c\nmov     [rbx+3BCh], edi                                                ; +0xa3, 0x14044a363\nlea     eax, [rdi-0B58h]; switch 21 cases                              ; +0xa9, 0x14044a369\ncmp     eax, 14h                                                       ; +0xaf, 0x14044a36f\nja      def_14044A38B; jumptable 000000014044A38B default case, cases 2906,2908,2918 ; +0xb2, 0x14044a372\ncdqe                                                                   ; +0xb8, 0x14044a378\nlea     rdx, cs:140000000h                                             ; +0xba, 0x14044a37a\nmov     ecx, ds:(jpt_14044A38B - 140000000h)[rdx+rax*4]                ; +0xc1, 0x14044a381\nadd     rcx, rdx                                                       ; +0xc8, 0x14044a388\njmp     rcx; switch jump                                               ; +0xcb, 0x14044a38b\nmov     rcx, rbx; jumptable 000000014044A38B case 2905                 ; +0xcd, 0x14044a38d\ncall    SetupShaderEffectPopup__setupShockWave                         ; +0xd0, 0x14044a390\njmp     loc_14044A462                                                  ; +0xd5, 0x14044a395\nmov     rcx, rbx; jumptable 000000014044A38B case 2907                 ; +0xda, 0x14044a39a\ncall    SetupShaderEffectPopup__setupShockLine                         ; +0xdd, 0x14044a39d\njmp     loc_14044A462                                                  ; +0xe2, 0x14044a3a2\nmov     rcx, rbx; jumptable 000000014044A38B case 2909                 ; +0xe7, 0x14044a3a7\ncall    SetupShaderEffectPopup__setupGlitch                            ; +0xea, 0x14044a3aa\njmp     loc_14044A462                                                  ; +0xef, 0x14044a3af\nmov     rcx, rbx; jumptable 000000014044A38B case 2910                 ; +0xf4, 0x14044a3b4\ncall    SetupShaderEffectPopup__setupChromatic                         ; +0xf7, 0x14044a3b7\njmp     loc_14044A462                                                  ; +0xfc, 0x14044a3bc\nmov     rcx, rbx; jumptable 000000014044A38B case 2911                 ; +0x101, 0x14044a3c1\ncall    SetupShaderEffectPopup__setupChromaticGlitch                   ; +0x104, 0x14044a3c4\njmp     loc_14044A462                                                  ; +0x109, 0x14044a3c9\nmov     rcx, rbx; jumptable 000000014044A38B case 2912                 ; +0x10e, 0x14044a3ce\ncall    SetupShaderEffectPopup__setupPixelate                          ; +0x111, 0x14044a3d1\njmp     loc_14044A462                                                  ; +0x116, 0x14044a3d6\nmov     rcx, rbx; jumptable 000000014044A38B case 2913                 ; +0x11b, 0x14044a3db\ncall    SetupShaderEffectPopup__setupLensCircle                        ; +0x11e, 0x14044a3de\njmp     short loc_14044A462                                            ; +0x123, 0x14044a3e3\nmov     rcx, rbx; jumptable 000000014044A38B case 2914                 ; +0x125, 0x14044a3e5\ncall    SetupShaderEffectPopup__setupRadialBlur                        ; +0x128, 0x14044a3e8\njmp     short loc_14044A462                                            ; +0x12d, 0x14044a3ed\nmov     rcx, rbx; jumptable 000000014044A38B case 2915                 ; +0x12f, 0x14044a3ef\ncall    SetupShaderEffectPopup__setupMotionBlur                        ; +0x132, 0x14044a3f2\njmp     short loc_14044A462                                            ; +0x137, 0x14044a3f7\nmov     rcx, rbx; jumptable 000000014044A38B case 2916                 ; +0x139, 0x14044a3f9\ncall    SetupShaderEffectPopup__setupBulge                             ; +0x13c, 0x14044a3fc\njmp     short loc_14044A462                                            ; +0x141, 0x14044a401\nmov     rcx, rbx; jumptable 000000014044A38B case 2917                 ; +0x143, 0x14044a403\ncall    SetupShaderEffectPopup__setupPinch                             ; +0x146, 0x14044a406\njmp     short loc_14044A462                                            ; +0x14b, 0x14044a40b\nmov     rcx, rbx; jumptable 000000014044A38B case 2919                 ; +0x14d, 0x14044a40d\ncall    SetupShaderEffectPopup__setupGrayscale                         ; +0x150, 0x14044a410\njmp     short loc_14044A462                                            ; +0x155, 0x14044a415\nmov     rcx, rbx; jumptable 000000014044A38B case 2920                 ; +0x157, 0x14044a417\ncall    SetupShaderEffectPopup__setupSepia                             ; +0x15a, 0x14044a41a\njmp     short loc_14044A462                                            ; +0x15f, 0x14044a41f\nmov     rcx, rbx; jumptable 000000014044A38B case 2921                 ; +0x161, 0x14044a421\ncall    SetupShaderEffectPopup__setupInvertColor                       ; +0x164, 0x14044a424\njmp     short loc_14044A462                                            ; +0x169, 0x14044a429\nmov     rcx, rbx; jumptable 000000014044A38B case 2922                 ; +0x16b, 0x14044a42b\ncall    SetupShaderEffectPopup__setupHueShift                          ; +0x16e, 0x14044a42e\njmp     short loc_14044A462                                            ; +0x173, 0x14044a433\nmov     rcx, rbx; jumptable 000000014044A38B case 2923                 ; +0x175, 0x14044a435\ncall    SetupShaderEffectPopup__setupColorChange                       ; +0x178, 0x14044a438\njmp     short loc_14044A462                                            ; +0x17d, 0x14044a43d\nmov     rcx, rbx; jumptable 000000014044A38B case 2924                 ; +0x17f, 0x14044a43f\ncall    SetupShaderEffectPopup__setupSplitScreen                       ; +0x182, 0x14044a442\njmp     short loc_14044A462                                            ; +0x187, 0x14044a447\nmov     rcx, rbx; jumptable 000000014044A38B case 2904                 ; +0x189, 0x14044a449\ncall    SetupShaderEffectPopup__setupShaderTrigger                     ; +0x18c, 0x14044a44c\njmp     loc_14044A529                                                  ; +0x191, 0x14044a451\ncmp     edi, 0B58h; jumptable 000000014044A38B default case, cases 2906,2908,2918 ; +0x196, 0x14044a456\njz      loc_14044A529                                                  ; +0x19c, 0x14044a45c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1a2, 0x14044a462\nmov     rcx, rax                                                       ; +0x1a8, 0x14044a468\nlea     rdx, [rsp+88h+var_48]                                          ; +0x1ab, 0x14044a46b\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x1b0, 0x14044a470\nlea     rax, [rsp+88h+var_30]                                          ; +0x1b6, 0x14044a476\nmov     [rsp+88h+var_40], rax                                          ; +0x1bb, 0x14044a47b\nxorps   xmm0, xmm0                                                     ; +0x1c0, 0x14044a480\nmovups  [rsp+88h+var_30], xmm0                                         ; +0x1c3, 0x14044a483\nmov     [rsp+88h+var_20], 1                                            ; +0x1c8, 0x14044a488\nmov     [rsp+88h+var_18], 0Fh                                          ; +0x1d1, 0x14044a491\nmov     word ptr [rsp+88h+var_30], 20h ; ' '                           ; +0x1da, 0x14044a49a\nmovss   xmm2, dword ptr [rbx+2C8h]                                     ; +0x1e1, 0x14044a4a1\nmovss   xmm4, cs:dword_140622B08                                       ; +0x1e9, 0x14044a4a9\nmulss   xmm2, xmm4                                                     ; +0x1f1, 0x14044a4b1\nmovss   xmm0, [rsp+88h+var_44]                                         ; +0x1f5, 0x14044a4b5\nmulss   xmm0, xmm4                                                     ; +0x1fb, 0x14044a4bb\naddss   xmm2, xmm0                                                     ; +0x1ff, 0x14044a4bf\nsubss   xmm2, cs:dword_1406230E0                                       ; +0x203, 0x14044a4c3\nmovss   xmm1, dword ptr [rbx+2C4h]                                     ; +0x20b, 0x14044a4cb\nmulss   xmm1, xmm4                                                     ; +0x213, 0x14044a4d3\nmovss   xmm0, [rsp+88h+var_48]                                         ; +0x217, 0x14044a4d7\nmulss   xmm0, xmm4                                                     ; +0x21d, 0x14044a4dd\naddss   xmm1, xmm0                                                     ; +0x221, 0x14044a4e1\nsubss   xmm1, cs:dword_1406230E0                                       ; +0x225, 0x14044a4e5\nlea     rcx, [rsp+88h+var_38]                                          ; +0x22d, 0x14044a4ed\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x232, 0x14044a4f2\nmov     r9, rax                                                        ; +0x238, 0x14044a4f8\nmovss   xmm0, cs:dword_140622B38                                       ; +0x23b, 0x14044a4fb\nmovss   [rsp+88h+var_50], xmm0                                         ; +0x243, 0x14044a503\nxor     eax, eax                                                       ; +0x249, 0x14044a509\nmov     [rsp+88h+var_58], eax                                          ; +0x24b, 0x14044a50b\nmov     [rsp+88h+var_60], eax                                          ; +0x24f, 0x14044a50f\nmov     byte ptr [rsp+88h+var_68], al                                  ; +0x253, 0x14044a513\nlea     r8, [rsp+88h+var_30]                                           ; +0x257, 0x14044a517\nmov     edx, 213h                                                      ; +0x25c, 0x14044a51c\nmov     rcx, rbx                                                       ; +0x261, 0x14044a521\ncall    SetupTriggerPopup__createToggleValueControl                    ; +0x264, 0x14044a524\nmov     rax, [rbx]                                                     ; +0x269, 0x14044a529\nmov     rcx, rbx                                                       ; +0x26c, 0x14044a52c\ncall    qword ptr [rax+450h]                                           ; +0x26f, 0x14044a52f\nmov     byte ptr [rbx+2CCh], 0                                         ; +0x275, 0x14044a535\nmov     al, 1                                                          ; +0x27c, 0x14044a53c\nmov     rbx, [rsp+88h+arg_0]                                           ; +0x27e, 0x14044a53e\nadd     rsp, 80h                                                       ; +0x286, 0x14044a546\npop     rdi                                                            ; +0x28d, 0x14044a54d\nretn                                                                   ; +0x28e, 0x14044a54e\nalign 10h                                                              ; +0x28f, 0x14044a54f\ndd offset loc_14044A449 - 140000000h; jump table for switch statement  ; +0x290, 0x14044a550", "xrefs": ["EditorUI::editObject @ 0x14011cebc", "<???> @ 0x1406da700"], "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"}