{"type": "func", "start": 4301845504, "end": 4301845692, "name": "GameObject::updateBlendMode", "pseudocode": "// \n// GameObject::updateBlendMode from 0x10068f400 to 0x10068f4bc (188 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::manualUpdateObjectColors @ 0x100086b3c\n// > LevelEditorLayer::manualUpdateObjectColors @ 0x1000be6c0\n// > EditorUI::spriteFromObjectString @ 0x100638d5e\n// > GameObject::addMainSpriteToParent @ 0x10068f4d4\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 12:35:07 +0000\n// \n\nchar __fastcall GameObject::updateBlendMode(__int64 a1)\n{\n  int *v1; // rcx\n  int v2; // eax\n  int v3; // r14d\n  __int64 v4; // rax\n  char result; // al\n  int *v6; // rsi\n  int v7; // ecx\n  __int64 v8; // rax\n\n  v1 = *(int **)(a1 + 1096);\n  v2 = *v1;\n  if ( !*v1 )\n    v2 = v1[1];\n  v3 = 0;\n  if ( !*(_BYTE *)(a1 + 867) )\n    v3 = v2;\n  if ( *(_BYTE *)(a1 + 649) == 1 )\n  {\n    v4 = GameManager::sharedState();\n    result = LevelEditorLayer::shouldBlend(*(_QWORD *)(v4 + 552), v3);\n  }\n  else\n  {\n    result = 1;\n    if ( (unsigned int)(v3 - 1005) >= 3 )\n    {\n      if ( v3 != 1012 && v3 )\n      {\n        v8 = GameManager::sharedState();\n        result = PlayLayer::shouldBlend(*(_QWORD *)(v8 + 544));\n      }\n      else\n      {\n        result = 0;\n      }\n    }\n  }\n  *(_BYTE *)(a1 + 884) = result;\n  if ( *(_QWORD *)(a1 + 888) )\n  {\n    v6 = *(int **)(a1 + 1104);\n    v7 = *v6;\n    if ( !*v6 )\n      v7 = v6[1];\n    if ( v7 != 1012 )\n      result = GameObject::shouldBlendColor(a1, v6, 0);\n  }\n  else\n  {\n    result = 0;\n  }\n  *(_BYTE *)(a1 + 885) = result;\n  return result;\n}", "assembly": "; \n; GameObject::updateBlendMode from 0x10068f400 to 0x10068f4bc (188 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::manualUpdateObjectColors @ 0x100086b3c\n; > LevelEditorLayer::manualUpdateObjectColors @ 0x1000be6c0\n; > EditorUI::spriteFromObjectString @ 0x100638d5e\n; > GameObject::addMainSpriteToParent @ 0x10068f4d4\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 12:35:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x10068f400\nmov     rbp, rsp                                                       ; +0x1, 0x10068f401\npush    r14                                                            ; +0x4, 0x10068f404\npush    rbx                                                            ; +0x6, 0x10068f406\nmov     rbx, rdi                                                       ; +0x7, 0x10068f407\nmov     rcx, [rdi+448h]                                                ; +0xa, 0x10068f40a\nmov     eax, [rcx]                                                     ; +0x11, 0x10068f411\ntest    eax, eax                                                       ; +0x13, 0x10068f413\njnz     short loc_10068F41A                                            ; +0x15, 0x10068f415\nmov     eax, [rcx+4]                                                   ; +0x17, 0x10068f417\nxor     r14d, r14d                                                     ; +0x1a, 0x10068f41a\ncmp     byte ptr [rbx+363h], 0                                         ; +0x1d, 0x10068f41d\ncmovz   r14d, eax                                                      ; +0x24, 0x10068f424\ncmp     byte ptr [rbx+289h], 1                                         ; +0x28, 0x10068f428\njnz     short loc_10068F447                                            ; +0x2f, 0x10068f42f\ncall    GameManager__sharedState                                       ; +0x31, 0x10068f431\nmov     rdi, [rax+228h]                                                ; +0x36, 0x10068f436\nmov     esi, r14d                                                      ; +0x3d, 0x10068f43d\ncall    LevelEditorLayer__shouldBlend                                  ; +0x40, 0x10068f440\njmp     short loc_10068F465                                            ; +0x45, 0x10068f445\nmov     al, 1                                                          ; +0x47, 0x10068f447\nlea     ecx, [r14-3EDh]                                                ; +0x49, 0x10068f449\ncmp     ecx, 3                                                         ; +0x50, 0x10068f450\njb      short loc_10068F465                                            ; +0x53, 0x10068f453\ncmp     r14d, 3F4h                                                     ; +0x55, 0x10068f455\njz      short loc_10068F463                                            ; +0x5c, 0x10068f45c\ntest    r14d, r14d                                                     ; +0x5e, 0x10068f45e\njnz     short loc_10068F4A6                                            ; +0x61, 0x10068f461\nxor     eax, eax                                                       ; +0x63, 0x10068f463\nmov     [rbx+374h], al                                                 ; +0x65, 0x10068f465\ncmp     qword ptr [rbx+378h], 0                                        ; +0x6b, 0x10068f46b\njz      short loc_10068F499                                            ; +0x73, 0x10068f473\nmov     rsi, [rbx+450h]                                                ; +0x75, 0x10068f475\nmov     ecx, [rsi]                                                     ; +0x7c, 0x10068f47c\ntest    ecx, ecx                                                       ; +0x7e, 0x10068f47e\njnz     short loc_10068F485                                            ; +0x80, 0x10068f480\nmov     ecx, [rsi+4]                                                   ; +0x82, 0x10068f482\ncmp     ecx, 3F4h                                                      ; +0x85, 0x10068f485\njz      short loc_10068F49B                                            ; +0x8b, 0x10068f48b\nmov     rdi, rbx                                                       ; +0x8d, 0x10068f48d\nxor     edx, edx                                                       ; +0x90, 0x10068f490\ncall    GameObject__shouldBlendColor                                   ; +0x92, 0x10068f492\njmp     short loc_10068F49B                                            ; +0x97, 0x10068f497\nxor     eax, eax                                                       ; +0x99, 0x10068f499\nmov     [rbx+375h], al                                                 ; +0x9b, 0x10068f49b\npop     rbx                                                            ; +0xa1, 0x10068f4a1\npop     r14                                                            ; +0xa2, 0x10068f4a2\npop     rbp                                                            ; +0xa4, 0x10068f4a4\nretn                                                                   ; +0xa5, 0x10068f4a5\ncall    GameManager__sharedState                                       ; +0xa6, 0x10068f4a6\nmov     rdi, [rax+220h]                                                ; +0xab, 0x10068f4ab\nmov     esi, r14d                                                      ; +0xb2, 0x10068f4b2\ncall    PlayLayer__shouldBlend                                         ; +0xb5, 0x10068f4b5\njmp     short loc_10068F445                                            ; +0xba, 0x10068f4ba", "xrefs": ["PlayLayer::manualUpdateObjectColors @ 0x100086b3c", "LevelEditorLayer::manualUpdateObjectColors @ 0x1000be6c0", "EditorUI::spriteFromObjectString @ 0x100638d5e", "GameObject::addMainSpriteToParent @ 0x10068f4d4"], "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"}