{"type": "func", "start": 5810602, "end": 5810632, "name": "ColorAction2::updateCustomColor", "pseudocode": "// \n// ColorAction2::updateCustomColor from 0x58a9aa to 0x58a9c8 (30 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\nvoid ColorAction2::updateCustomColor(ColorAction2 *a1, cocos2d::ccColor3B a2, cocos2d::ccColor3B a3)\n{\n  int m_playerColor; // r3\n\n  m_playerColor = a1->m_playerColor;\n  if ( m_playerColor == 1 )\n  {\n    a1->m_fromColor = a2;\n  }\n  else if ( m_playerColor == 2 )\n  {\n    a1->m_fromColor = a3;\n  }\n}", "assembly": "; \n; ColorAction2::updateCustomColor from 0x58a9aa to 0x58a9c8 (30 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\nLDR             R3, [R0,#0x20]                                         ; +0x0, 0x58a9aa\nSUB             SP, SP, #8                                             ; +0x2, 0x58a9ac\nCMP             R3, #1                                                 ; +0x4, 0x58a9ae\nBNE             loc_58A9BA                                             ; +0x6, 0x58a9b0\nSTRH            R1, [R0,#0x10]                                         ; +0x8, 0x58a9b2\nLSRS            R1, R1, #0x10                                          ; +0xa, 0x58a9b4\nSTRB            R1, [R0,#0x12]                                         ; +0xc, 0x58a9b6\nB               loc_58A9C4                                             ; +0xe, 0x58a9b8\nCMP             R3, #2                                                 ; +0x10, 0x58a9ba\nITTT EQ                                                                ; +0x12, 0x58a9bc\nSTRHEQ          R2, [R0,#0x10]                                         ; +0x14, 0x58a9be\nLSREQ           R2, R2, #0x10                                          ; +0x16, 0x58a9c0\nSTRBEQ          R2, [R0,#0x12]                                         ; +0x18, 0x58a9c2\nADD             SP, SP, #8                                             ; +0x1a, 0x58a9c4\nBX              LR                                                     ; +0x1c, 0x58a9c6", "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"}