{"type": "func", "start": 4300992528, "end": 4300992715, "name": "GameObject::updateHSVState", "pseudocode": "// \n// GameObject::updateHSVState from 0x1005bf010 to 0x1005bf0cb (187 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::getLevelString @ 0x1000e3598\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 GameObject::updateHSVState(GameObject *a1)\n{\n  GJSpriteColor *m_baseColor; // rcx\n  GJSpriteColor *m_detailColor; // rax\n  bool v3; // dl\n  bool v4; // cl\n\n  m_baseColor = a1->m_baseColor;\n  m_detailColor = a1->m_detailColor;\n  if ( m_baseColor )\n  {\n    v3 = 1;\n    if ( m_baseColor->m_hsv.h == *(float *)&xmmword_1009A2C90\n      && m_baseColor->m_hsv.s == *((float *)&xmmword_1009A2C90 + 1)\n      && m_baseColor->m_hsv.v == *((float *)&xmmword_1009A2C90 + 2)\n      && m_baseColor->m_hsv.absoluteSaturation == BYTE12(xmmword_1009A2C90) )\n    {\n      v3 = m_baseColor->m_hsv.absoluteBrightness != BYTE13(xmmword_1009A2C90);\n    }\n    m_baseColor->m_usesHSV = v3;\n  }\n  if ( m_detailColor )\n  {\n    v4 = 1;\n    if ( m_detailColor->m_hsv.h == *(float *)&xmmword_1009A2C90\n      && m_detailColor->m_hsv.s == *((float *)&xmmword_1009A2C90 + 1)\n      && m_detailColor->m_hsv.v == *((float *)&xmmword_1009A2C90 + 2)\n      && m_detailColor->m_hsv.absoluteSaturation == BYTE12(xmmword_1009A2C90) )\n    {\n      v4 = m_detailColor->m_hsv.absoluteBrightness != BYTE13(xmmword_1009A2C90);\n    }\n    m_detailColor->m_usesHSV = v4;\n  }\n}", "assembly": "; \n; GameObject::updateHSVState from 0x1005bf010 to 0x1005bf0cb (187 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::getLevelString @ 0x1000e3598\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, 0x1005bf010\nmov     rbp, rsp                                                       ; +0x1, 0x1005bf011\nmov     rcx, [rdi+448h]                                                ; +0x4, 0x1005bf014\nmov     rax, [rdi+450h]                                                ; +0xb, 0x1005bf01b\ntest    rcx, rcx                                                       ; +0x12, 0x1005bf022\njz      short loc_1005BF076                                            ; +0x15, 0x1005bf025\nmovss   xmm0, dword ptr [rcx+10h]                                      ; +0x17, 0x1005bf027\nmov     dl, 1                                                          ; +0x1c, 0x1005bf02c\nucomiss xmm0, dword ptr cs:xmmword_1009A2C90                           ; +0x1e, 0x1005bf02e\njnz     short loc_1005BF073                                            ; +0x25, 0x1005bf035\njp      short loc_1005BF073                                            ; +0x27, 0x1005bf037\nmovss   xmm0, dword ptr [rcx+14h]                                      ; +0x29, 0x1005bf039\nucomiss xmm0, dword ptr cs:xmmword_1009A2C90+4                         ; +0x2e, 0x1005bf03e\njnz     short loc_1005BF073                                            ; +0x35, 0x1005bf045\njp      short loc_1005BF073                                            ; +0x37, 0x1005bf047\nmovss   xmm0, dword ptr [rcx+18h]                                      ; +0x39, 0x1005bf049\nucomiss xmm0, dword ptr cs:xmmword_1009A2C90+8                         ; +0x3e, 0x1005bf04e\njnz     short loc_1005BF073                                            ; +0x45, 0x1005bf055\njp      short loc_1005BF073                                            ; +0x47, 0x1005bf057\nmovzx   esi, byte ptr [rcx+1Ch]                                        ; +0x49, 0x1005bf059\ncmp     sil, byte ptr cs:xmmword_1009A2C90+0Ch                         ; +0x4d, 0x1005bf05d\njnz     short loc_1005BF073                                            ; +0x54, 0x1005bf064\nmovzx   edx, byte ptr [rcx+1Dh]                                        ; +0x56, 0x1005bf066\ncmp     dl, byte ptr cs:xmmword_1009A2C90+0Dh                          ; +0x5a, 0x1005bf06a\nsetnz   dl                                                             ; +0x60, 0x1005bf070\nmov     [rcx+20h], dl                                                  ; +0x63, 0x1005bf073\ntest    rax, rax                                                       ; +0x66, 0x1005bf076\njz      short loc_1005BF0C9                                            ; +0x69, 0x1005bf079\nmovss   xmm0, dword ptr [rax+10h]                                      ; +0x6b, 0x1005bf07b\nmov     cl, 1                                                          ; +0x70, 0x1005bf080\nucomiss xmm0, dword ptr cs:xmmword_1009A2C90                           ; +0x72, 0x1005bf082\njnz     short loc_1005BF0C6                                            ; +0x79, 0x1005bf089\njp      short loc_1005BF0C6                                            ; +0x7b, 0x1005bf08b\nmovss   xmm0, dword ptr [rax+14h]                                      ; +0x7d, 0x1005bf08d\nucomiss xmm0, dword ptr cs:xmmword_1009A2C90+4                         ; +0x82, 0x1005bf092\njnz     short loc_1005BF0C6                                            ; +0x89, 0x1005bf099\njp      short loc_1005BF0C6                                            ; +0x8b, 0x1005bf09b\nmovss   xmm0, dword ptr [rax+18h]                                      ; +0x8d, 0x1005bf09d\nucomiss xmm0, dword ptr cs:xmmword_1009A2C90+8                         ; +0x92, 0x1005bf0a2\njnz     short loc_1005BF0C6                                            ; +0x99, 0x1005bf0a9\njp      short loc_1005BF0C6                                            ; +0x9b, 0x1005bf0ab\nmovzx   edx, byte ptr [rax+1Ch]                                        ; +0x9d, 0x1005bf0ad\ncmp     dl, byte ptr cs:xmmword_1009A2C90+0Ch                          ; +0xa1, 0x1005bf0b1\njnz     short loc_1005BF0C6                                            ; +0xa7, 0x1005bf0b7\nmovzx   ecx, byte ptr [rax+1Dh]                                        ; +0xa9, 0x1005bf0b9\ncmp     cl, byte ptr cs:xmmword_1009A2C90+0Dh                          ; +0xad, 0x1005bf0bd\nsetnz   cl                                                             ; +0xb3, 0x1005bf0c3\nmov     [rax+20h], cl                                                  ; +0xb6, 0x1005bf0c6\npop     rbp                                                            ; +0xb9, 0x1005bf0c9\nretn                                                                   ; +0xba, 0x1005bf0ca", "xrefs": ["LevelEditorLayer::getLevelString @ 0x1000e3598"], "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"}