{"type": "func", "start": 5373438528, "end": 5373438769, "name": "ShaderLayer::update", "pseudocode": "// \n// ShaderLayer::update from 0x140482a40 to 0x140482b31 (241 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140609dc0\n// > <???> @ 0x1406a62d8\n// > <???> @ 0x1406a62e8\n// > <???> @ 0x1406dbb4c\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::update(ShaderLayer *a1, float a2)\n{\n  const char *v3; // rdx\n  std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr Myhead; // rax\n  std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr v5; // rbx\n  cocos2d::CCSize v6; // [rsp+40h] [rbp+8h] BYREF\n  __int64 v7; // [rsp+50h] [rbp+18h] BYREF\n\n  cocos2d::CCSize::CCSize(&v6, &a1->m_screenSize);\n  if ( a1->m_targetTextureSize.width != v6.width || a1->m_targetTextureSize.height != v6.height )\n  {\n    cocos2d::CCLog((cocos2d *)\"Resetting shader\", v3);\n    ShaderLayer::setupShader(a1, 0);\n  }\n  a1->m_state.m_time = a2 + a1->m_state.m_time;\n  Myhead = a1->m_state.m_tweenActions._List._Mypair._Myval2._Myhead;\n  v5 = *(std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr *)Myhead;\n  if ( *(std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr *)Myhead != Myhead )\n  {\n    do\n    {\n      GJValueTween::step((GJValueTween *)((char *)v5 + 20), a2);\n      GJShaderState::updateTweenAction(&a1->m_state, *((float *)v5 + 9), *((_DWORD *)v5 + 4));\n      if ( *((_BYTE *)v5 + 48) )\n        v5 = (std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr)*sub_14024D170(&a1->m_state.m_tweenActions._Traitsobj._Mypair._Myval2._Myval2, &v7, (void **)v5);\n      else\n        v5 = *(std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr *)v5;\n    }\n    while ( v5 != a1->m_state.m_tweenActions._List._Mypair._Myval2._Myhead );\n  }\n}", "assembly": "; \n; ShaderLayer::update from 0x140482a40 to 0x140482b31 (241 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140609dc0\n; > <???> @ 0x1406a62d8\n; > <???> @ 0x1406a62e8\n; > <???> @ 0x1406dbb4c\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_18], rbx                                              ; +0x0, 0x140482a40\npush    rsi                                                            ; +0x5, 0x140482a45\nsub     rsp, 30h                                                       ; +0x6, 0x140482a46\nmov     rsi, rcx                                                       ; +0xa, 0x140482a4a\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x140482a4d\nlea     rdx, [rcx+4B0h]                                                ; +0x12, 0x140482a52\nmovaps  xmm6, xmm1                                                     ; +0x19, 0x140482a59\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x1c, 0x140482a5c\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0x21, 0x140482a61\nmovss   xmm0, dword ptr [rsi+4C0h]                                     ; +0x27, 0x140482a67\nucomiss xmm0, [rsp+38h+arg_0]                                          ; +0x2f, 0x140482a6f\njp      short loc_140482A89                                            ; +0x34, 0x140482a74\njnz     short loc_140482A89                                            ; +0x36, 0x140482a76\nmovss   xmm0, dword ptr [rsi+4C4h]                                     ; +0x38, 0x140482a78\nucomiss xmm0, [rsp+38h+arg_4]                                          ; +0x40, 0x140482a80\njp      short loc_140482A89                                            ; +0x45, 0x140482a85\njz      short loc_140482AA0                                            ; +0x47, 0x140482a87\nlea     rcx, aResettingShade; \"Resetting shader\"                       ; +0x49, 0x140482a89\ncall    cs:?CCLog@cocos2d@@YAXPEBDZZ; cocos2d::CCLog(char const *,...) ; +0x50, 0x140482a90\nxor     edx, edx                                                       ; +0x56, 0x140482a96\nmov     rcx, rsi                                                       ; +0x58, 0x140482a98\ncall    ShaderLayer__setupShader                                       ; +0x5b, 0x140482a9b\nxorps   xmm0, xmm0                                                     ; +0x60, 0x140482aa0\ncvtss2sd xmm0, xmm6                                                    ; +0x63, 0x140482aa3\naddsd   xmm0, qword ptr [rsi+218h]                                     ; +0x67, 0x140482aa7\nmovsd   qword ptr [rsi+218h], xmm0                                     ; +0x6f, 0x140482aaf\nmov     rax, [rsi+1A0h]                                                ; +0x77, 0x140482ab7\nmov     rbx, [rax]                                                     ; +0x7e, 0x140482abe\ncmp     rbx, rax                                                       ; +0x81, 0x140482ac1\njz      short loc_140482B21                                            ; +0x84, 0x140482ac4\nmov     [rsp+38h+arg_8], rdi                                           ; +0x86, 0x140482ac6\nnop     dword ptr [rax+rax+00h]                                        ; +0x8b, 0x140482acb\nmovaps  xmm1, xmm6                                                     ; +0x90, 0x140482ad0\nlea     rcx, [rbx+14h]                                                 ; +0x93, 0x140482ad3\ncall    GJValueTween__step                                             ; +0x97, 0x140482ad7\nmov     r8d, [rbx+10h]                                                 ; +0x9c, 0x140482adc\nlea     rcx, [rsi+198h]                                                ; +0xa0, 0x140482ae0\nmovss   xmm1, dword ptr [rbx+24h]                                      ; +0xa7, 0x140482ae7\ncall    GJShaderState__updateTweenAction                               ; +0xac, 0x140482aec\ncmp     byte ptr [rbx+30h], 0                                          ; +0xb1, 0x140482af1\njz      short loc_140482B10                                            ; +0xb5, 0x140482af5\nmov     r8, rbx                                                        ; +0xb7, 0x140482af7\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xba, 0x140482afa\nlea     rcx, [rsi+198h]                                                ; +0xbf, 0x140482aff\ncall    sub_14024D170                                                  ; +0xc6, 0x140482b06\nmov     rbx, [rax]                                                     ; +0xcb, 0x140482b0b\njmp     short loc_140482B13                                            ; +0xce, 0x140482b0e\nmov     rbx, [rbx]                                                     ; +0xd0, 0x140482b10\ncmp     rbx, [rsi+1A0h]                                                ; +0xd3, 0x140482b13\njnz     short loc_140482AD0                                            ; +0xda, 0x140482b1a\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xdc, 0x140482b1c\nmov     rbx, [rsp+38h+arg_18]                                          ; +0xe1, 0x140482b21\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe6, 0x140482b26\nadd     rsp, 30h                                                       ; +0xeb, 0x140482b2b\npop     rsi                                                            ; +0xef, 0x140482b2f\nretn                                                                   ; +0xf0, 0x140482b30", "xrefs": ["<???> @ 0x140609dc0", "<???> @ 0x1406a62d8", "<???> @ 0x1406a62e8", "<???> @ 0x1406dbb4c"], "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"}