{"type": "func", "start": 4823294, "end": 4823332, "name": "ColorAction::updateCustomColor", "pseudocode": "// \n// ColorAction::updateCustomColor from 0x4998fe to 0x499924 (38 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::updateColors @ 0x499af6\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 ColorAction::updateCustomColor(ColorAction *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; ColorAction::updateCustomColor from 0x4998fe to 0x499924 (38 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::updateColors @ 0x499af6\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,#0x54]                                         ; +0x0, 0x4998fe\nSUB             SP, SP, #8                                             ; +0x2, 0x499900\nCMP             R3, #1                                                 ; +0x4, 0x499902\nBNE             loc_499912                                             ; +0x6, 0x499904\nSTRH.W          R1, [R0,#0x44]                                         ; +0x8, 0x499906\nLSRS            R1, R1, #0x10                                          ; +0xc, 0x49990a\nSTRB.W          R1, [R0,#0x46]                                         ; +0xe, 0x49990c\nB               loc_499920                                             ; +0x12, 0x499910\nCMP             R3, #2                                                 ; +0x14, 0x499912\nITTT EQ                                                                ; +0x16, 0x499914\nSTRHEQ.W        R2, [R0,#0x44]                                         ; +0x18, 0x499916\nLSREQ           R2, R2, #0x10                                          ; +0x1c, 0x49991a\nSTRBEQ.W        R2, [R0,#0x46]                                         ; +0x1e, 0x49991c\nADD             SP, SP, #8                                             ; +0x22, 0x499920\nBX              LR                                                     ; +0x24, 0x499922", "xrefs": ["GJEffectManager::updateColors @ 0x499af6"], "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"}