{"type": "func", "start": 4300134160, "end": 4300134413, "name": "ColorAction2::step", "pseudocode": "// \n// ColorAction2::step from 0x1004ed710 to 0x1004ed80d (253 bytes)\n// \n// 0 xrefs:\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 __fastcall ColorAction2::step(ColorAction2 *a1, float a2)\n{\n  float v2; // xmm2_4\n  float v3; // xmm2_4\n  float m_duration; // xmm3_4\n  float v5; // xmm0_4\n  float m_fromOpacity; // xmm1_4\n  float v7; // [rsp-14h] [rbp-14h]\n\n  if ( !a1->m_stepFinished && !a1->m_paused )\n  {\n    v2 = a2 + a1->m_deltaTime;\n    a1->m_deltaTime = v2;\n    v3 = v2 + a1->m_stepInterval;\n    m_duration = a1->m_duration;\n    if ( v3 < m_duration )\n    {\n      if ( v3 <= 0.0 )\n      {\nLABEL_9:\n        a1->m_color = a1->m_fromColor;\n        m_fromOpacity = a1->m_fromOpacity;\n        goto LABEL_10;\n      }\n      v5 = v3 / m_duration;\n      if ( (float)(v3 / m_duration) < 1.0 )\n      {\n        if ( v5 > 0.0 )\n        {\n          v7 = v3 / m_duration;\n          a1->m_color = GameToolbox::multipliedColorValue(\n                          (cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_fromColor.r | (a1->m_fromColor.b << 16)),\n                          (cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_toColor.r | (a1->m_toColor.b << 16)),\n                          v5);\n          m_duration = a1->m_duration;\n          a1->m_currentOpacity = (float)((float)(a1->m_toOpacity - a1->m_fromOpacity) * v7) + a1->m_fromOpacity;\nLABEL_11:\n          a1->m_stepFinished = v3 >= m_duration;\n          return;\n        }\n        goto LABEL_9;\n      }\n    }\n    a1->m_color = a1->m_toColor;\n    m_fromOpacity = a1->m_toOpacity;\nLABEL_10:\n    a1->m_currentOpacity = m_fromOpacity;\n    goto LABEL_11;\n  }\n}", "assembly": "; \n; ColorAction2::step from 0x1004ed710 to 0x1004ed80d (253 bytes)\n; \n; 0 xrefs:\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\ncmp     byte ptr [rdi], 0                                              ; +0x0, 0x1004ed710\njnz     locret_1004ED80C                                               ; +0x3, 0x1004ed713\ncmp     byte ptr [rdi+1], 0                                            ; +0x9, 0x1004ed719\njnz     locret_1004ED80C                                               ; +0xd, 0x1004ed71d\nmovaps  xmm2, xmm0                                                     ; +0x13, 0x1004ed723\naddss   xmm2, dword ptr [rdi+0Ch]                                      ; +0x16, 0x1004ed726\nmovss   dword ptr [rdi+0Ch], xmm2                                      ; +0x1b, 0x1004ed72b\naddss   xmm2, dword ptr [rdi+5Ch]                                      ; +0x20, 0x1004ed730\nmovss   xmm3, dword ptr [rdi+18h]                                      ; +0x25, 0x1004ed735\nucomiss xmm2, xmm3                                                     ; +0x2a, 0x1004ed73a\njnb     loc_1004ED7D7                                                  ; +0x2d, 0x1004ed73d\nxorps   xmm1, xmm1                                                     ; +0x33, 0x1004ed743\nucomiss xmm2, xmm1                                                     ; +0x36, 0x1004ed746\njbe     loc_1004ED7ED                                                  ; +0x39, 0x1004ed749\nmovaps  xmm0, xmm2                                                     ; +0x3f, 0x1004ed74f\ndivss   xmm0, xmm3                                                     ; +0x42, 0x1004ed752\nucomiss xmm0, cs:alpha                                                 ; +0x46, 0x1004ed756\njnb     short loc_1004ED7D7                                            ; +0x4d, 0x1004ed75d\nucomiss xmm1, xmm0                                                     ; +0x4f, 0x1004ed75f\njnb     loc_1004ED7ED                                                  ; +0x52, 0x1004ed762\npush    rbp                                                            ; +0x58, 0x1004ed768\nmov     rbp, rsp                                                       ; +0x59, 0x1004ed769\npush    rbx                                                            ; +0x5c, 0x1004ed76c\npush    rax                                                            ; +0x5d, 0x1004ed76d\nmovzx   ecx, word ptr [rdi+10h]                                        ; +0x5e, 0x1004ed76e\nmovzx   eax, byte ptr [rdi+12h]                                        ; +0x62, 0x1004ed772\nshl     eax, 10h                                                       ; +0x66, 0x1004ed776\nor      eax, ecx                                                       ; +0x69, 0x1004ed779\nmovzx   ecx, word ptr [rdi+13h]                                        ; +0x6b, 0x1004ed77b\nmovzx   esi, byte ptr [rdi+15h]                                        ; +0x6f, 0x1004ed77f\nshl     esi, 10h                                                       ; +0x73, 0x1004ed783\nor      esi, ecx                                                       ; +0x76, 0x1004ed786\nmov     rbx, rdi                                                       ; +0x78, 0x1004ed788\nmov     edi, eax                                                       ; +0x7b, 0x1004ed78b\nmovss   dword ptr [rbp-10h], xmm2                                      ; +0x7d, 0x1004ed78d\nmovss   dword ptr [rbp-0Ch], xmm0                                      ; +0x82, 0x1004ed792\ncall    GameToolbox__multipliedColorValue                              ; +0x87, 0x1004ed797\nmov     rdi, rbx                                                       ; +0x8c, 0x1004ed79c\nmov     [rbx+2], ax                                                    ; +0x8f, 0x1004ed79f\nshr     eax, 10h                                                       ; +0x93, 0x1004ed7a3\nmov     [rbx+4], al                                                    ; +0x96, 0x1004ed7a6\nmovss   xmm3, dword ptr [rbx+18h]                                      ; +0x99, 0x1004ed7a9\nmovss   xmm1, dword ptr [rbx+28h]                                      ; +0x9e, 0x1004ed7ae\nmovss   xmm2, dword ptr [rbx+2Ch]                                      ; +0xa3, 0x1004ed7b3\nsubss   xmm2, xmm1                                                     ; +0xa8, 0x1004ed7b8\nmulss   xmm2, dword ptr [rbp-0Ch]                                      ; +0xac, 0x1004ed7bc\naddss   xmm2, xmm1                                                     ; +0xb1, 0x1004ed7c1\nmovss   dword ptr [rbx+8], xmm2                                        ; +0xb5, 0x1004ed7c5\nmovss   xmm2, dword ptr [rbp-10h]                                      ; +0xba, 0x1004ed7ca\nadd     rsp, 8                                                         ; +0xbf, 0x1004ed7cf\npop     rbx                                                            ; +0xc3, 0x1004ed7d3\npop     rbp                                                            ; +0xc4, 0x1004ed7d4\njmp     short loc_1004ED806                                            ; +0xc5, 0x1004ed7d5\nmovzx   eax, byte ptr [rdi+15h]                                        ; +0xc7, 0x1004ed7d7\nmov     [rdi+4], al                                                    ; +0xcb, 0x1004ed7db\nmovzx   eax, word ptr [rdi+13h]                                        ; +0xce, 0x1004ed7de\nmov     [rdi+2], ax                                                    ; +0xd2, 0x1004ed7e2\nmovss   xmm1, dword ptr [rdi+2Ch]                                      ; +0xd6, 0x1004ed7e6\njmp     short loc_1004ED801                                            ; +0xdb, 0x1004ed7eb\nmovzx   eax, byte ptr [rdi+12h]                                        ; +0xdd, 0x1004ed7ed\nmov     [rdi+4], al                                                    ; +0xe1, 0x1004ed7f1\nmovzx   eax, word ptr [rdi+10h]                                        ; +0xe4, 0x1004ed7f4\nmov     [rdi+2], ax                                                    ; +0xe8, 0x1004ed7f8\nmovss   xmm1, dword ptr [rdi+28h]                                      ; +0xec, 0x1004ed7fc\nmovss   dword ptr [rdi+8], xmm1                                        ; +0xf1, 0x1004ed801\nucomiss xmm2, xmm3                                                     ; +0xf6, 0x1004ed806\nsetnb   byte ptr [rdi]                                                 ; +0xf9, 0x1004ed809\nretn                                                                   ; +0xfc, 0x1004ed80c", "xrefs": [], "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"}