{"type": "func", "start": 5373456448, "end": 5373456976, "name": "ShaderLayer::triggerBulge", "pseudocode": "// \n// ShaderLayer::triggerBulge from 0x140487040 to 0x140487250 (528 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerShaderCommand @ 0x140221cdb\n// > <???> @ 0x1406dbda4\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::triggerBulge(\n        ShaderLayer *a1,\n        float a2,\n        float a3,\n        float a4,\n        float a5,\n        float a6,\n        int a7,\n        int a8,\n        float a9,\n        bool a10)\n{\n  ShaderLayer *v10; // rbx\n  float m_bulgeValue; // xmm1_4\n  float x; // xmm1_4\n  float y; // xmm1_4\n  float m_bulgeRadius; // xmm1_4\n\n  v10 = a1;\n  if ( a3 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      m_bulgeValue = 0.0;\n    }\n    else\n    {\n      if ( a1->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&a1->m_state, 21);\n      m_bulgeValue = v10->m_state.m_bulgeValue;\n      a1 = v10;\n    }\n    ShaderLayer::tweenValue(a1, m_bulgeValue, a3, 21, a2, a8, a9);\n  }\n  if ( a4 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      x = 0.0;\n    }\n    else\n    {\n      if ( v10->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v10->m_state, 22);\n      x = v10->m_state.m_bulgeScreenOffset.x;\n    }\n    ShaderLayer::tweenValue(v10, x, a4, 22, a2, a8, a9);\n  }\n  if ( a5 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      y = 0.0;\n    }\n    else\n    {\n      if ( v10->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v10->m_state, 23);\n      y = v10->m_state.m_bulgeScreenOffset.y;\n    }\n    ShaderLayer::tweenValue(v10, y, a5, 23, a2, a8, a9);\n  }\n  if ( a6 != -909190.0 )\n  {\n    if ( a2 <= 0.0 )\n    {\n      m_bulgeRadius = 0.0;\n    }\n    else\n    {\n      if ( v10->m_timesyncShaderActions )\n        GJShaderState::timesyncShaderAction(&v10->m_state, 24);\n      m_bulgeRadius = v10->m_state.m_bulgeRadius;\n    }\n    ShaderLayer::tweenValue(v10, m_bulgeRadius, a6, 24, a2, a8, a9);\n  }\n  v10->m_state.m_bulgeRelative = a10;\n  v10->m_state.m_bulgeTargetID = a7;\n}", "assembly": "; \n; ShaderLayer::triggerBulge from 0x140487040 to 0x140487250 (528 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerShaderCommand @ 0x140221cdb\n; > <???> @ 0x1406dbda4\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, 0x140487040\nmov     [rax+8], rbx                                                   ; +0x3, 0x140487043\npush    rdi                                                            ; +0x7, 0x140487047\nsub     rsp, 0A0h                                                      ; +0x8, 0x140487048\nmov     edi, [rsp+0A8h+arg_38]                                         ; +0xf, 0x14048704f\nmov     rbx, rcx                                                       ; +0x16, 0x140487056\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x19, 0x140487059\nmovaps  xmm6, xmm1                                                     ; +0x1d, 0x14048705d\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x20, 0x140487060\nxorps   xmm7, xmm7                                                     ; +0x24, 0x140487064\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x27, 0x140487067\nmovaps  xmm8, xmm2                                                     ; +0x2c, 0x14048706c\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x30, 0x140487070\nmovss   xmm9, [rsp+0A8h+arg_40]                                        ; +0x35, 0x140487075\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x3f, 0x14048707f\nmovss   xmm10, cs:dword_140623B00                                      ; +0x44, 0x140487084\nucomiss xmm8, xmm10                                                    ; +0x4d, 0x14048708d\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x51, 0x140487091\nmovaps  xmm11, xmm3                                                    ; +0x56, 0x140487096\njp      short loc_14048709E                                            ; +0x5a, 0x14048709a\njz      short loc_1404870ED                                            ; +0x5c, 0x14048709c\ncomiss  xmm6, xmm7                                                     ; +0x5e, 0x14048709e\njbe     short loc_1404870CE                                            ; +0x61, 0x1404870a1\ncmp     byte ptr [rcx+460h], 0                                         ; +0x63, 0x1404870a3\njz      short loc_1404870BD                                            ; +0x6a, 0x1404870aa\nadd     rcx, 198h                                                      ; +0x6c, 0x1404870ac\nmov     edx, 15h                                                       ; +0x73, 0x1404870b3\ncall    GJShaderState__timesyncShaderAction                            ; +0x78, 0x1404870b8\nmovss   xmm1, dword ptr [rbx+3B0h]                                     ; +0x7d, 0x1404870bd\nmovaps  xmm2, xmm8                                                     ; +0x85, 0x1404870c5\nmov     rcx, rbx                                                       ; +0x89, 0x1404870c9\njmp     short loc_1404870D1                                            ; +0x8c, 0x1404870cc\nxorps   xmm1, xmm1                                                     ; +0x8e, 0x1404870ce\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x91, 0x1404870d1\nmov     r9d, 15h                                                       ; +0x98, 0x1404870d8\nmov     [rsp+0A8h+var_80], edi                                         ; +0x9e, 0x1404870de\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0xa2, 0x1404870e2\ncall    ShaderLayer__tweenValue                                        ; +0xa8, 0x1404870e8\nucomiss xmm11, xmm10                                                   ; +0xad, 0x1404870ed\njp      short loc_1404870F5                                            ; +0xb1, 0x1404870f1\njz      short loc_140487144                                            ; +0xb3, 0x1404870f3\ncomiss  xmm6, xmm7                                                     ; +0xb5, 0x1404870f5\njbe     short loc_14048711E                                            ; +0xb8, 0x1404870f8\ncmp     byte ptr [rbx+460h], 0                                         ; +0xba, 0x1404870fa\njz      short loc_140487114                                            ; +0xc1, 0x140487101\nlea     rcx, [rbx+198h]                                                ; +0xc3, 0x140487103\nmov     edx, 16h                                                       ; +0xca, 0x14048710a\ncall    GJShaderState__timesyncShaderAction                            ; +0xcf, 0x14048710f\nmovss   xmm1, dword ptr [rbx+3C8h]                                     ; +0xd4, 0x140487114\njmp     short loc_140487121                                            ; +0xdc, 0x14048711c\nxorps   xmm1, xmm1                                                     ; +0xde, 0x14048711e\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0xe1, 0x140487121\nmov     r9d, 16h                                                       ; +0xe8, 0x140487128\nmov     [rsp+0A8h+var_80], edi                                         ; +0xee, 0x14048712e\nmovaps  xmm2, xmm11                                                    ; +0xf2, 0x140487132\nmov     rcx, rbx                                                       ; +0xf6, 0x140487136\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0xf9, 0x140487139\ncall    ShaderLayer__tweenValue                                        ; +0xff, 0x14048713f\nmovss   xmm8, [rsp+0A8h+arg_20]                                        ; +0x104, 0x140487144\nucomiss xmm8, xmm10                                                    ; +0x10e, 0x14048714e\njp      short loc_140487156                                            ; +0x112, 0x140487152\njz      short loc_1404871A5                                            ; +0x114, 0x140487154\ncomiss  xmm6, xmm7                                                     ; +0x116, 0x140487156\njbe     short loc_14048717F                                            ; +0x119, 0x140487159\ncmp     byte ptr [rbx+460h], 0                                         ; +0x11b, 0x14048715b\njz      short loc_140487175                                            ; +0x122, 0x140487162\nlea     rcx, [rbx+198h]                                                ; +0x124, 0x140487164\nmov     edx, 17h                                                       ; +0x12b, 0x14048716b\ncall    GJShaderState__timesyncShaderAction                            ; +0x130, 0x140487170\nmovss   xmm1, dword ptr [rbx+3CCh]                                     ; +0x135, 0x140487175\njmp     short loc_140487182                                            ; +0x13d, 0x14048717d\nxorps   xmm1, xmm1                                                     ; +0x13f, 0x14048717f\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x142, 0x140487182\nmov     r9d, 17h                                                       ; +0x149, 0x140487189\nmov     [rsp+0A8h+var_80], edi                                         ; +0x14f, 0x14048718f\nmovaps  xmm2, xmm8                                                     ; +0x153, 0x140487193\nmov     rcx, rbx                                                       ; +0x157, 0x140487197\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x15a, 0x14048719a\ncall    ShaderLayer__tweenValue                                        ; +0x160, 0x1404871a0\nmovss   xmm8, [rsp+0A8h+arg_28]                                        ; +0x165, 0x1404871a5\nucomiss xmm8, xmm10                                                    ; +0x16f, 0x1404871af\njp      short loc_1404871B7                                            ; +0x173, 0x1404871b3\njz      short loc_140487206                                            ; +0x175, 0x1404871b5\ncomiss  xmm6, xmm7                                                     ; +0x177, 0x1404871b7\njbe     short loc_1404871E0                                            ; +0x17a, 0x1404871ba\ncmp     byte ptr [rbx+460h], 0                                         ; +0x17c, 0x1404871bc\njz      short loc_1404871D6                                            ; +0x183, 0x1404871c3\nlea     rcx, [rbx+198h]                                                ; +0x185, 0x1404871c5\nmov     edx, 18h                                                       ; +0x18c, 0x1404871cc\ncall    GJShaderState__timesyncShaderAction                            ; +0x191, 0x1404871d1\nmovss   xmm1, dword ptr [rbx+3BCh]                                     ; +0x196, 0x1404871d6\njmp     short loc_1404871E3                                            ; +0x19e, 0x1404871de\nxorps   xmm1, xmm1                                                     ; +0x1a0, 0x1404871e0\nmovss   [rsp+0A8h+var_78], xmm9                                        ; +0x1a3, 0x1404871e3\nmov     r9d, 18h                                                       ; +0x1aa, 0x1404871ea\nmov     [rsp+0A8h+var_80], edi                                         ; +0x1b0, 0x1404871f0\nmovaps  xmm2, xmm8                                                     ; +0x1b4, 0x1404871f4\nmov     rcx, rbx                                                       ; +0x1b8, 0x1404871f8\nmovss   [rsp+0A8h+var_88], xmm6                                        ; +0x1bb, 0x1404871fb\ncall    ShaderLayer__tweenValue                                        ; +0x1c1, 0x140487201\nmovzx   eax, [rsp+0A8h+arg_48]                                         ; +0x1c6, 0x140487206\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x1ce, 0x14048720e\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x1d6, 0x140487216\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x1db, 0x14048721b\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x1e0, 0x140487220\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1e5, 0x140487225\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1ea, 0x14048722a\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x1ef, 0x14048722f\nmov     [rbx+3B4h], al                                                 ; +0x1f4, 0x140487234\nmov     eax, [rsp+0A8h+arg_30]                                         ; +0x1fa, 0x14048723a\nmov     [rbx+3B8h], eax                                                ; +0x201, 0x140487241\nmov     rbx, [r11+10h]                                                 ; +0x207, 0x140487247\nmov     rsp, r11                                                       ; +0x20b, 0x14048724b\npop     rdi                                                            ; +0x20e, 0x14048724e\nretn                                                                   ; +0x20f, 0x14048724f", "xrefs": ["GJBaseGameLayer::triggerShaderCommand @ 0x140221cdb", "<???> @ 0x1406dbda4"], "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"}