{"type": "func", "start": 6039884, "end": 6040120, "name": "ColorAction::step", "pseudocode": "// \n// ColorAction::step from 0x5c294c to 0x5c2a38 (236 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::runColorEffect @ 0x461bec\n// > LevelEditorLayer::stopTriggersInGroup @ 0x4677d2\n// > GJBaseGameLayer::updateColor @ 0x58b508\n// > GJEffectManager::updateColorEffects @ 0x5c36e8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:53:50 +0000\n// \n\nint __fastcall ColorAction::step(int this, float a2)\n{\n  int v2; // r4\n  float v3; // s15\n  float v4; // s17\n  float v5; // s16\n  float v6; // s17\n  int v7; // r3\n  char v8; // r3\n  int v9; // r0\n  float v10; // s15\n\n  v2 = this;\n  if ( !*(_BYTE *)(this + 52) && !*(_BYTE *)(this + 53) )\n  {\n    v3 = a2 + *(float *)(this + 64);\n    v4 = *(float *)(this + 76);\n    v5 = v3 + *(float *)(this + 148);\n    *(float *)(this + 64) = v3;\n    if ( v5 < v4 )\n    {\n      if ( v5 > 0.0 )\n      {\n        v6 = v5 / v4;\n        if ( v6 >= 1.0 )\n          goto LABEL_6;\n        if ( v6 > 0.0 )\n        {\n          v9 = GameToolbox::multipliedColorValue(\n                 *(_DWORD *)(this + 68),\n                 *(unsigned __int8 *)(this + 71)\n               | (*(unsigned __int8 *)(this + 72) << 8)\n               | (*(unsigned __int8 *)(this + 73) << 16),\n                 v6);\n          v10 = *(float *)(v2 + 92) + (float)((float)(*(float *)(v2 + 96) - *(float *)(v2 + 92)) * v6);\n          *(_WORD *)(v2 + 54) = v9;\n          this = BYTE2(v9);\n          *(_BYTE *)(v2 + 56) = this;\n          *(float *)(v2 + 60) = v10;\n          goto LABEL_11;\n        }\n      }\n      v8 = *(_BYTE *)(this + 70);\n      *(_WORD *)(this + 54) = *(_WORD *)(this + 68);\n      *(_BYTE *)(this + 56) = v8;\n      v7 = *(_DWORD *)(this + 92);\n      goto LABEL_9;\n    }\nLABEL_6:\n    *(_WORD *)(this + 54) = *(_WORD *)(this + 71);\n    *(_BYTE *)(this + 56) = *(_BYTE *)(this + 73);\n    v7 = *(_DWORD *)(this + 96);\nLABEL_9:\n    *(_DWORD *)(this + 60) = v7;\nLABEL_11:\n    *(_BYTE *)(v2 + 52) = v5 >= *(float *)(v2 + 76);\n  }\n  return this;\n}", "assembly": "; \n; ColorAction::step from 0x5c294c to 0x5c2a38 (236 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::runColorEffect @ 0x461bec\n; > LevelEditorLayer::stopTriggersInGroup @ 0x4677d2\n; > GJBaseGameLayer::updateColor @ 0x58b508\n; > GJEffectManager::updateColorEffects @ 0x5c36e8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:53:50 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x5c294c\nVMOV            S15, R1                                                ; +0x2, 0x5c294e\nVPUSH           {D8}                                                   ; +0x6, 0x5c2952\nMOV             R4, R0                                                 ; +0xa, 0x5c2956\nLDRB.W          R3, [R0,#0x34]                                         ; +0xc, 0x5c2958\nCMP             R3, #0                                                 ; +0x10, 0x5c295c\nBNE             loc_5C2A32                                             ; +0x12, 0x5c295e\nLDRB.W          R3, [R0,#0x35]                                         ; +0x14, 0x5c2960\nCMP             R3, #0                                                 ; +0x18, 0x5c2964\nBNE             loc_5C2A32                                             ; +0x1a, 0x5c2966\nVLDR            S14, [R0,#0x40]                                        ; +0x1c, 0x5c2968\nVLDR            S16, [R0,#0x94]                                        ; +0x20, 0x5c296c\nVADD.F32        S15, S15, S14                                          ; +0x24, 0x5c2970\nVLDR            S17, [R0,#0x4C]                                        ; +0x28, 0x5c2974\nVADD.F32        S16, S15, S16                                          ; +0x2c, 0x5c2978\nVSTR            S15, [R0,#0x40]                                        ; +0x30, 0x5c297c\nVCMPE.F32       S16, S17                                               ; +0x34, 0x5c2980\nVMRS            APSR_nzcv, FPSCR                                       ; +0x38, 0x5c2984\nBGE             loc_5C29A6                                             ; +0x3c, 0x5c2988\nVCMPE.F32       S16, #0.0                                              ; +0x3e, 0x5c298a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x42, 0x5c298e\nBLE             loc_5C29C2                                             ; +0x46, 0x5c2992\nVDIV.F32        S17, S16, S17                                          ; +0x48, 0x5c2994\nVMOV.F32        S15, #1.0                                              ; +0x4c, 0x5c2998\nVCMPE.F32       S17, S15                                               ; +0x50, 0x5c299c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x54, 0x5c29a0\nBLT             loc_5C29B8                                             ; +0x58, 0x5c29a4\nMOV             R3, R4                                                 ; +0x5a, 0x5c29a6\nLDRH.W          R2, [R3,#0x47]!                                        ; +0x5c, 0x5c29a8\nSTRH            R2, [R4,#0x36]                                         ; +0x60, 0x5c29ac\nLDRB            R3, [R3,#2]                                            ; +0x62, 0x5c29ae\nSTRB.W          R3, [R4,#0x38]                                         ; +0x64, 0x5c29b0\nLDR             R3, [R4,#0x60]                                         ; +0x68, 0x5c29b4\nB               loc_5C29D2                                             ; +0x6a, 0x5c29b6\nVCMPE.F32       S17, #0.0                                              ; +0x6c, 0x5c29b8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x70, 0x5c29bc\nBHI             loc_5C29D6                                             ; +0x74, 0x5c29c0\nMOV             R3, R4                                                 ; +0x76, 0x5c29c2\nLDRH.W          R2, [R3,#0x44]!                                        ; +0x78, 0x5c29c4\nLDRB            R3, [R3,#2]                                            ; +0x7c, 0x5c29c8\nSTRH            R2, [R4,#0x36]                                         ; +0x7e, 0x5c29ca\nSTRB.W          R3, [R4,#0x38]                                         ; +0x80, 0x5c29cc\nLDR             R3, [R4,#0x5C]                                         ; +0x84, 0x5c29d0\nSTR             R3, [R4,#0x3C]                                         ; +0x86, 0x5c29d2\nB               loc_5C2A1C                                             ; +0x88, 0x5c29d4\nLDRB.W          R1, [R0,#0x48]                                         ; +0x8a, 0x5c29d6\nLDRB.W          R3, [R0,#0x47]                                         ; +0x8e, 0x5c29da\nVMOV            R2, S17                                                ; +0x92, 0x5c29de\nORR.W           R3, R3, R1,LSL#8                                       ; +0x96, 0x5c29e2\nLDRB.W          R1, [R0,#0x49]                                         ; +0x9a, 0x5c29e6\nLDR             R0, [R0,#0x44]                                         ; +0x9e, 0x5c29ea\nORR.W           R1, R3, R1,LSL#16                                      ; +0xa0, 0x5c29ec\nBL              _ZN11GameToolbox20multipliedColorValueEN7cocos2d10_ccColor3BES1_f; GameToolbox::multipliedColorValue(cocos2d::_ccColor3B,cocos2d::_ccColor3B,float) ; +0xa4, 0x5c29f0\nVLDR            S15, [R4,#0x5C]                                        ; +0xa8, 0x5c29f4\nVLDR            S14, [R4,#0x60]                                        ; +0xac, 0x5c29f8\nVSUB.F32        S14, S14, S15                                          ; +0xb0, 0x5c29fc\nVMLA.F32        S15, S14, S17                                          ; +0xb4, 0x5c2a00\nUBFX.W          R3, R0, #8, #8                                         ; +0xb8, 0x5c2a04\nSTRB.W          R0, [R4,#0x36]                                         ; +0xbc, 0x5c2a08\nSTRB.W          R3, [R4,#0x37]                                         ; +0xc0, 0x5c2a0c\nUBFX.W          R0, R0, #0x10, #8                                      ; +0xc4, 0x5c2a10\nSTRB.W          R0, [R4,#0x38]                                         ; +0xc8, 0x5c2a14\nVSTR            S15, [R4,#0x3C]                                        ; +0xcc, 0x5c2a18\nVLDR            S15, [R4,#0x4C]                                        ; +0xd0, 0x5c2a1c\nVCMPE.F32       S16, S15                                               ; +0xd4, 0x5c2a20\nVMRS            APSR_nzcv, FPSCR                                       ; +0xd8, 0x5c2a24\nITE GE                                                                 ; +0xdc, 0x5c2a28\nMOVGE           R3, #1                                                 ; +0xde, 0x5c2a2a\nMOVLT           R3, #0                                                 ; +0xe0, 0x5c2a2c\nSTRB.W          R3, [R4,#0x34]                                         ; +0xe2, 0x5c2a2e\nVPOP            {D8}                                                   ; +0xe6, 0x5c2a32\nPOP             {R4,PC}                                                ; +0xea, 0x5c2a36", "xrefs": ["LevelEditorLayer::runColorEffect @ 0x461bec", "LevelEditorLayer::stopTriggersInGroup @ 0x4677d2", "GJBaseGameLayer::updateColor @ 0x58b508", "GJEffectManager::updateColorEffects @ 0x5c36e8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}