{"type": "func", "start": 5810244, "end": 5810370, "name": "ColorAction2::ColorAction2", "pseudocode": "// \n// ColorAction2::ColorAction2 from 0x58a844 to 0x58a8c2 (126 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\n// Alternative name is '_ZN12ColorAction2C1EN7cocos2d10_ccColor3BES1_fdbiff'\nColorAction2 *ColorAction2::ColorAction2(\n        ColorAction2 *a1,\n        cocos2d::ccColor3B a2,\n        cocos2d::ccColor3B a3,\n        float a4,\n        double a5,\n        bool a6,\n        int a7,\n        float a8,\n        float a9)\n{\n  int v10; // r6\n  float v11; // r1\n  float v12; // r2\n  int v13; // r3\n  int v14; // [sp+0h] [bp-Ch]\n\n  v14 = *(_DWORD *)&a3.r;\n  a1->m_currentOpacity = 1.0;\n  v10 = *(_DWORD *)&a2.r;\n  a1->m_stepFinished = 0;\n  a1->m_paused = 0;\n  a1->m_colorID = 0;\n  a1->m_deltaTime = 0.0;\n  v11 = *(float *)&dword_AC7E68;\n  v12 = *(float *)&dword_AC7E6C;\n  v13 = *(_DWORD *)&byte_AC7E70;\n  LODWORD(a1->m_copyHSV.h) = dword_AC7E64;\n  a1->m_copyHSV.s = v11;\n  a1->m_copyHSV.v = v12;\n  *(_DWORD *)&a1->m_copyHSV.absoluteSaturation = v13;\n  a1->m_fromColor.b = BYTE2(v10);\n  a1->m_copyID = 0;\n  a1->m_copyColorCalculated = 0;\n  a1->m_copyOpacity = 0;\n  a1->m_copyColorLoop = 0;\n  a1->m_uniqueID = 0;\n  a1->m_toColor.b = BYTE2(v14);\n  a1->m_legacyHSV = 0;\n  a1->m_colorSprite = nullptr;\n  a1->m_actionDelay = 0.0;\n  a1->m_stepInterval = 0.0;\n  *(_WORD *)&a1->m_fromColor.r = v10;\n  *(_WORD *)&a1->m_toColor.r = v14;\n  a1->m_duration = a4;\n  a1->m_blending = a6;\n  a1->m_playerColor = a7;\n  a1->m_fromOpacity = a8;\n  a1->m_toOpacity = a9;\n  return a1;\n}", "assembly": "; \n; ColorAction2::ColorAction2 from 0x58a844 to 0x58a8c2 (126 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\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x58a844\nMOV             LR, R3                                                 ; +0x2, 0x58a846\nSTR             R2, [SP,#0xC+var_C]                                    ; +0x4, 0x58a848\nMOV.W           R3, #0x3F800000                                        ; +0x6, 0x58a84a\nSTR             R3, [R0,#8]                                            ; +0xa, 0x58a84e\nMOV             R4, R0                                                 ; +0xc, 0x58a850\nLDR             R3, =(flt_AC7E5C - 0x58A85E)                           ; +0xe, 0x58a852\nMOVS            R5, #0                                                 ; +0x10, 0x58a854\nMOV             R6, R1                                                 ; +0x12, 0x58a856\nSTRB            R5, [R0]                                               ; +0x14, 0x58a858\nADD             R3, PC; flt_AC7E5C                                     ; +0x16, 0x58a85a\nSTRB            R5, [R0,#1]                                            ; +0x18, 0x58a85c\nADDS            R3, #(dword_AC7E64 - 0xAC7E5C)                         ; +0x1a, 0x58a85e\nSTR             R5, [R0,#0x24]                                         ; +0x1c, 0x58a860\nMOV.W           R12, #0                                                ; +0x1e, 0x58a862\nADD.W           R7, R0, #0x30 ; '0'                                    ; +0x22, 0x58a866\nSTR.W           R12, [R0,#0xC]                                         ; +0x26, 0x58a86a\nLDM             R3, {R0-R3}                                            ; +0x2a, 0x58a86e\nSTM.W           R7, {R0-R3}                                            ; +0x2c, 0x58a870\nLSRS            R3, R6, #0x10                                          ; +0x30, 0x58a874\nSTRB            R3, [R4,#0x12]                                         ; +0x32, 0x58a876\nADD             R3, SP, #0xC+var_4                                     ; +0x34, 0x58a878\nSTR             R5, [R4,#0x40]                                         ; +0x36, 0x58a87a\nMOV             R0, R4                                                 ; +0x38, 0x58a87c\nLDRH.W          R2, [R3,#-8]!                                          ; +0x3a, 0x58a87e\nSTRB.W          R5, [R4,#0x44]                                         ; +0x3e, 0x58a882\nSTRB.W          R5, [R4,#0x45]                                         ; +0x42, 0x58a886\nLDRB            R3, [R3,#2]                                            ; +0x46, 0x58a88a\nSTRB.W          R5, [R4,#0x46]                                         ; +0x48, 0x58a88c\nSTR             R5, [R4,#0x48]                                         ; +0x4c, 0x58a890\nSTRB            R3, [R4,#0x15]                                         ; +0x4e, 0x58a892\nLDRB.W          R3, [SP,#0xC+arg_8]                                    ; +0x50, 0x58a894\nSTRB.W          R5, [R4,#0x4C]                                         ; +0x54, 0x58a898\nSTR             R5, [R4,#0x50]                                         ; +0x58, 0x58a89c\nSTR.W           R12, [R4,#0x54]                                        ; +0x5a, 0x58a89e\nSTR.W           R12, [R4,#0x58]                                        ; +0x5e, 0x58a8a2\nSTRH            R6, [R4,#0x10]                                         ; +0x62, 0x58a8a6\nSTRH.W          R2, [R4,#0x13]                                         ; +0x64, 0x58a8a8\nSTR.W           LR, [R4,#0x18]                                         ; +0x68, 0x58a8ac\nSTRB            R3, [R4,#0x1C]                                         ; +0x6c, 0x58a8b0\nLDR             R3, [SP,#0xC+arg_C]                                    ; +0x6e, 0x58a8b2\nSTR             R3, [R4,#0x20]                                         ; +0x70, 0x58a8b4\nLDR             R3, [SP,#0xC+arg_10]                                   ; +0x72, 0x58a8b6\nSTR             R3, [R4,#0x28]                                         ; +0x74, 0x58a8b8\nLDR             R3, [SP,#0xC+arg_14]                                   ; +0x76, 0x58a8ba\nSTR             R3, [R4,#0x2C]                                         ; +0x78, 0x58a8bc\nADD             SP, SP, #0xC                                           ; +0x7a, 0x58a8be\nPOP             {R4-R7,PC}                                             ; +0x7c, 0x58a8c0", "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"}