{"type": "func", "start": 4297502096, "end": 4297502331, "name": "HSVLiveOverlay::determineStartValues", "pseudocode": "// \n// HSVLiveOverlay::determineStartValues from 0x10026ad90 to 0x10026ae7b (235 bytes)\n// \n// 1 xrefs:\n// > HSVLiveOverlay::init @ 0x10026aaaf\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; // rdi\n  unsigned int i; // r14d\n  GameObject *v4; // rax\n  GameObject *v5; // r15\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    return;\n  }\n  if ( (unsigned int)sub_100720070(a1->m_objects) )\n  {\n    for ( i = 0; i < (unsigned int)sub_100720070(a1->m_objects); ++i )\n    {\n      v4 = (GameObject *)sub_1007200C0(a1->m_objects, i);\n      v5 = v4;\n      if ( a1->m_unkBool1 )\n      {\n        if ( !a1->m_unkBool2 )\n          goto LABEL_11;\n      }\n      else\n      {\n        a1->m_unkBool1 = GameObject::getRelativeSpriteColor(v4, 1) != nullptr;\n        if ( !a1->m_unkBool2 )\nLABEL_11:\n          a1->m_unkBool2 = GameObject::getRelativeSpriteColor(v5, 2) != nullptr;\n      }\n    }\n  }\n}", "assembly": "; \n; HSVLiveOverlay::determineStartValues from 0x10026ad90 to 0x10026ae7b (235 bytes)\n; \n; 1 xrefs:\n; > HSVLiveOverlay::init @ 0x10026aaaf\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\npush    rbp                                                            ; +0x0, 0x10026ad90\nmov     rbp, rsp                                                       ; +0x1, 0x10026ad91\npush    r15                                                            ; +0x4, 0x10026ad94\npush    r14                                                            ; +0x6, 0x10026ad96\npush    rbx                                                            ; +0x8, 0x10026ad98\npush    rax                                                            ; +0x9, 0x10026ad99\nmov     rbx, rdi                                                       ; +0xa, 0x10026ad9a\nmov     rdi, [rdi+280h]                                                ; +0xd, 0x10026ad9d\ntest    rdi, rdi                                                       ; +0x14, 0x10026ada4\njz      short loc_10026ADE3                                            ; +0x17, 0x10026ada7\nmov     esi, 1                                                         ; +0x19, 0x10026ada9\ncall    GameObject__getRelativeSpriteColor                             ; +0x1e, 0x10026adae\ntest    rax, rax                                                       ; +0x23, 0x10026adb3\nsetnz   byte ptr [rbx+2B8h]                                            ; +0x26, 0x10026adb6\nmov     rdi, [rbx+280h]                                                ; +0x2d, 0x10026adbd\nmov     esi, 2                                                         ; +0x34, 0x10026adc4\ncall    GameObject__getRelativeSpriteColor                             ; +0x39, 0x10026adc9\ntest    rax, rax                                                       ; +0x3e, 0x10026adce\nsetnz   byte ptr [rbx+2B9h]                                            ; +0x41, 0x10026add1\nadd     rsp, 8                                                         ; +0x48, 0x10026add8\npop     rbx                                                            ; +0x4c, 0x10026addc\npop     r14                                                            ; +0x4d, 0x10026addd\npop     r15                                                            ; +0x4f, 0x10026addf\npop     rbp                                                            ; +0x51, 0x10026ade1\nretn                                                                   ; +0x52, 0x10026ade2\nmov     rdi, [rbx+288h]                                                ; +0x53, 0x10026ade3\ncall    sub_100720070                                                  ; +0x5a, 0x10026adea\ntest    eax, eax                                                       ; +0x5f, 0x10026adef\njz      short loc_10026ADD8                                            ; +0x61, 0x10026adf1\nxor     r14d, r14d                                                     ; +0x63, 0x10026adf3\njmp     short loc_10026AE14                                            ; +0x66, 0x10026adf6\nalign 20h                                                              ; +0x68, 0x10026adf8\ninc     r14d                                                           ; +0x70, 0x10026ae00\nmov     rdi, [rbx+288h]                                                ; +0x73, 0x10026ae03\ncall    sub_100720070                                                  ; +0x7a, 0x10026ae0a\ncmp     r14d, eax                                                      ; +0x7f, 0x10026ae0f\njnb     short loc_10026ADD8                                            ; +0x82, 0x10026ae12\nmov     rdi, [rbx+288h]                                                ; +0x84, 0x10026ae14\nmov     esi, r14d                                                      ; +0x8b, 0x10026ae1b\ncall    sub_1007200C0                                                  ; +0x8e, 0x10026ae1e\nmov     r15, rax                                                       ; +0x93, 0x10026ae23\ncmp     byte ptr [rbx+2B8h], 1                                         ; +0x96, 0x10026ae26\njnz     short loc_10026AE40                                            ; +0x9d, 0x10026ae2d\nmovzx   eax, byte ptr [rbx+2B9h]                                       ; +0x9f, 0x10026ae2f\ntest    al, al                                                         ; +0xa6, 0x10026ae36\njnz     short loc_10026AE00                                            ; +0xa8, 0x10026ae38\ntest    al, 1                                                          ; +0xaa, 0x10026ae3a\njnz     short loc_10026AE00                                            ; +0xac, 0x10026ae3c\njmp     short loc_10026AE62                                            ; +0xae, 0x10026ae3e\nmov     rdi, r15                                                       ; +0xb0, 0x10026ae40\nmov     esi, 1                                                         ; +0xb3, 0x10026ae43\ncall    GameObject__getRelativeSpriteColor                             ; +0xb8, 0x10026ae48\ntest    rax, rax                                                       ; +0xbd, 0x10026ae4d\nsetnz   byte ptr [rbx+2B8h]                                            ; +0xc0, 0x10026ae50\nmovzx   eax, byte ptr [rbx+2B9h]                                       ; +0xc7, 0x10026ae57\ntest    al, 1                                                          ; +0xce, 0x10026ae5e\njnz     short loc_10026AE00                                            ; +0xd0, 0x10026ae60\nmov     rdi, r15                                                       ; +0xd2, 0x10026ae62\nmov     esi, 2                                                         ; +0xd5, 0x10026ae65\ncall    GameObject__getRelativeSpriteColor                             ; +0xda, 0x10026ae6a\ntest    rax, rax                                                       ; +0xdf, 0x10026ae6f\nsetnz   byte ptr [rbx+2B9h]                                            ; +0xe2, 0x10026ae72\njmp     short loc_10026AE00                                            ; +0xe9, 0x10026ae79", "xrefs": ["HSVLiveOverlay::init @ 0x10026aaaf"], "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"}