{"type": "func", "start": 5371432352, "end": 5371432471, "name": "GameObject::updateBlendMode", "pseudocode": "// \n// GameObject::updateBlendMode from 0x140298da0 to 0x140298e17 (119 bytes)\n// \n// 4 xrefs:\n// > GameObject::addMainSpriteToParent @ 0x140298e35\n// > LevelEditorLayer::manualUpdateObjectColors @ 0x1403f7433\n// > PlayLayer::manualUpdateObjectColors @ 0x14050ee00\n// > <???> @ 0x14091d66c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:29:11 +0000\n// \n\nchar __fastcall GameObject::updateBlendMode(__int64 a1)\n{\n  int v2; // eax\n  bool v3; // zf\n  char v4; // cl\n  int *v5; // rdx\n\n  LOBYTE(v2) = GameObject::shouldBlendColor(a1, *(int **)(a1 + 1104), 1);\n  v3 = *(_QWORD *)(a1 + 896) == 0;\n  v4 = v2;\n  *(_BYTE *)(a1 + 892) = v2;\n  if ( v3 )\n    goto LABEL_9;\n  v5 = *(int **)(a1 + 1112);\n  v2 = *v5;\n  if ( v5[1] == *v5 || !v2 )\n    v2 = v5[1];\n  if ( v2 != 1012 )\n  {\n    LOBYTE(v2) = GameObject::shouldBlendColor(a1, v5, 0);\n    v4 = v2;\n  }\n  if ( !v4 )\nLABEL_9:\n    *(_BYTE *)(a1 + 893) = 0;\n  else\n    *(_BYTE *)(a1 + 893) = 1;\n  return v2;\n}", "assembly": "; \n; GameObject::updateBlendMode from 0x140298da0 to 0x140298e17 (119 bytes)\n; \n; 4 xrefs:\n; > GameObject::addMainSpriteToParent @ 0x140298e35\n; > LevelEditorLayer::manualUpdateObjectColors @ 0x1403f7433\n; > PlayLayer::manualUpdateObjectColors @ 0x14050ee00\n; > <???> @ 0x14091d66c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:29:11 +0000\n; \npush    rbx                                                            ; +0x0, 0x140298da0\nsub     rsp, 20h                                                       ; +0x2, 0x140298da2\nmov     rdx, [rcx+450h]                                                ; +0x6, 0x140298da6\nmov     r8b, 1                                                         ; +0xd, 0x140298dad\nmov     rbx, rcx                                                       ; +0x10, 0x140298db0\ncall    GameObject__shouldBlendColor                                   ; +0x13, 0x140298db3\ncmp     qword ptr [rbx+380h], 0                                        ; +0x18, 0x140298db8\nmovzx   ecx, al                                                        ; +0x20, 0x140298dc0\nmov     [rbx+37Ch], al                                                 ; +0x23, 0x140298dc3\njz      short loc_140298E0A                                            ; +0x29, 0x140298dc9\nmov     rdx, [rbx+458h]                                                ; +0x2b, 0x140298dcb\nmov     eax, [rdx]                                                     ; +0x32, 0x140298dd2\nmov     r8d, [rdx+4]                                                   ; +0x34, 0x140298dd4\ncmp     r8d, eax                                                       ; +0x38, 0x140298dd8\njz      short loc_140298DE1                                            ; +0x3b, 0x140298ddb\ntest    eax, eax                                                       ; +0x3d, 0x140298ddd\njnz     short loc_140298DE4                                            ; +0x3f, 0x140298ddf\nmov     eax, r8d                                                       ; +0x41, 0x140298de1\ncmp     eax, 3F4h                                                      ; +0x44, 0x140298de4\njz      short loc_140298DF9                                            ; +0x49, 0x140298de9\nxor     r8d, r8d                                                       ; +0x4b, 0x140298deb\nmov     rcx, rbx                                                       ; +0x4e, 0x140298dee\ncall    GameObject__shouldBlendColor                                   ; +0x51, 0x140298df1\nmovzx   ecx, al                                                        ; +0x56, 0x140298df6\ntest    cl, cl                                                         ; +0x59, 0x140298df9\njz      short loc_140298E0A                                            ; +0x5b, 0x140298dfb\nmov     byte ptr [rbx+37Dh], 1                                         ; +0x5d, 0x140298dfd\nadd     rsp, 20h                                                       ; +0x64, 0x140298e04\npop     rbx                                                            ; +0x68, 0x140298e08\nretn                                                                   ; +0x69, 0x140298e09\nmov     byte ptr [rbx+37Dh], 0                                         ; +0x6a, 0x140298e0a\nadd     rsp, 20h                                                       ; +0x71, 0x140298e11\npop     rbx                                                            ; +0x75, 0x140298e15\nretn                                                                   ; +0x76, 0x140298e16", "xrefs": ["GameObject::addMainSpriteToParent @ 0x140298e35", "LevelEditorLayer::manualUpdateObjectColors @ 0x1403f7433", "PlayLayer::manualUpdateObjectColors @ 0x14050ee00", "<???> @ 0x14091d66c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}