{"type": "func", "start": 4301765328, "end": 4301765498, "name": "GameObject::shouldBlendColor", "pseudocode": "// \n// GameObject::shouldBlendColor from 0x10067bad0 to 0x10067bb7a (170 bytes)\n// \n// 1 xrefs:\n// > GameObject::updateBlendMode @ 0x10068f492\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:03 +0000\n// \n\nchar __fastcall GameObject::shouldBlendColor(__int64 a1, int *a2, char a3)\n{\n  int v3; // eax\n  char v4; // cl\n  int v5; // ebx\n  __int64 v6; // rax\n  char result; // al\n  __int64 v8; // rax\n  int *v9; // rsi\n  int v10; // edx\n\n  v3 = *a2;\n  if ( !*a2 )\n    v3 = a2[1];\n  v4 = *(_BYTE *)(a1 + 867);\n  v5 = 0;\n  if ( !v4 )\n    v5 = v3;\n  if ( *(_BYTE *)(a1 + 649) == 1 )\n  {\n    v6 = GameManager::sharedState();\n    return LevelEditorLayer::shouldBlend(*(_QWORD *)(v6 + 552), v5);\n  }\n  result = 1;\n  if ( (unsigned int)(v5 - 1005) >= 3 )\n  {\n    if ( v5 != 1012 )\n      goto LABEL_9;\n    if ( a3 )\n      return 0;\n    v9 = *(int **)(a1 + 1096);\n    v10 = *v9;\n    if ( !*v9 )\n      v10 = v9[1];\n    v5 = 0;\n    if ( !v4 )\n      v5 = v10;\n    if ( (unsigned int)(v5 - 1005) >= 3 )\n    {\n      if ( v5 != 1012 )\n      {\nLABEL_9:\n        if ( v5 )\n        {\n          v8 = GameManager::sharedState();\n          return PlayLayer::shouldBlend(*(_QWORD *)(v8 + 544));\n        }\n        return 0;\n      }\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameObject::shouldBlendColor from 0x10067bad0 to 0x10067bb7a (170 bytes)\n; \n; 1 xrefs:\n; > GameObject::updateBlendMode @ 0x10068f492\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:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x10067bad0\nmov     rbp, rsp                                                       ; +0x1, 0x10067bad1\npush    rbx                                                            ; +0x4, 0x10067bad4\npush    rax                                                            ; +0x5, 0x10067bad5\nmov     eax, [rsi]                                                     ; +0x6, 0x10067bad6\ntest    eax, eax                                                       ; +0x8, 0x10067bad8\njnz     short loc_10067BADF                                            ; +0xa, 0x10067bada\nmov     eax, [rsi+4]                                                   ; +0xc, 0x10067badc\nmovzx   ecx, byte ptr [rdi+363h]                                       ; +0xf, 0x10067badf\nxor     ebx, ebx                                                       ; +0x16, 0x10067bae6\ntest    cl, cl                                                         ; +0x18, 0x10067bae8\ncmovz   ebx, eax                                                       ; +0x1a, 0x10067baea\ncmp     byte ptr [rdi+289h], 1                                         ; +0x1d, 0x10067baed\njnz     short loc_10067BB0F                                            ; +0x24, 0x10067baf4\ncall    GameManager__sharedState                                       ; +0x26, 0x10067baf6\nmov     rdi, [rax+228h]                                                ; +0x2b, 0x10067bafb\nmov     esi, ebx                                                       ; +0x32, 0x10067bb02\nadd     rsp, 8                                                         ; +0x34, 0x10067bb04\npop     rbx                                                            ; +0x38, 0x10067bb08\npop     rbp                                                            ; +0x39, 0x10067bb09\njmp     LevelEditorLayer__shouldBlend                                  ; +0x3a, 0x10067bb0a\nmov     al, 1                                                          ; +0x3f, 0x10067bb0f\nlea     esi, [rbx-3EDh]                                                ; +0x41, 0x10067bb11\ncmp     esi, 3                                                         ; +0x47, 0x10067bb17\njb      short loc_10067BB47                                            ; +0x4a, 0x10067bb1a\ncmp     ebx, 3F4h                                                      ; +0x4c, 0x10067bb1c\njz      short loc_10067BB41                                            ; +0x52, 0x10067bb22\ntest    ebx, ebx                                                       ; +0x54, 0x10067bb24\njz      short loc_10067BB45                                            ; +0x56, 0x10067bb26\ncall    GameManager__sharedState                                       ; +0x58, 0x10067bb28\nmov     rdi, [rax+220h]                                                ; +0x5d, 0x10067bb2d\nmov     esi, ebx                                                       ; +0x64, 0x10067bb34\nadd     rsp, 8                                                         ; +0x66, 0x10067bb36\npop     rbx                                                            ; +0x6a, 0x10067bb3a\npop     rbp                                                            ; +0x6b, 0x10067bb3b\njmp     PlayLayer__shouldBlend                                         ; +0x6c, 0x10067bb3c\ntest    dl, dl                                                         ; +0x71, 0x10067bb41\njz      short loc_10067BB4E                                            ; +0x73, 0x10067bb43\nxor     eax, eax                                                       ; +0x75, 0x10067bb45\nadd     rsp, 8                                                         ; +0x77, 0x10067bb47\npop     rbx                                                            ; +0x7b, 0x10067bb4b\npop     rbp                                                            ; +0x7c, 0x10067bb4c\nretn                                                                   ; +0x7d, 0x10067bb4d\nmov     rsi, [rdi+448h]                                                ; +0x7e, 0x10067bb4e\nmov     edx, [rsi]                                                     ; +0x85, 0x10067bb55\ntest    edx, edx                                                       ; +0x87, 0x10067bb57\njnz     short loc_10067BB5E                                            ; +0x89, 0x10067bb59\nmov     edx, [rsi+4]                                                   ; +0x8b, 0x10067bb5b\nxor     ebx, ebx                                                       ; +0x8e, 0x10067bb5e\ntest    cl, cl                                                         ; +0x90, 0x10067bb60\ncmovz   ebx, edx                                                       ; +0x92, 0x10067bb62\nlea     ecx, [rbx-3EDh]                                                ; +0x95, 0x10067bb65\ncmp     ecx, 3                                                         ; +0x9b, 0x10067bb6b\njb      short loc_10067BB47                                            ; +0x9e, 0x10067bb6e\ncmp     ebx, 3F4h                                                      ; +0xa0, 0x10067bb70\njnz     short loc_10067BB24                                            ; +0xa6, 0x10067bb76\njmp     short loc_10067BB45                                            ; +0xa8, 0x10067bb78", "xrefs": ["GameObject::updateBlendMode @ 0x10068f492"], "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"}