{"type": "func", "start": 9059732, "end": 9059820, "name": "ColorAction::updateCustomColor", "pseudocode": "// \n// ColorAction::updateCustomColor from 0x8a3d94 to 0x8a3dec (88 bytes)\n// \n// 2 xrefs:\n// > GJEffectManager::updateColors @ 0x8a4064\n// > <???> @ 0xa2ca8\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// local variable allocation has failed, the output may be wrong!\nvoid ColorAction::updateCustomColor(ColorAction *a1, cocos2d::ccColor3B a2, cocos2d::ccColor3B a3)\n{\n  int m_playerColor; // w1\n  int v4; // [xsp+8h] [xbp-8h]\n\n  v4 = *(_DWORD *)&a2.r;\n  m_playerColor = a1->m_playerColor;\n  if ( m_playerColor == 1 )\n  {\n    a1->m_fromColor = (cocos2d::ccColor3B)v4;\n  }\n  else if ( m_playerColor == 2 )\n  {\n    a1->m_fromColor = a3;\n  }\n}", "assembly": "; \n; ColorAction::updateCustomColor from 0x8a3d94 to 0x8a3dec (88 bytes)\n; \n; 2 xrefs:\n; > GJEffectManager::updateColors @ 0x8a4064\n; > <???> @ 0xa2ca8\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, #0x10                                          ; +0x0, 0x8a3d94\nSTR             X1, [SP,#0x10+var_8]                                   ; +0x4, 0x8a3d98\nLDR             W1, [X0,#0x58]                                         ; +0x8, 0x8a3d9c\nSTR             X2, [SP,#0x10+var_10]                                  ; +0xc, 0x8a3da0\nCMP             W1, #1                                                 ; +0x10, 0x8a3da4\nB.EQ            loc_8A3DD4                                             ; +0x14, 0x8a3da8\nCMP             W1, #2                                                 ; +0x18, 0x8a3dac\nB.EQ            loc_8A3DBC                                             ; +0x1c, 0x8a3db0\nADD             SP, SP, #0x10                                          ; +0x20, 0x8a3db4\nRET                                                                    ; +0x24, 0x8a3db8\nLDRH            W3, [SP,#0x10+var_10]                                  ; +0x28, 0x8a3dbc\nLDRB            W1, [SP,#0x10+var_10+2]                                ; +0x2c, 0x8a3dc0\nSTRH            W3, [X0,#0x48]                                         ; +0x30, 0x8a3dc4\nSTRB            W1, [X0,#0x4A]                                         ; +0x34, 0x8a3dc8\nADD             SP, SP, #0x10                                          ; +0x38, 0x8a3dcc\nRET                                                                    ; +0x3c, 0x8a3dd0\nLDRH            W1, [SP,#0x10+var_8]                                   ; +0x40, 0x8a3dd4\nSTRH            W1, [X0,#0x48]                                         ; +0x44, 0x8a3dd8\nLDRB            W1, [SP,#0x10+var_8+2]                                 ; +0x48, 0x8a3ddc\nSTRB            W1, [X0,#0x4A]                                         ; +0x4c, 0x8a3de0\nADD             SP, SP, #0x10                                          ; +0x50, 0x8a3de4\nRET                                                                    ; +0x54, 0x8a3de8", "xrefs": ["GJEffectManager::updateColors @ 0x8a4064", "<???> @ 0xa2ca8"], "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"}