{"type": "func", "start": 4296670768, "end": 4296670980, "name": "HSVLiveOverlay::determineStartValues", "pseudocode": "// \n// HSVLiveOverlay::determineStartValues from 0x10019fe30 to 0x10019ff04 (212 bytes)\n// \n// 1 xrefs:\n// > HSVLiveOverlay::init @ 0x10019fb3c\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 HSVLiveOverlay::determineStartValues(HSVLiveOverlay *a1)\n{\n  GameObject *m_object; // x0\n  __int64 v3; // x20\n  GameObject *v4; // x0\n  GameObject *v5; // x21\n\n  m_object = a1->m_object;\n  if ( m_object )\n  {\n    a1->m_unkBool1 = GameObject::getRelativeSpriteColor(m_object, 1) != nullptr;\n    a1->m_unkBool2 = GameObject::getRelativeSpriteColor(a1->m_object, 2) != nullptr;\n  }\n  else if ( (unsigned int)sub_10024A36C(a1->m_objects) )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = (GameObject *)sub_10024A388(a1->m_objects, v3);\n      v5 = v4;\n      if ( !a1->m_unkBool1 )\n        a1->m_unkBool1 = GameObject::getRelativeSpriteColor(v4, 1) != nullptr;\n      if ( !a1->m_unkBool2 )\n        a1->m_unkBool2 = GameObject::getRelativeSpriteColor(v5, 2) != nullptr;\n      v3 = (unsigned int)(v3 + 1);\n    }\n    while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_objects) );\n  }\n}", "assembly": "; \n; HSVLiveOverlay::determineStartValues from 0x10019fe30 to 0x10019ff04 (212 bytes)\n; \n; 1 xrefs:\n; > HSVLiveOverlay::init @ 0x10019fb3c\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10019fe30\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10019fe34\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10019fe38\nADD             X29, SP, #0x20                                         ; +0xc, 0x10019fe3c\nMOV             X19, X0                                                ; +0x10, 0x10019fe40\nLDR             X0, [X0,#0x280]                                        ; +0x14, 0x10019fe44\nCBZ             X0, loc_10019FE7C                                      ; +0x18, 0x10019fe48\nMOV             W1, #1                                                 ; +0x1c, 0x10019fe4c\nBL              GameObject__getRelativeSpriteColor                     ; +0x20, 0x10019fe50\nCMP             X0, #0                                                 ; +0x24, 0x10019fe54\nCSET            W8, NE                                                 ; +0x28, 0x10019fe58\nSTRB            W8, [X19,#0x2B8]                                       ; +0x2c, 0x10019fe5c\nLDR             X0, [X19,#0x280]                                       ; +0x30, 0x10019fe60\nMOV             W1, #2                                                 ; +0x34, 0x10019fe64\nBL              GameObject__getRelativeSpriteColor                     ; +0x38, 0x10019fe68\nCMP             X0, #0                                                 ; +0x3c, 0x10019fe6c\nCSET            W8, NE                                                 ; +0x40, 0x10019fe70\nSTRB            W8, [X19,#0x2B9]                                       ; +0x44, 0x10019fe74\nB               loc_10019FEF4                                          ; +0x48, 0x10019fe78\nLDR             X0, [X19,#0x288]                                       ; +0x4c, 0x10019fe7c\nBL              sub_10024A36C                                          ; +0x50, 0x10019fe80\nCBZ             W0, loc_10019FEF4                                      ; +0x54, 0x10019fe84\nMOV             W20, #0                                                ; +0x58, 0x10019fe88\nLDR             X0, [X19,#0x288]                                       ; +0x5c, 0x10019fe8c\nMOV             X1, X20                                                ; +0x60, 0x10019fe90\nBL              sub_10024A388                                          ; +0x64, 0x10019fe94\nMOV             X21, X0                                                ; +0x68, 0x10019fe98\nLDRB            W8, [X19,#0x2B8]                                       ; +0x6c, 0x10019fe9c\nCMP             W8, #1                                                 ; +0x70, 0x10019fea0\nB.EQ            loc_10019FEC0                                          ; +0x74, 0x10019fea4\nMOV             X0, X21                                                ; +0x78, 0x10019fea8\nMOV             W1, #1                                                 ; +0x7c, 0x10019feac\nBL              GameObject__getRelativeSpriteColor                     ; +0x80, 0x10019feb0\nCMP             X0, #0                                                 ; +0x84, 0x10019feb4\nCSET            W8, NE                                                 ; +0x88, 0x10019feb8\nSTRB            W8, [X19,#0x2B8]                                       ; +0x8c, 0x10019febc\nLDRB            W8, [X19,#0x2B9]                                       ; +0x90, 0x10019fec0\nTBNZ            W8, #0, loc_10019FEE0                                  ; +0x94, 0x10019fec4\nMOV             X0, X21                                                ; +0x98, 0x10019fec8\nMOV             W1, #2                                                 ; +0x9c, 0x10019fecc\nBL              GameObject__getRelativeSpriteColor                     ; +0xa0, 0x10019fed0\nCMP             X0, #0                                                 ; +0xa4, 0x10019fed4\nCSET            W8, NE                                                 ; +0xa8, 0x10019fed8\nSTRB            W8, [X19,#0x2B9]                                       ; +0xac, 0x10019fedc\nADD             W20, W20, #1                                           ; +0xb0, 0x10019fee0\nLDR             X0, [X19,#0x288]                                       ; +0xb4, 0x10019fee4\nBL              sub_10024A36C                                          ; +0xb8, 0x10019fee8\nCMP             W20, W0                                                ; +0xbc, 0x10019feec\nB.CC            loc_10019FE8C                                          ; +0xc0, 0x10019fef0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc4, 0x10019fef4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc8, 0x10019fef8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xcc, 0x10019fefc\nRET                                                                    ; +0xd0, 0x10019ff00", "xrefs": ["HSVLiveOverlay::init @ 0x10019fb3c"], "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"}