{"type": "func", "start": 10927112, "end": 10927200, "name": "ColorAction2::updateCustomColor", "pseudocode": "// \n// ColorAction2::updateCustomColor from 0xa6bc08 to 0xa6bc60 (88 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x3b700\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 ColorAction2::updateCustomColor(ColorAction2 *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; ColorAction2::updateCustomColor from 0xa6bc08 to 0xa6bc60 (88 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x3b700\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, 0xa6bc08\nSTR             X1, [SP,#0x10+var_8]                                   ; +0x4, 0xa6bc0c\nLDR             W1, [X0,#0x20]                                         ; +0x8, 0xa6bc10\nSTR             X2, [SP,#0x10+var_10]                                  ; +0xc, 0xa6bc14\nCMP             W1, #1                                                 ; +0x10, 0xa6bc18\nB.EQ            loc_A6BC48                                             ; +0x14, 0xa6bc1c\nCMP             W1, #2                                                 ; +0x18, 0xa6bc20\nB.EQ            loc_A6BC30                                             ; +0x1c, 0xa6bc24\nADD             SP, SP, #0x10                                          ; +0x20, 0xa6bc28\nRET                                                                    ; +0x24, 0xa6bc2c\nLDRH            W3, [SP,#0x10+var_10]                                  ; +0x28, 0xa6bc30\nLDRB            W1, [SP,#0x10+var_10+2]                                ; +0x2c, 0xa6bc34\nSTRH            W3, [X0,#0x10]                                         ; +0x30, 0xa6bc38\nSTRB            W1, [X0,#0x12]                                         ; +0x34, 0xa6bc3c\nADD             SP, SP, #0x10                                          ; +0x38, 0xa6bc40\nRET                                                                    ; +0x3c, 0xa6bc44\nLDRH            W1, [SP,#0x10+var_8]                                   ; +0x40, 0xa6bc48\nSTRH            W1, [X0,#0x10]                                         ; +0x44, 0xa6bc4c\nLDRB            W1, [SP,#0x10+var_8+2]                                 ; +0x48, 0xa6bc50\nSTRB            W1, [X0,#0x12]                                         ; +0x4c, 0xa6bc54\nADD             SP, SP, #0x10                                          ; +0x50, 0xa6bc58\nRET                                                                    ; +0x54, 0xa6bc5c", "xrefs": ["<???> @ 0x3b700"], "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"}