{"type": "func", "start": 5038506, "end": 5038644, "name": "ColorSelectLiveOverlay::determineStartValues", "pseudocode": "// \n// ColorSelectLiveOverlay::determineStartValues from 0x4ce1aa to 0x4ce234 (138 bytes)\n// \n// 1 xrefs:\n// > sub_4CE9C0 @ 0x4cea46\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 ColorSelectLiveOverlay::determineStartValues(ColorSelectLiveOverlay *a1)\n{\n  EffectGameObject *m_effectGameObject; // r3\n  cocos2d::ccColor3B *p_m_targetColor; // r2\n  GLubyte b; // r4\n  float *p_m_opacity; // r3\n  GLubyte v5; // r6\n  GLubyte v6; // r5\n  __int16 v7; // r4\n  ColorAction *m_baseColorAction; // r3\n  GLubyte r; // r6\n  GLubyte g; // r5\n  __int16 v11; // r4\n  GLubyte v12; // r2\n  ColorAction *m_detailColorAction; // r3\n  GLubyte v14; // r1\n  GLubyte v15; // r2\n  GLubyte v16; // r3\n\n  m_effectGameObject = a1->m_effectGameObject;\n  p_m_targetColor = &a1->m_targetColor;\n  if ( m_effectGameObject )\n  {\n    b = m_effectGameObject->m_triggerTargetColor.b;\n    p_m_opacity = &m_effectGameObject->m_opacity;\n    v5 = *((_BYTE *)p_m_opacity - 8);\n    v6 = *((_BYTE *)p_m_opacity - 7);\n    a1->m_targetColor.b = b;\n    a1->m_targetColor.r = v5;\n    a1->m_targetColor.g = v6;\n    v7 = *(_WORD *)&p_m_targetColor->r;\n    a1->m_opacity = *p_m_opacity;\n    LOBYTE(p_m_opacity) = a1->m_targetColor.b;\n    *(_WORD *)&a1->m_mainColor.r = v7;\n    a1->m_mainColor.b = (unsigned __int8)p_m_opacity;\n  }\n  else\n  {\n    m_baseColorAction = a1->m_baseColorAction;\n    r = m_baseColorAction->m_fromColor.r;\n    g = m_baseColorAction->m_fromColor.g;\n    a1->m_targetColor.b = m_baseColorAction->m_fromColor.b;\n    a1->m_targetColor.r = r;\n    a1->m_targetColor.g = g;\n    v11 = *(_WORD *)&p_m_targetColor->r;\n    v12 = a1->m_targetColor.b;\n    *(_WORD *)&a1->m_mainColor.r = v11;\n    a1->m_mainColor.b = v12;\n    a1->m_opacity = m_baseColorAction->m_fromOpacity;\n    m_detailColorAction = a1->m_detailColorAction;\n    if ( m_detailColorAction )\n    {\n      v14 = m_detailColorAction->m_fromColor.r;\n      v15 = m_detailColorAction->m_fromColor.g;\n      v16 = m_detailColorAction->m_fromColor.b;\n      a1->m_detailColor.r = v14;\n      a1->m_detailColor.g = v15;\n      a1->m_detailColor.b = v16;\n    }\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::determineStartValues from 0x4ce1aa to 0x4ce234 (138 bytes)\n; \n; 1 xrefs:\n; > sub_4CE9C0 @ 0x4cea46\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.W           R3, [R0,#0x1F0]                                        ; +0x0, 0x4ce1aa\nADD.W           R1, R0, #0x204                                         ; +0x4, 0x4ce1ae\nPUSH            {R4-R6,LR}                                             ; +0x8, 0x4ce1b2\nADDW            R2, R0, #0x20A                                         ; +0xa, 0x4ce1b4\nCBZ             R3, loc_4CE1E8                                         ; +0xe, 0x4ce1b8\nLDRB.W          R4, [R3,#0x4EE]                                        ; +0x10, 0x4ce1ba\nADDW            R3, R3, #0x4F4                                         ; +0x14, 0x4ce1be\nLDRB.W          R6, [R3,#-8]                                           ; +0x18, 0x4ce1c2\nLDRB.W          R5, [R3,#-7]                                           ; +0x1c, 0x4ce1c6\nSTRB.W          R4, [R0,#0x20C]                                        ; +0x20, 0x4ce1ca\nSTRB.W          R6, [R0,#0x20A]                                        ; +0x24, 0x4ce1ce\nSTRB.W          R5, [R0,#0x20B]                                        ; +0x28, 0x4ce1d2\nLDR             R3, [R3]                                               ; +0x2c, 0x4ce1d6\nLDRH            R4, [R2]                                               ; +0x2e, 0x4ce1d8\nSTR.W           R3, [R0,#0x21C]                                        ; +0x30, 0x4ce1da\nLDRB            R3, [R2,#2]                                            ; +0x34, 0x4ce1de\nSTRH.W          R4, [R0,#0x204]                                        ; +0x36, 0x4ce1e0\nSTRB            R3, [R1,#2]                                            ; +0x3a, 0x4ce1e4\nPOP             {R4-R6,PC}                                             ; +0x3c, 0x4ce1e6\nLDR.W           R3, [R0,#0x1FC]                                        ; +0x3e, 0x4ce1e8\nLDRB.W          R4, [R3,#0x46]                                         ; +0x42, 0x4ce1ec\nLDRB.W          R6, [R3,#0x44]                                         ; +0x46, 0x4ce1f0\nLDRB.W          R5, [R3,#0x45]                                         ; +0x4a, 0x4ce1f4\nSTRB.W          R4, [R0,#0x20C]                                        ; +0x4e, 0x4ce1f8\nSTRB.W          R6, [R0,#0x20A]                                        ; +0x52, 0x4ce1fc\nSTRB.W          R5, [R0,#0x20B]                                        ; +0x56, 0x4ce200\nLDRH            R4, [R2]                                               ; +0x5a, 0x4ce204\nLDRB            R2, [R2,#2]                                            ; +0x5c, 0x4ce206\nSTRH.W          R4, [R0,#0x204]                                        ; +0x5e, 0x4ce208\nSTRB            R2, [R1,#2]                                            ; +0x62, 0x4ce20c\nLDR             R3, [R3,#0x5C]                                         ; +0x64, 0x4ce20e\nSTR.W           R3, [R0,#0x21C]                                        ; +0x66, 0x4ce210\nLDR.W           R3, [R0,#0x200]                                        ; +0x6a, 0x4ce214\nCBZ             R3, locret_4CE232                                      ; +0x6e, 0x4ce218\nLDRB.W          R1, [R3,#0x44]                                         ; +0x70, 0x4ce21a\nLDRB.W          R2, [R3,#0x45]                                         ; +0x74, 0x4ce21e\nLDRB.W          R3, [R3,#0x46]                                         ; +0x78, 0x4ce222\nSTRB.W          R1, [R0,#0x207]                                        ; +0x7c, 0x4ce226\nSTRB.W          R2, [R0,#0x208]                                        ; +0x80, 0x4ce22a\nSTRB.W          R3, [R0,#0x209]                                        ; +0x84, 0x4ce22e\nPOP             {R4-R6,PC}                                             ; +0x88, 0x4ce232", "xrefs": ["sub_4CE9C0 @ 0x4cea46"], "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"}