{"type": "func", "start": 4295021876, "end": 4295022120, "name": "ColorAction::step", "pseudocode": "// \n// ColorAction::step from 0x10000d534 to 0x10000d628 (244 bytes)\n// \n// 4 xrefs:\n// > GJEffectManager::updateColorEffects @ 0x10000fc78\n// > GJBaseGameLayer::updateColor @ 0x1001f1fb0\n// > LevelEditorLayer::runColorEffect @ 0x100361540\n// > LevelEditorLayer::stopTriggersInGroup @ 0x100361740\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 ColorAction::step(ColorAction *a1, float a2)\n{\n  float v3; // s0\n  float v4; // s9\n  float m_duration; // s0\n  float v6; // s8\n  float m_fromOpacity; // s1\n\n  if ( !a1->m_stepFinished && !a1->m_paused )\n  {\n    v3 = a1->m_deltaTime + a2;\n    a1->m_deltaTime = v3;\n    v4 = v3 + a1->m_stepInterval;\n    m_duration = a1->m_duration;\n    if ( v4 < m_duration )\n    {\n      if ( v4 <= 0.0 )\n      {\nLABEL_9:\n        a1->m_color = a1->m_fromColor;\n        m_fromOpacity = a1->m_fromOpacity;\n        goto LABEL_10;\n      }\n      v6 = v4 / m_duration;\n      if ( (float)(v4 / m_duration) < 1.0 )\n      {\n        if ( v6 > 0.0 )\n        {\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                          v4 / m_duration);\n          a1->m_currentOpacity = a1->m_fromOpacity + (float)((float)(a1->m_toOpacity - a1->m_fromOpacity) * v6);\n          m_duration = a1->m_duration;\nLABEL_11:\n          a1->m_stepFinished = v4 >= 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; ColorAction::step from 0x10000d534 to 0x10000d628 (244 bytes)\n; \n; 4 xrefs:\n; > GJEffectManager::updateColorEffects @ 0x10000fc78\n; > GJBaseGameLayer::updateColor @ 0x1001f1fb0\n; > LevelEditorLayer::runColorEffect @ 0x100361540\n; > LevelEditorLayer::stopTriggersInGroup @ 0x100361740\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\nLDRB            W8, [X0,#0x38]                                         ; +0x0, 0x10000d534\nTBNZ            W8, #0, locret_10000D624                               ; +0x4, 0x10000d538\nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x8, 0x10000d53c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0x10000d540\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x10000d544\nADD             X29, SP, #0x20                                         ; +0x14, 0x10000d548\nMOV             X19, X0                                                ; +0x18, 0x10000d54c\nLDRB            W8, [X0,#0x39]                                         ; +0x1c, 0x10000d550\nTBNZ            W8, #0, loc_10000D618                                  ; +0x20, 0x10000d554\nLDR             S1, [X19,#0x44]                                        ; +0x24, 0x10000d558\nFADD            S0, S1, S0                                             ; +0x28, 0x10000d55c\nSTR             S0, [X19,#0x44]                                        ; +0x2c, 0x10000d560\nLDR             S1, [X19,#0xA4]                                        ; +0x30, 0x10000d564\nFADD            S9, S0, S1                                             ; +0x34, 0x10000d568\nLDR             S0, [X19,#0x50]                                        ; +0x38, 0x10000d56c\nFCMP            S9, S0                                                 ; +0x3c, 0x10000d570\nB.GE            loc_10000D5DC                                          ; +0x40, 0x10000d574\nFCMP            S9, #0.0                                               ; +0x44, 0x10000d578\nB.LE            loc_10000D5F4                                          ; +0x48, 0x10000d57c\nFDIV            S8, S9, S0                                             ; +0x4c, 0x10000d580\nFMOV            S1, #1.0                                               ; +0x50, 0x10000d584\nFCMP            S8, S1                                                 ; +0x54, 0x10000d588\nB.GE            loc_10000D5DC                                          ; +0x58, 0x10000d58c\nFCMP            S8, #0.0                                               ; +0x5c, 0x10000d590\nB.LS            loc_10000D5F4                                          ; +0x60, 0x10000d594\nLDRB            W8, [X19,#0x4A]                                        ; +0x64, 0x10000d598\nLDRH            W9, [X19,#0x48]                                        ; +0x68, 0x10000d59c\nORR             X0, X9, X8,LSL#16                                      ; +0x6c, 0x10000d5a0\nLDRB            W8, [X19,#0x4D]                                        ; +0x70, 0x10000d5a4\nLDURH           W9, [X19,#0x4B]                                        ; +0x74, 0x10000d5a8\nORR             X1, X9, X8,LSL#16                                      ; +0x78, 0x10000d5ac\nFMOV            S0, S8                                                 ; +0x7c, 0x10000d5b0\nBL              GameToolbox__multipliedColorValue                      ; +0x80, 0x10000d5b4\nSTRH            W0, [X19,#0x3A]                                        ; +0x84, 0x10000d5b8\nLSR             W8, W0, #0x10                                          ; +0x88, 0x10000d5bc\nSTRB            W8, [X19,#0x3C]                                        ; +0x8c, 0x10000d5c0\nLDP             S0, S1, [X19,#0x60]                                    ; +0x90, 0x10000d5c4\nFSUB            S1, S1, S0                                             ; +0x94, 0x10000d5c8\nFMADD           S0, S1, S8, S0                                         ; +0x98, 0x10000d5cc\nSTR             S0, [X19,#0x40]                                        ; +0x9c, 0x10000d5d0\nLDR             S0, [X19,#0x50]                                        ; +0xa0, 0x10000d5d4\nB               loc_10000D60C                                          ; +0xa4, 0x10000d5d8\nLDURH           W8, [X19,#0x4B]                                        ; +0xa8, 0x10000d5dc\nSTRH            W8, [X19,#0x3A]                                        ; +0xac, 0x10000d5e0\nLDRB            W8, [X19,#0x4D]                                        ; +0xb0, 0x10000d5e4\nSTRB            W8, [X19,#0x3C]                                        ; +0xb4, 0x10000d5e8\nLDR             S1, [X19,#0x64]                                        ; +0xb8, 0x10000d5ec\nB               loc_10000D608                                          ; +0xbc, 0x10000d5f0\nLDRH            W8, [X19,#0x48]                                        ; +0xc0, 0x10000d5f4\nSTRH            W8, [X19,#0x3A]                                        ; +0xc4, 0x10000d5f8\nLDRB            W8, [X19,#0x4A]                                        ; +0xc8, 0x10000d5fc\nSTRB            W8, [X19,#0x3C]                                        ; +0xcc, 0x10000d600\nLDR             S1, [X19,#0x60]                                        ; +0xd0, 0x10000d604\nSTR             S1, [X19,#0x40]                                        ; +0xd4, 0x10000d608\nFCMP            S9, S0                                                 ; +0xd8, 0x10000d60c\nCSET            W8, GE                                                 ; +0xdc, 0x10000d610\nSTRB            W8, [X19,#0x38]                                        ; +0xe0, 0x10000d614\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xe4, 0x10000d618\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xe8, 0x10000d61c\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0xec, 0x10000d620\nRET                                                                    ; +0xf0, 0x10000d624", "xrefs": ["GJEffectManager::updateColorEffects @ 0x10000fc78", "GJBaseGameLayer::updateColor @ 0x1001f1fb0", "LevelEditorLayer::runColorEffect @ 0x100361540", "LevelEditorLayer::stopTriggersInGroup @ 0x100361740"], "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"}