{"type": "func", "start": 4300907392, "end": 4300907547, "name": "GameObject::shouldBlendColor", "pseudocode": "// \n// GameObject::shouldBlendColor from 0x1005aa380 to 0x1005aa41b (155 bytes)\n// \n// 0 xrefs:\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\nbool __fastcall GameObject::shouldBlendColor(GameObject *a1, GJSpriteColor *a2, bool a3)\n{\n  int m_colorID; // ebx\n  bool m_unk353; // al\n  GameManager *v5; // rax\n  GJSpriteColor *m_baseColor; // rax\n  GameManager *v8; // rax\n\n  m_colorID = a2->m_colorID;\n  if ( !a2->m_colorID )\n    m_colorID = a2->m_defaultColorID;\n  m_unk353 = a1->m_unk353;\n  if ( a1->m_editorEnabled )\n  {\n    if ( m_unk353 )\n      m_colorID = 0;\n    v5 = GameManager::sharedState();\n    return LevelEditorLayer::shouldBlend(v5->m_levelEditorLayer, m_colorID);\n  }\n  else\n  {\n    if ( m_unk353 )\n      return 0;\n    while ( m_colorID == 1012 )\n    {\n      m_baseColor = a1->m_baseColor;\n      m_colorID = m_baseColor->m_colorID;\n      if ( !m_baseColor->m_colorID )\n        m_colorID = m_baseColor->m_defaultColorID;\n    }\n    if ( (unsigned int)(m_colorID - 1005) < 3 )\n      return 1;\n    if ( !m_colorID )\n      return 0;\n    v8 = GameManager::sharedState();\n    return PlayLayer::shouldBlend(v8->m_playLayer, m_colorID);\n  }\n}", "assembly": "; \n; GameObject::shouldBlendColor from 0x1005aa380 to 0x1005aa41b (155 bytes)\n; \n; 0 xrefs:\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, 0x1005aa380\nmov     rbp, rsp                                                       ; +0x1, 0x1005aa381\npush    rbx                                                            ; +0x4, 0x1005aa384\npush    rax                                                            ; +0x5, 0x1005aa385\nmov     ebx, [rsi]                                                     ; +0x6, 0x1005aa386\ntest    ebx, ebx                                                       ; +0x8, 0x1005aa388\njnz     short loc_1005AA38F                                            ; +0xa, 0x1005aa38a\nmov     ebx, [rsi+4]                                                   ; +0xc, 0x1005aa38c\nmovzx   eax, byte ptr [rdi+363h]                                       ; +0xf, 0x1005aa38f\ncmp     byte ptr [rdi+289h], 0                                         ; +0x16, 0x1005aa396\njz      short loc_1005AA3BF                                            ; +0x1d, 0x1005aa39d\nxor     ecx, ecx                                                       ; +0x1f, 0x1005aa39f\ntest    al, al                                                         ; +0x21, 0x1005aa3a1\ncmovnz  ebx, ecx                                                       ; +0x23, 0x1005aa3a3\ncall    GameManager__sharedState                                       ; +0x26, 0x1005aa3a6\nmov     rdi, [rax+200h]                                                ; +0x2b, 0x1005aa3ab\nmov     esi, ebx                                                       ; +0x32, 0x1005aa3b2\nadd     rsp, 8                                                         ; +0x34, 0x1005aa3b4\npop     rbx                                                            ; +0x38, 0x1005aa3b8\npop     rbp                                                            ; +0x39, 0x1005aa3b9\njmp     LevelEditorLayer__shouldBlend                                  ; +0x3a, 0x1005aa3ba\ntest    al, al                                                         ; +0x3f, 0x1005aa3bf\njz      short loc_1005AA3D0                                            ; +0x41, 0x1005aa3c1\nxor     eax, eax                                                       ; +0x43, 0x1005aa3c3\nadd     rsp, 8                                                         ; +0x45, 0x1005aa3c5\npop     rbx                                                            ; +0x49, 0x1005aa3c9\npop     rbp                                                            ; +0x4a, 0x1005aa3ca\nretn                                                                   ; +0x4b, 0x1005aa3cb\nalign 10h                                                              ; +0x4c, 0x1005aa3cc\ncmp     ebx, 3F4h                                                      ; +0x50, 0x1005aa3d0\njnz     short loc_1005AA3EA                                            ; +0x56, 0x1005aa3d6\nmov     rax, [rdi+448h]                                                ; +0x58, 0x1005aa3d8\nmov     ebx, [rax]                                                     ; +0x5f, 0x1005aa3df\ntest    ebx, ebx                                                       ; +0x61, 0x1005aa3e1\njnz     short loc_1005AA3D0                                            ; +0x63, 0x1005aa3e3\nmov     ebx, [rax+4]                                                   ; +0x65, 0x1005aa3e5\njmp     short loc_1005AA3D0                                            ; +0x68, 0x1005aa3e8\nlea     eax, [rbx-3EDh]                                                ; +0x6a, 0x1005aa3ea\ncmp     eax, 3                                                         ; +0x70, 0x1005aa3f0\njnb     short loc_1005AA3FE                                            ; +0x73, 0x1005aa3f3\nmov     al, 1                                                          ; +0x75, 0x1005aa3f5\nadd     rsp, 8                                                         ; +0x77, 0x1005aa3f7\npop     rbx                                                            ; +0x7b, 0x1005aa3fb\npop     rbp                                                            ; +0x7c, 0x1005aa3fc\nretn                                                                   ; +0x7d, 0x1005aa3fd\ntest    ebx, ebx                                                       ; +0x7e, 0x1005aa3fe\njz      short loc_1005AA3C3                                            ; +0x80, 0x1005aa400\ncall    GameManager__sharedState                                       ; +0x82, 0x1005aa402\nmov     rdi, [rax+1F8h]                                                ; +0x87, 0x1005aa407\nmov     esi, ebx                                                       ; +0x8e, 0x1005aa40e\nadd     rsp, 8                                                         ; +0x90, 0x1005aa410\npop     rbx                                                            ; +0x94, 0x1005aa414\npop     rbp                                                            ; +0x95, 0x1005aa415\njmp     PlayLayer__shouldBlend                                         ; +0x96, 0x1005aa416", "xrefs": [], "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"}