{"type": "func", "start": 5371672272, "end": 5371672343, "name": "LevelEditorLayer::shouldBlend", "pseudocode": "// \n// LevelEditorLayer::shouldBlend from 0x1402d36d0 to 0x1402d3717 (71 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x1402db981\n// > LevelEditorLayer::updateEditorMode @ 0x1402dbb11\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 LevelEditorLayer::shouldBlend(LevelEditorLayer *a1, int a2)\n{\n  std::_Simple_types<unsigned int>::value_type v3; // eax\n\n  if ( a2 < 0 )\n    a2 = 0;\n  if ( a2 > 1101 )\n    a2 = 1101;\n  if ( !a1->m_previewMode )\n    return 0;\n  v3 = a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst[(unsigned __int64)a2 >> 5];\n  return _bittest((const int *)&v3, a2 & 0x1F);\n}", "assembly": "; \n; LevelEditorLayer::shouldBlend from 0x1402d36d0 to 0x1402d3717 (71 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x1402db981\n; > LevelEditorLayer::updateEditorMode @ 0x1402dbb11\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\nmov     rax, rcx                                                       ; +0x0, 0x1402d36d0\nxor     ecx, ecx                                                       ; +0x3, 0x1402d36d3\ntest    edx, edx                                                       ; +0x5, 0x1402d36d5\ncmovs   edx, ecx                                                       ; +0x7, 0x1402d36d7\nmov     ecx, 44Dh                                                      ; +0xa, 0x1402d36da\ncmp     edx, ecx                                                       ; +0xf, 0x1402d36df\ncmovg   edx, ecx                                                       ; +0x11, 0x1402d36e1\ncmp     byte ptr [rax+38D1h], 0                                        ; +0x14, 0x1402d36e4\njnz     short loc_1402D36F0                                            ; +0x1b, 0x1402d36eb\nxor     al, al                                                         ; +0x1d, 0x1402d36ed\nretn                                                                   ; +0x1f, 0x1402d36ef\nmov     rax, [rax+3A10h]                                               ; +0x20, 0x1402d36f0\nmovsxd  r8, edx                                                        ; +0x27, 0x1402d36f7\nmov     rcx, r8                                                        ; +0x2a, 0x1402d36fa\nshr     rcx, 5                                                         ; +0x2d, 0x1402d36fd\nlea     rdx, [rax+rcx*4]                                               ; +0x31, 0x1402d3701\nmovzx   eax, r8b                                                       ; +0x35, 0x1402d3705\nand     al, 1Fh                                                        ; +0x39, 0x1402d3709\nmovzx   ecx, al                                                        ; +0x3b, 0x1402d370b\nmov     eax, [rdx]                                                     ; +0x3e, 0x1402d370e\nbt      eax, ecx                                                       ; +0x40, 0x1402d3710\nsetb    al                                                             ; +0x43, 0x1402d3713\nretn                                                                   ; +0x46, 0x1402d3716", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x1402db981", "LevelEditorLayer::updateEditorMode @ 0x1402dbb11"], "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"}