{"type": "func", "start": 7144688, "end": 7144902, "name": "ColorAction2::step", "pseudocode": "// \n// ColorAction2::step from 0x6d04f0 to 0x6d05c6 (214 bytes)\n// \n// 0 xrefs:\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:57:02 +0000\n// \n\nint __fastcall ColorAction2::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 && !*(_BYTE *)(this + 1) )\n  {\n    v3 = a2 + *(float *)(this + 12);\n    v4 = *(float *)(this + 24);\n    v5 = v3 + *(float *)(this + 88);\n    *(float *)(this + 12) = 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 + 16),\n                 *(unsigned __int8 *)(this + 19)\n               | (*(unsigned __int8 *)(this + 20) << 8)\n               | (*(unsigned __int8 *)(this + 21) << 16),\n                 v6);\n          v10 = *(float *)(v2 + 40) + (float)((float)(*(float *)(v2 + 44) - *(float *)(v2 + 40)) * v6);\n          *(_WORD *)(v2 + 2) = v9;\n          this = BYTE2(v9);\n          *(_BYTE *)(v2 + 4) = this;\n          *(float *)(v2 + 8) = v10;\n          goto LABEL_11;\n        }\n      }\n      v8 = *(_BYTE *)(this + 18);\n      *(_WORD *)(this + 2) = *(_WORD *)(this + 16);\n      *(_BYTE *)(this + 4) = v8;\n      v7 = *(_DWORD *)(this + 40);\n      goto LABEL_9;\n    }\nLABEL_6:\n    *(_WORD *)(this + 2) = *(_WORD *)(this + 19);\n    *(_BYTE *)(this + 4) = *(_BYTE *)(this + 21);\n    v7 = *(_DWORD *)(this + 44);\nLABEL_9:\n    *(_DWORD *)(this + 8) = v7;\nLABEL_11:\n    *(_BYTE *)v2 = v5 >= *(float *)(v2 + 24);\n  }\n  return this;\n}", "assembly": "; \n; ColorAction2::step from 0x6d04f0 to 0x6d05c6 (214 bytes)\n; \n; 0 xrefs:\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:57:02 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x6d04f0\nVMOV            S15, R1                                                ; +0x2, 0x6d04f2\nVPUSH           {D8}                                                   ; +0x6, 0x6d04f6\nMOV             R4, R0                                                 ; +0xa, 0x6d04fa\nLDRB            R3, [R0]                                               ; +0xc, 0x6d04fc\nCMP             R3, #0                                                 ; +0xe, 0x6d04fe\nBNE             loc_6D05C0                                             ; +0x10, 0x6d0500\nLDRB            R3, [R0,#1]                                            ; +0x12, 0x6d0502\nCMP             R3, #0                                                 ; +0x14, 0x6d0504\nBNE             loc_6D05C0                                             ; +0x16, 0x6d0506\nVLDR            S14, [R0,#0xC]                                         ; +0x18, 0x6d0508\nVLDR            S16, [R0,#0x58]                                        ; +0x1c, 0x6d050c\nVADD.F32        S15, S15, S14                                          ; +0x20, 0x6d0510\nVLDR            S17, [R0,#0x18]                                        ; +0x24, 0x6d0514\nVADD.F32        S16, S15, S16                                          ; +0x28, 0x6d0518\nVSTR            S15, [R0,#0xC]                                         ; +0x2c, 0x6d051c\nVCMPE.F32       S16, S17                                               ; +0x30, 0x6d0520\nVMRS            APSR_nzcv, FPSCR                                       ; +0x34, 0x6d0524\nBGE             loc_6D0546                                             ; +0x38, 0x6d0528\nVCMPE.F32       S16, #0.0                                              ; +0x3a, 0x6d052a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3e, 0x6d052e\nBLE             loc_6D0560                                             ; +0x42, 0x6d0532\nVDIV.F32        S17, S16, S17                                          ; +0x44, 0x6d0534\nVMOV.F32        S15, #1.0                                              ; +0x48, 0x6d0538\nVCMPE.F32       S17, S15                                               ; +0x4c, 0x6d053c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x50, 0x6d0540\nBLT             loc_6D0556                                             ; +0x54, 0x6d0544\nMOV             R3, R4                                                 ; +0x56, 0x6d0546\nLDRH.W          R2, [R3,#0x13]!                                        ; +0x58, 0x6d0548\nSTRH            R2, [R4,#2]                                            ; +0x5c, 0x6d054c\nLDRB            R3, [R3,#2]                                            ; +0x5e, 0x6d054e\nSTRB            R3, [R4,#4]                                            ; +0x60, 0x6d0550\nLDR             R3, [R4,#0x2C]                                         ; +0x62, 0x6d0552\nB               loc_6D056E                                             ; +0x64, 0x6d0554\nVCMPE.F32       S17, #0.0                                              ; +0x66, 0x6d0556\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6a, 0x6d055a\nBHI             loc_6D0572                                             ; +0x6e, 0x6d055e\nMOV             R3, R4                                                 ; +0x70, 0x6d0560\nLDRH.W          R2, [R3,#0x10]!                                        ; +0x72, 0x6d0562\nLDRB            R3, [R3,#2]                                            ; +0x76, 0x6d0566\nSTRH            R2, [R4,#2]                                            ; +0x78, 0x6d0568\nSTRB            R3, [R4,#4]                                            ; +0x7a, 0x6d056a\nLDR             R3, [R4,#0x28]                                         ; +0x7c, 0x6d056c\nSTR             R3, [R4,#8]                                            ; +0x7e, 0x6d056e\nB               loc_6D05AC                                             ; +0x80, 0x6d0570\nLDRB            R1, [R0,#0x14]                                         ; +0x82, 0x6d0572\nLDRB            R3, [R0,#0x13]                                         ; +0x84, 0x6d0574\nVMOV            R2, S17                                                ; +0x86, 0x6d0576\nORR.W           R3, R3, R1,LSL#8                                       ; +0x8a, 0x6d057a\nLDRB            R1, [R0,#0x15]                                         ; +0x8e, 0x6d057e\nLDR             R0, [R0,#0x10]                                         ; +0x90, 0x6d0580\nORR.W           R1, R3, R1,LSL#16                                      ; +0x92, 0x6d0582\nBL              _ZN11GameToolbox20multipliedColorValueEN7cocos2d10_ccColor3BES1_f; GameToolbox::multipliedColorValue(cocos2d::_ccColor3B,cocos2d::_ccColor3B,float) ; +0x96, 0x6d0586\nVLDR            S15, [R4,#0x28]                                        ; +0x9a, 0x6d058a\nVLDR            S14, [R4,#0x2C]                                        ; +0x9e, 0x6d058e\nVSUB.F32        S14, S14, S15                                          ; +0xa2, 0x6d0592\nVMLA.F32        S15, S14, S17                                          ; +0xa6, 0x6d0596\nUBFX.W          R3, R0, #8, #8                                         ; +0xaa, 0x6d059a\nSTRB            R0, [R4,#2]                                            ; +0xae, 0x6d059e\nSTRB            R3, [R4,#3]                                            ; +0xb0, 0x6d05a0\nUBFX.W          R0, R0, #0x10, #8                                      ; +0xb2, 0x6d05a2\nSTRB            R0, [R4,#4]                                            ; +0xb6, 0x6d05a6\nVSTR            S15, [R4,#8]                                           ; +0xb8, 0x6d05a8\nVLDR            S15, [R4,#0x18]                                        ; +0xbc, 0x6d05ac\nVCMPE.F32       S16, S15                                               ; +0xc0, 0x6d05b0\nVMRS            APSR_nzcv, FPSCR                                       ; +0xc4, 0x6d05b4\nITE GE                                                                 ; +0xc8, 0x6d05b8\nMOVGE           R3, #1                                                 ; +0xca, 0x6d05ba\nMOVLT           R3, #0                                                 ; +0xcc, 0x6d05bc\nSTRB            R3, [R4]                                               ; +0xce, 0x6d05be\nVPOP            {D8}                                                   ; +0xd0, 0x6d05c0\nPOP             {R4,PC}                                                ; +0xd4, 0x6d05c4", "xrefs": [], "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"}