{"type": "func", "start": 4295974368, "end": 4295974480, "name": "ColorSelectLiveOverlay::determineStartValues", "pseudocode": "// \n// ColorSelectLiveOverlay::determineStartValues from 0x1000f5de0 to 0x1000f5e50 (112 bytes)\n// \n// 1 xrefs:\n// > ColorSelectLiveOverlay::init @ 0x1000f51cc\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 __fastcall ColorSelectLiveOverlay::determineStartValues(ColorSelectLiveOverlay *a1)\n{\n  EffectGameObject *m_effectGameObject; // x9\n  __int16 v2; // w10\n  GLubyte b; // w11\n  ColorAction *m_baseColorAction; // x9\n  __int16 v5; // w10\n  GLubyte v6; // w11\n  ColorAction *m_detailColorAction; // x9\n  __int16 v8; // w10\n\n  m_effectGameObject = a1->m_effectGameObject;\n  if ( m_effectGameObject )\n  {\n    v2 = *(_WORD *)&m_effectGameObject->m_triggerTargetColor.r;\n    b = m_effectGameObject->m_triggerTargetColor.b;\n    a1->m_targetColor.b = b;\n    *(_WORD *)&a1->m_targetColor.r = v2;\n    a1->m_opacity = m_effectGameObject->m_opacity;\n    *(_WORD *)&a1->m_mainColor.r = v2;\n    a1->m_mainColor.b = b;\n  }\n  else\n  {\n    m_baseColorAction = a1->m_baseColorAction;\n    v5 = *(_WORD *)&m_baseColorAction->m_fromColor.r;\n    v6 = m_baseColorAction->m_fromColor.b;\n    a1->m_targetColor.b = v6;\n    *(_WORD *)&a1->m_targetColor.r = v5;\n    *(_WORD *)&a1->m_mainColor.r = v5;\n    a1->m_mainColor.b = v6;\n    a1->m_opacity = m_baseColorAction->m_fromOpacity;\n    m_detailColorAction = a1->m_detailColorAction;\n    if ( m_detailColorAction )\n    {\n      v8 = *(_WORD *)&m_detailColorAction->m_fromColor.r;\n      a1->m_detailColor.b = m_detailColorAction->m_fromColor.b;\n      *(_WORD *)&a1->m_detailColor.r = v8;\n    }\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::determineStartValues from 0x1000f5de0 to 0x1000f5e50 (112 bytes)\n; \n; 1 xrefs:\n; > ColorSelectLiveOverlay::init @ 0x1000f51cc\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\nADD             X8, X0, #0x2A3                                         ; +0x0, 0x1000f5de0\nLDR             X9, [X0,#0x278]                                        ; +0x4, 0x1000f5de4\nCBZ             X9, loc_1000F5E10                                      ; +0x8, 0x1000f5de8\nLDRH            W10, [X9,#0x5A8]                                       ; +0xc, 0x1000f5dec\nLDRB            W11, [X9,#0x5AA]                                       ; +0x10, 0x1000f5df0\nSTRB            W11, [X8,#5]                                           ; +0x14, 0x1000f5df4\nSTURH           W10, [X8,#3]                                           ; +0x18, 0x1000f5df8\nLDR             S0, [X9,#0x5B0]                                        ; +0x1c, 0x1000f5dfc\nSTR             S0, [X0,#0x2B8]                                        ; +0x20, 0x1000f5e00\nSTRH            W10, [X0,#0x2A0]                                       ; +0x24, 0x1000f5e04\nSTRB            W11, [X0,#0x2A2]                                       ; +0x28, 0x1000f5e08\nRET                                                                    ; +0x2c, 0x1000f5e0c\nLDR             X9, [X0,#0x290]                                        ; +0x30, 0x1000f5e10\nLDRH            W10, [X9,#0x48]                                        ; +0x34, 0x1000f5e14\nLDRB            W11, [X9,#0x4A]                                        ; +0x38, 0x1000f5e18\nSTRB            W11, [X8,#5]                                           ; +0x3c, 0x1000f5e1c\nSTURH           W10, [X8,#3]                                           ; +0x40, 0x1000f5e20\nSTRH            W10, [X0,#0x2A0]                                       ; +0x44, 0x1000f5e24\nSTRB            W11, [X0,#0x2A2]                                       ; +0x48, 0x1000f5e28\nLDR             S0, [X9,#0x60]                                         ; +0x4c, 0x1000f5e2c\nSTR             S0, [X0,#0x2B8]                                        ; +0x50, 0x1000f5e30\nLDR             X9, [X0,#0x298]                                        ; +0x54, 0x1000f5e34\nCBZ             X9, locret_1000F5E4C                                   ; +0x58, 0x1000f5e38\nLDRH            W10, [X9,#0x48]                                        ; +0x5c, 0x1000f5e3c\nLDRB            W9, [X9,#0x4A]                                         ; +0x60, 0x1000f5e40\nSTRB            W9, [X8,#2]                                            ; +0x64, 0x1000f5e44\nSTRH            W10, [X8]                                              ; +0x68, 0x1000f5e48\nRET                                                                    ; +0x6c, 0x1000f5e4c", "xrefs": ["ColorSelectLiveOverlay::init @ 0x1000f51cc"], "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"}