{"type": "func", "start": 4822556, "end": 4822618, "name": "ColorAction::init", "pseudocode": "// \n// ColorAction::init from 0x49961c to 0x49965a (62 bytes)\n// \n// 1 xrefs:\n// > ColorAction::create @ 0x4996fc\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\nbool ColorAction::init(\n        ColorAction *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  a1->m_duration = a4;\n  a1->m_fromColor = a2;\n  a1->m_blending = a6;\n  a1->m_playerColor = a7;\n  a1->m_colorID = 0;\n  *(_WORD *)&a1->m_toColor.r = *(_WORD *)&a3.r;\n  a1->m_fromOpacity = a8;\n  a1->m_toColor.b = a3.b;\n  a1->m_toOpacity = a9;\n  return 1;\n}", "assembly": "; \n; ColorAction::init from 0x49961c to 0x49965a (62 bytes)\n; \n; 1 xrefs:\n; > ColorAction::create @ 0x4996fc\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\nSUB             SP, SP, #8                                             ; +0x0, 0x49961c\nSTR             R2, [SP,#8+var_8]                                      ; +0x2, 0x49961e\nADD             R2, SP, #8+arg_0                                       ; +0x4, 0x499620\nSTR             R3, [R0,#0x4C]                                         ; +0x6, 0x499622\nLDRB.W          R3, [SP,#8+arg_8]                                      ; +0x8, 0x499624\nSTRH.W          R1, [R0,#0x44]                                         ; +0xc, 0x499628\nLSRS            R1, R1, #0x10                                          ; +0x10, 0x49962c\nSTRB.W          R1, [R0,#0x46]                                         ; +0x12, 0x49962e\nSTRB.W          R3, [R0,#0x50]                                         ; +0x16, 0x499632\nLDR             R3, [SP,#8+arg_C]                                      ; +0x1a, 0x499636\nLDRH.W          R1, [R2,#-8]!                                          ; +0x1c, 0x499638\nSTR             R3, [R0,#0x54]                                         ; +0x20, 0x49963c\nMOVS            R3, #0                                                 ; +0x22, 0x49963e\nSTR             R3, [R0,#0x58]                                         ; +0x24, 0x499640\nLDR             R3, [SP,#8+arg_10]                                     ; +0x26, 0x499642\nLDRB            R2, [R2,#2]                                            ; +0x28, 0x499644\nSTRH.W          R1, [R0,#0x47]                                         ; +0x2a, 0x499646\nSTR             R3, [R0,#0x5C]                                         ; +0x2e, 0x49964a\nLDR             R3, [SP,#8+arg_14]                                     ; +0x30, 0x49964c\nSTRB.W          R2, [R0,#0x49]                                         ; +0x32, 0x49964e\nSTR             R3, [R0,#0x60]                                         ; +0x36, 0x499652\nMOVS            R0, #1                                                 ; +0x38, 0x499654\nADD             SP, SP, #8                                             ; +0x3a, 0x499656\nBX              LR                                                     ; +0x3c, 0x499658", "xrefs": ["ColorAction::create @ 0x4996fc"], "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"}