{"type": "func", "start": 10457408, "end": 10457660, "name": "ColorAction::step", "pseudocode": "// \n// ColorAction::step from 0x9f9140 to 0x9f923c (252 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::runColorEffect @ 0x78c730\n// > LevelEditorLayer::stopTriggersInGroup @ 0x795690\n// > GJBaseGameLayer::updateColor @ 0x998784\n// > GJEffectManager::updateColorEffects @ 0x9fa2f0\n// > <???> @ 0x5c7e8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:59:15 +0000\n// \n\n__int64 __fastcall ColorAction::step(__int64 this, float a2)\n{\n  __int64 v2; // x19\n  float v3; // s0\n  float v4; // s1\n  float v5; // s8\n  float v6; // s9\n  unsigned __int64 v7; // x0\n  int v8; // w0\n  char v9; // w1\n  int v10; // w0\n  char v11; // w1\n\n  if ( !*(_BYTE *)(this + 56) && !*(_BYTE *)(this + 57) )\n  {\n    v2 = this;\n    v3 = a2 + *(float *)(this + 68);\n    v4 = *(float *)(this + 80);\n    v5 = v3 + *(float *)(this + 164);\n    *(float *)(this + 68) = v3;\n    if ( v5 < v4 )\n    {\n      if ( v5 <= 0.0 )\n        goto LABEL_11;\n      v6 = v5 / v4;\n      if ( (float)(v5 / v4) < 1.0 )\n      {\n        if ( v6 > 0.0 )\n        {\n          v7 = GameToolbox::multipliedColorValue(*(_QWORD *)(this + 72), *(_QWORD *)(this + 75), v5 / v4);\n          *(_WORD *)(v2 + 58) = v7;\n          *(_BYTE *)(v2 + 60) = BYTE2(v7);\n          v4 = *(float *)(v2 + 80);\n          *(float *)(v2 + 64) = *(float *)(v2 + 96) + (float)(v6 * (float)(*(float *)(v2 + 100) - *(float *)(v2 + 96)));\nLABEL_9:\n          this = v5 >= v4;\n          *(_BYTE *)(v2 + 56) = this;\n          return this;\n        }\nLABEL_11:\n        v10 = *(_DWORD *)(this + 96);\n        v11 = *(_BYTE *)(v2 + 74);\n        *(_WORD *)(v2 + 58) = *(_WORD *)(v2 + 72);\n        *(_BYTE *)(v2 + 60) = v11;\n        *(_DWORD *)(v2 + 64) = v10;\n        goto LABEL_9;\n      }\n    }\n    v8 = *(_DWORD *)(this + 100);\n    v9 = *(_BYTE *)(v2 + 77);\n    *(_WORD *)(v2 + 58) = *(_WORD *)(v2 + 75);\n    *(_BYTE *)(v2 + 60) = v9;\n    *(_DWORD *)(v2 + 64) = v8;\n    goto LABEL_9;\n  }\n  return this;\n}", "assembly": "; \n; ColorAction::step from 0x9f9140 to 0x9f923c (252 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::runColorEffect @ 0x78c730\n; > LevelEditorLayer::stopTriggersInGroup @ 0x795690\n; > GJBaseGameLayer::updateColor @ 0x998784\n; > GJEffectManager::updateColorEffects @ 0x9fa2f0\n; > <???> @ 0x5c7e8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:59:15 +0000\n; \nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x9f9140\nMOV             X29, SP                                                ; +0x4, 0x9f9144\nSTP             D8, D9, [SP,#var_s20]                                  ; +0x8, 0x9f9148\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x9f914c\nLDRB            W1, [X0,#0x38]                                         ; +0x10, 0x9f9150\nCBNZ            W1, loc_9F9210                                         ; +0x14, 0x9f9154\nLDRB            W1, [X0,#0x39]                                         ; +0x18, 0x9f9158\nCBNZ            W1, loc_9F9210                                         ; +0x1c, 0x9f915c\nLDR             S1, [X0,#0x44]                                         ; +0x20, 0x9f9160\nMOV             X19, X0                                                ; +0x24, 0x9f9164\nLDR             S8, [X0,#0xA4]                                         ; +0x28, 0x9f9168\nFADD            S0, S0, S1                                             ; +0x2c, 0x9f916c\nLDR             S1, [X0,#0x50]                                         ; +0x30, 0x9f9170\nFADD            S8, S0, S8                                             ; +0x34, 0x9f9174\nSTR             S0, [X0,#0x44]                                         ; +0x38, 0x9f9178\nFCMPE           S8, S1                                                 ; +0x3c, 0x9f917c\nB.GE            loc_9F91EC                                             ; +0x40, 0x9f9180\nFCMPE           S8, #0.0                                               ; +0x44, 0x9f9184\nB.LE            loc_9F9220                                             ; +0x48, 0x9f9188\nFDIV            S9, S8, S1                                             ; +0x4c, 0x9f918c\nFMOV            S0, #1.0                                               ; +0x50, 0x9f9190\nFCMPE           S9, S0                                                 ; +0x54, 0x9f9194\nB.GE            loc_9F91EC                                             ; +0x58, 0x9f9198\nFCMPE           S9, #0.0                                               ; +0x5c, 0x9f919c\nB.LS            loc_9F9220                                             ; +0x60, 0x9f91a0\nFMOV            S0, S9                                                 ; +0x64, 0x9f91a4\nLDR             X0, [X0,#0x48]                                         ; +0x68, 0x9f91a8\nLDUR            X1, [X19,#0x4B]                                        ; +0x6c, 0x9f91ac\nADD             X20, X19, #0x3A ; ':'                                  ; +0x70, 0x9f91b0\nBL              _ZN11GameToolbox20multipliedColorValueEN7cocos2d10_ccColor3BES1_f; GameToolbox::multipliedColorValue(cocos2d::_ccColor3B,cocos2d::_ccColor3B,float) ; +0x74, 0x9f91b4\nSXTW            X0, W0                                                 ; +0x78, 0x9f91b8\nSTRB            W0, [X19,#0x3A]                                        ; +0x7c, 0x9f91bc\nUBFX            X2, X0, #8, #8                                         ; +0x80, 0x9f91c0\nUBFX            X0, X0, #0x10, #8                                      ; +0x84, 0x9f91c4\nSTRB            W2, [X20,#1]                                           ; +0x88, 0x9f91c8\nSTRB            W0, [X20,#2]                                           ; +0x8c, 0x9f91cc\nLDR             S2, [X19,#0x60]                                        ; +0x90, 0x9f91d0\nLDR             S0, [X19,#0x64]                                        ; +0x94, 0x9f91d4\nLDR             S1, [X19,#0x50]                                        ; +0x98, 0x9f91d8\nFSUB            S0, S0, S2                                             ; +0x9c, 0x9f91dc\nFMADD           S9, S9, S0, S2                                         ; +0xa0, 0x9f91e0\nSTR             S9, [X19,#0x40]                                        ; +0xa4, 0x9f91e4\nB               loc_9F9204                                             ; +0xa8, 0x9f91e8\nLDR             W0, [X19,#0x64]                                        ; +0xac, 0x9f91ec\nLDURH           W2, [X19,#0x4B]                                        ; +0xb0, 0x9f91f0\nLDRB            W1, [X19,#0x4D]                                        ; +0xb4, 0x9f91f4\nSTRH            W2, [X19,#0x3A]                                        ; +0xb8, 0x9f91f8\nSTRB            W1, [X19,#0x3C]                                        ; +0xbc, 0x9f91fc\nSTR             W0, [X19,#0x40]                                        ; +0xc0, 0x9f9200\nFCMPE           S8, S1                                                 ; +0xc4, 0x9f9204\nCSET            W0, GE                                                 ; +0xc8, 0x9f9208\nSTRB            W0, [X19,#0x38]                                        ; +0xcc, 0x9f920c\nLDP             X19, X20, [SP,#var_s10]                                ; +0xd0, 0x9f9210\nLDP             D8, D9, [SP,#var_s20]                                  ; +0xd4, 0x9f9214\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0xd8, 0x9f9218\nRET                                                                    ; +0xdc, 0x9f921c\nLDR             W0, [X19,#0x60]                                        ; +0xe0, 0x9f9220\nLDRH            W2, [X19,#0x48]                                        ; +0xe4, 0x9f9224\nLDRB            W1, [X19,#0x4A]                                        ; +0xe8, 0x9f9228\nSTRH            W2, [X19,#0x3A]                                        ; +0xec, 0x9f922c\nSTRB            W1, [X19,#0x3C]                                        ; +0xf0, 0x9f9230\nSTR             W0, [X19,#0x40]                                        ; +0xf4, 0x9f9234\nB               loc_9F9204                                             ; +0xf8, 0x9f9238", "xrefs": ["LevelEditorLayer::runColorEffect @ 0x78c730", "LevelEditorLayer::stopTriggersInGroup @ 0x795690", "GJBaseGameLayer::updateColor @ 0x998784", "GJEffectManager::updateColorEffects @ 0x9fa2f0", "<???> @ 0x5c7e8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}