{"type": "func", "start": 4297028464, "end": 4297028756, "name": "CustomizeObjectLayer::determineStartValues", "pseudocode": "// \n// CustomizeObjectLayer::determineStartValues from 0x1001f7370 to 0x1001f7494 (292 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001f5501\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 CustomizeObjectLayer::determineStartValues(CustomizeObjectLayer *a1)\n{\n  GameObject *m_targetObject; // rdi\n  unsigned int v3; // r14d\n  GameObject *v4; // rax\n  GameObject *v5; // r15\n\n  m_targetObject = a1->m_targetObject;\n  if ( m_targetObject )\n  {\n    a1->m_hasBaseColor = GameObject::getRelativeSpriteColor(m_targetObject, 1) != nullptr;\n    a1->m_hasDetailColor = GameObject::getRelativeSpriteColor(a1->m_targetObject, 2) != nullptr;\n    a1->m_glowDisabled = a1->m_targetObject->m_hasNoGlow;\n    return;\n  }\n  a1->m_glowDisabled = 1;\n  if ( (unsigned int)sub_100720070(a1->m_targetObjects) )\n  {\n    v3 = 0;\n    while ( 1 )\n    {\n      v4 = (GameObject *)sub_1007200C0(a1->m_targetObjects, v3);\n      v5 = v4;\n      if ( !a1->m_hasBaseColor )\n        break;\n      if ( !a1->m_hasDetailColor )\n        goto LABEL_9;\nLABEL_10:\n      if ( !v5->m_hasNoGlow )\n        a1->m_glowDisabled = 0;\n      if ( ++v3 >= (unsigned int)sub_100720070(a1->m_targetObjects) )\n        return;\n    }\n    a1->m_hasBaseColor = GameObject::getRelativeSpriteColor(v4, 1) != nullptr;\n    if ( a1->m_hasDetailColor )\n      goto LABEL_10;\nLABEL_9:\n    a1->m_hasDetailColor = GameObject::getRelativeSpriteColor(v5, 2) != nullptr;\n    goto LABEL_10;\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::determineStartValues from 0x1001f7370 to 0x1001f7494 (292 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001f5501\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, 0x1001f7370\nmov     rbp, rsp                                                       ; +0x1, 0x1001f7371\npush    r15                                                            ; +0x4, 0x1001f7374\npush    r14                                                            ; +0x6, 0x1001f7376\npush    rbx                                                            ; +0x8, 0x1001f7378\npush    rax                                                            ; +0x9, 0x1001f7379\nmov     rbx, rdi                                                       ; +0xa, 0x1001f737a\nmov     rdi, [rdi+298h]                                                ; +0xd, 0x1001f737d\ntest    rdi, rdi                                                       ; +0x14, 0x1001f7384\njz      short loc_1001F73D7                                            ; +0x17, 0x1001f7387\nmov     esi, 1                                                         ; +0x19, 0x1001f7389\ncall    GameObject__getRelativeSpriteColor                             ; +0x1e, 0x1001f738e\ntest    rax, rax                                                       ; +0x23, 0x1001f7393\nsetnz   byte ptr [rbx+2D8h]                                            ; +0x26, 0x1001f7396\nmov     rdi, [rbx+298h]                                                ; +0x2d, 0x1001f739d\nmov     esi, 2                                                         ; +0x34, 0x1001f73a4\ncall    GameObject__getRelativeSpriteColor                             ; +0x39, 0x1001f73a9\ntest    rax, rax                                                       ; +0x3e, 0x1001f73ae\nsetnz   byte ptr [rbx+2D9h]                                            ; +0x41, 0x1001f73b1\nmov     rax, [rbx+298h]                                                ; +0x48, 0x1001f73b8\nmovzx   eax, byte ptr [rax+3FCh]                                       ; +0x4f, 0x1001f73bf\nmov     [rbx+2DAh], al                                                 ; +0x56, 0x1001f73c6\nadd     rsp, 8                                                         ; +0x5c, 0x1001f73cc\npop     rbx                                                            ; +0x60, 0x1001f73d0\npop     r14                                                            ; +0x61, 0x1001f73d1\npop     r15                                                            ; +0x63, 0x1001f73d3\npop     rbp                                                            ; +0x65, 0x1001f73d5\nretn                                                                   ; +0x66, 0x1001f73d6\nmov     byte ptr [rbx+2DAh], 1                                         ; +0x67, 0x1001f73d7\nmov     rdi, [rbx+2A0h]                                                ; +0x6e, 0x1001f73de\ncall    sub_100720070                                                  ; +0x75, 0x1001f73e5\ntest    eax, eax                                                       ; +0x7a, 0x1001f73ea\njz      short loc_1001F73CC                                            ; +0x7c, 0x1001f73ec\nxor     r14d, r14d                                                     ; +0x7e, 0x1001f73ee\njmp     short loc_1001F7414                                            ; +0x81, 0x1001f73f1\nalign 20h                                                              ; +0x83, 0x1001f73f3\ninc     r14d                                                           ; +0x90, 0x1001f7400\nmov     rdi, [rbx+2A0h]                                                ; +0x93, 0x1001f7403\ncall    sub_100720070                                                  ; +0x9a, 0x1001f740a\ncmp     r14d, eax                                                      ; +0x9f, 0x1001f740f\njnb     short loc_1001F73CC                                            ; +0xa2, 0x1001f7412\nmov     rdi, [rbx+2A0h]                                                ; +0xa4, 0x1001f7414\nmov     esi, r14d                                                      ; +0xab, 0x1001f741b\ncall    sub_1007200C0                                                  ; +0xae, 0x1001f741e\nmov     r15, rax                                                       ; +0xb3, 0x1001f7423\ncmp     byte ptr [rbx+2D8h], 1                                         ; +0xb6, 0x1001f7426\njnz     short loc_1001F7470                                            ; +0xbd, 0x1001f742d\nmovzx   eax, byte ptr [rbx+2D9h]                                       ; +0xbf, 0x1001f742f\ntest    al, al                                                         ; +0xc6, 0x1001f7436\njnz     short loc_1001F7455                                            ; +0xc8, 0x1001f7438\ntest    al, 1                                                          ; +0xca, 0x1001f743a\njnz     short loc_1001F7455                                            ; +0xcc, 0x1001f743c\nmov     rdi, r15                                                       ; +0xce, 0x1001f743e\nmov     esi, 2                                                         ; +0xd1, 0x1001f7441\ncall    GameObject__getRelativeSpriteColor                             ; +0xd6, 0x1001f7446\ntest    rax, rax                                                       ; +0xdb, 0x1001f744b\nsetnz   byte ptr [rbx+2D9h]                                            ; +0xde, 0x1001f744e\ncmp     byte ptr [r15+3FCh], 0                                         ; +0xe5, 0x1001f7455\njnz     short loc_1001F7400                                            ; +0xed, 0x1001f745d\nmov     byte ptr [rbx+2DAh], 0                                         ; +0xef, 0x1001f745f\njmp     short loc_1001F7400                                            ; +0xf6, 0x1001f7466\nalign 10h                                                              ; +0xf8, 0x1001f7468\nmov     rdi, r15                                                       ; +0x100, 0x1001f7470\nmov     esi, 1                                                         ; +0x103, 0x1001f7473\ncall    GameObject__getRelativeSpriteColor                             ; +0x108, 0x1001f7478\ntest    rax, rax                                                       ; +0x10d, 0x1001f747d\nsetnz   byte ptr [rbx+2D8h]                                            ; +0x110, 0x1001f7480\nmovzx   eax, byte ptr [rbx+2D9h]                                       ; +0x117, 0x1001f7487\ntest    al, 1                                                          ; +0x11e, 0x1001f748e\njz      short loc_1001F743E                                            ; +0x120, 0x1001f7490\njmp     short loc_1001F7455                                            ; +0x122, 0x1001f7492", "xrefs": ["CustomizeObjectLayer::init @ 0x1001f5501"], "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"}