{"type": "func", "start": 5373456976, "end": 5373457518, "name": "ShaderLayer::triggerPinchX", "pseudocode": "// \n// ShaderLayer::triggerPinchX from 0x140487250 to 0x14048746e (542 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::triggerShaderCommand @ 0x140221d5b\n// > <???> @ 0x1406dbda4\n// > <???> @ 0x1406dbdb0\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\nvoid ShaderLayer::triggerPinchX(\n        ShaderLayer *a1,\n        float a2,\n        float a3,\n        float a4,\n        float a5,\n        float a6,\n        bool a7,\n        int a8,\n        int a9,\n        float a10,\n        bool a11)\n{\n  ShaderLayer *v11; // rbx\n  float m_pinchTargetX; // xmm1_4\n  float x; // xmm1_4\n  float m_pinchRadius; // xmm1_4\n  float v16; // xmm1_4\n\n  v11 = a1;\n  if ( a3 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      m_pinchTargetX = 0.0;\n    }\n    else\n    {\n      if ( a1->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&a1->m_state, 25);\n      m_pinchTargetX = v11->m_state.m_pinchTargetX;\n      a1 = v11;\n    }\n    ShaderLayer::tweenValue(a1, m_pinchTargetX, a3, 25, a2, a9, a10);\n  }\n  if ( a4 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      x = 0.0;\n    }\n    else\n    {\n      if ( v11->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v11->m_state, 27);\n      x = v11->m_state.m_pinchScreenOffset.x;\n    }\n    ShaderLayer::tweenValue(v11, x, a4, 27, a2, a9, a10);\n  }\n  if ( a5 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      m_pinchRadius = 0.0;\n    }\n    else\n    {\n      if ( v11->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v11->m_state, 29);\n      m_pinchRadius = v11->m_state.m_pinchRadius;\n    }\n    ShaderLayer::tweenValue(v11, m_pinchRadius, a5, 29, a2, a9, a10);\n  }\n  if ( a6 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      v16 = 0.0;\n    }\n    else\n    {\n      if ( v11->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v11->m_state, 30);\n      v16 = v11->m_state.m_pinchModifier.x;\n    }\n    ShaderLayer::tweenValue(v11, v16, a6, 30, a2, a9, a10);\n  }\n  v11->m_state.m_pinchTargetIDX = a8;\n  v11->m_state.m_pinchTargetEnabledX = a7;\n  v11->m_state.m_pinchRelative = a11;\n}", "assembly": "; \n; ShaderLayer::triggerPinchX from 0x140487250 to 0x14048746e (542 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::triggerShaderCommand @ 0x140221d5b\n; > <???> @ 0x1406dbda4\n; > <???> @ 0x1406dbdb0\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, 0x140487250\nmov     [rax+8], rbx                                                   ; +0x3, 0x140487253\npush    rdi                                                            ; +0x7, 0x140487257\nsub     rsp, 0A0h                                                      ; +0x8, 0x140487258\nmov     edi, [rsp+0A8h+arg_40]                                         ; +0xf, 0x14048725f\nmov     rbx, rcx                                                       ; +0x16, 0x140487266\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x19, 0x140487269\nmovaps  xmm6, xmm1                                                     ; +0x1d, 0x14048726d\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x20, 0x140487270\nxorps   xmm7, xmm7                                                     ; +0x24, 0x140487274\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x27, 0x140487277\nmovaps  xmm8, xmm2                                                     ; +0x2c, 0x14048727c\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x30, 0x140487280\nmovss   xmm9, [rsp+0A8h+arg_48]                                        ; +0x35, 0x140487285\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x3f, 0x14048728f\nmovss   xmm10, cs:dword_140623B00                                      ; +0x44, 0x140487294\nucomiss xmm8, xmm10                                                    ; +0x4d, 0x14048729d\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x51, 0x1404872a1\nmovaps  xmm11, xmm3                                                    ; +0x56, 0x1404872a6\njp      short loc_1404872AE                                            ; +0x5a, 0x1404872aa\njz      short loc_1404872FD                                            ; +0x5c, 0x1404872ac\ncomiss  xmm6, xmm7                                                     ; +0x5e, 0x1404872ae\njbe     short loc_1404872DE                                            ; +0x61, 0x1404872b1\ncmp     byte ptr [rcx+460h], 0                                         ; +0x63, 0x1404872b3\njz      short loc_1404872CD                                            ; +0x6a, 0x1404872ba\nadd     rcx, 198h                                                      ; +0x6c, 0x1404872bc\nmov     edx, 19h                                                       ; +0x73, 0x1404872c3\ncall    GJShaderState__timesyncShaderAction                            ; +0x78, 0x1404872c8\nmovss   xmm1, dword ptr [rbx+3D0h]                                     ; +0x7d, 0x1404872cd\nmovaps  xmm2, xmm8                                                     ; +0x85, 0x1404872d5\nmov     rcx, rbx                                                       ; +0x89, 0x1404872d9\njmp     short loc_1404872E1                                            ; +0x8c, 0x1404872dc\nxorps   xmm1, xmm1                                                     ; +0x8e, 0x1404872de\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x91, 0x1404872e1\nmov     r9d, 19h                                                       ; +0x98, 0x1404872e8\nmov     [rsp+0A8h+var_80], edi                                         ; +0x9e, 0x1404872ee\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0xa2, 0x1404872f2\ncall    ShaderLayer__tweenValue                                        ; +0xa8, 0x1404872f8\nucomiss xmm11, xmm10                                                   ; +0xad, 0x1404872fd\njp      short loc_140487305                                            ; +0xb1, 0x140487301\njz      short loc_140487354                                            ; +0xb3, 0x140487303\ncomiss  xmm6, xmm7                                                     ; +0xb5, 0x140487305\njbe     short loc_14048732E                                            ; +0xb8, 0x140487308\ncmp     byte ptr [rbx+460h], 0                                         ; +0xba, 0x14048730a\njz      short loc_140487324                                            ; +0xc1, 0x140487311\nlea     rcx, [rbx+198h]                                                ; +0xc3, 0x140487313\nmov     edx, 1Bh                                                       ; +0xca, 0x14048731a\ncall    GJShaderState__timesyncShaderAction                            ; +0xcf, 0x14048731f\nmovss   xmm1, dword ptr [rbx+3ECh]                                     ; +0xd4, 0x140487324\njmp     short loc_140487331                                            ; +0xdc, 0x14048732c\nxorps   xmm1, xmm1                                                     ; +0xde, 0x14048732e\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0xe1, 0x140487331\nmov     r9d, 1Bh                                                       ; +0xe8, 0x140487338\nmov     [rsp+0A8h+var_80], edi                                         ; +0xee, 0x14048733e\nmovaps  xmm2, xmm11                                                    ; +0xf2, 0x140487342\nmov     rcx, rbx                                                       ; +0xf6, 0x140487346\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0xf9, 0x140487349\ncall    ShaderLayer__tweenValue                                        ; +0xff, 0x14048734f\nmovss   xmm8, [rsp+0A8h+arg_20]                                        ; +0x104, 0x140487354\nucomiss xmm8, xmm10                                                    ; +0x10e, 0x14048735e\njp      short loc_140487366                                            ; +0x112, 0x140487362\njz      short loc_1404873B5                                            ; +0x114, 0x140487364\ncomiss  xmm6, xmm7                                                     ; +0x116, 0x140487366\njbe     short loc_14048738F                                            ; +0x119, 0x140487369\ncmp     byte ptr [rbx+460h], 0                                         ; +0x11b, 0x14048736b\njz      short loc_140487385                                            ; +0x122, 0x140487372\nlea     rcx, [rbx+198h]                                                ; +0x124, 0x140487374\nmov     edx, 1Dh                                                       ; +0x12b, 0x14048737b\ncall    GJShaderState__timesyncShaderAction                            ; +0x130, 0x140487380\nmovss   xmm1, dword ptr [rbx+3F8h]                                     ; +0x135, 0x140487385\njmp     short loc_140487392                                            ; +0x13d, 0x14048738d\nxorps   xmm1, xmm1                                                     ; +0x13f, 0x14048738f\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x142, 0x140487392\nmov     r9d, 1Dh                                                       ; +0x149, 0x140487399\nmov     [rsp+0A8h+var_80], edi                                         ; +0x14f, 0x14048739f\nmovaps  xmm2, xmm8                                                     ; +0x153, 0x1404873a3\nmov     rcx, rbx                                                       ; +0x157, 0x1404873a7\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x15a, 0x1404873aa\ncall    ShaderLayer__tweenValue                                        ; +0x160, 0x1404873b0\nmovss   xmm8, [rsp+0A8h+arg_28]                                        ; +0x165, 0x1404873b5\nucomiss xmm8, xmm10                                                    ; +0x16f, 0x1404873bf\njp      short loc_1404873C7                                            ; +0x173, 0x1404873c3\njz      short loc_140487416                                            ; +0x175, 0x1404873c5\ncomiss  xmm6, xmm7                                                     ; +0x177, 0x1404873c7\njbe     short loc_1404873F0                                            ; +0x17a, 0x1404873ca\ncmp     byte ptr [rbx+460h], 0                                         ; +0x17c, 0x1404873cc\njz      short loc_1404873E6                                            ; +0x183, 0x1404873d3\nlea     rcx, [rbx+198h]                                                ; +0x185, 0x1404873d5\nmov     edx, 1Eh                                                       ; +0x18c, 0x1404873dc\ncall    GJShaderState__timesyncShaderAction                            ; +0x191, 0x1404873e1\nmovss   xmm1, dword ptr [rbx+3FCh]                                     ; +0x196, 0x1404873e6\njmp     short loc_1404873F3                                            ; +0x19e, 0x1404873ee\nxorps   xmm1, xmm1                                                     ; +0x1a0, 0x1404873f0\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x1a3, 0x1404873f3\nmov     r9d, 1Eh                                                       ; +0x1aa, 0x1404873fa\nmov     [rsp+0A8h+var_80], edi                                         ; +0x1b0, 0x140487400\nmovaps  xmm2, xmm8                                                     ; +0x1b4, 0x140487404\nmov     rcx, rbx                                                       ; +0x1b8, 0x140487408\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x1bb, 0x14048740b\ncall    ShaderLayer__tweenValue                                        ; +0x1c1, 0x140487411\nmov     eax, [rsp+0A8h+arg_38]                                         ; +0x1c6, 0x140487416\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x1cd, 0x14048741d\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x1d5, 0x140487425\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x1da, 0x14048742a\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x1df, 0x14048742f\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1e4, 0x140487434\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1e9, 0x140487439\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x1ee, 0x14048743e\nmov     [rbx+3DCh], eax                                                ; +0x1f3, 0x140487443\nmovzx   eax, [rsp+0A8h+arg_30]                                         ; +0x1f9, 0x140487449\nmov     [rbx+3D8h], al                                                 ; +0x201, 0x140487451\nmovzx   eax, [rsp+0A8h+arg_50]                                         ; +0x207, 0x140487457\nmov     [rbx+3F4h], al                                                 ; +0x20f, 0x14048745f\nmov     rbx, [r11+10h]                                                 ; +0x215, 0x140487465\nmov     rsp, r11                                                       ; +0x219, 0x140487469\npop     rdi                                                            ; +0x21c, 0x14048746c\nretn                                                                   ; +0x21d, 0x14048746d", "xrefs": ["GJBaseGameLayer::triggerShaderCommand @ 0x140221d5b", "<???> @ 0x1406dbda4", "<???> @ 0x1406dbdb0"], "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"}