{"type": "func", "start": 5371717296, "end": 5371717602, "name": "LevelEditorLayer::updateBlendValues", "pseudocode": "// \n// LevelEditorLayer::updateBlendValues from 0x1402de6b0 to 0x1402de7e2 (306 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x1402dcdb0\n// > LevelEditorLayer::onPlaytest @ 0x1402dfe9c\n// > <???> @ 0x1406d341c\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\nvoid LevelEditorLayer::updateBlendValues(LevelEditorLayer *a1)\n{\n  __int64 v2; // r8\n  std::_Simple_types<ColorAction *>::value_type v3; // r10\n  std::_Vector_val<std::_Simple_types<unsigned int>>::pointer Myfirst; // rdi\n  char v5; // r9\n  unsigned __int64 v6; // rbx\n  std::_Simple_types<unsigned int>::value_type v7; // eax\n  int v8; // eax\n  std::_Vector_val<std::_Simple_types<unsigned int>>::pointer v9; // rcx\n  int v10; // eax\n\n  v2 = 0;\n  do\n  {\n    v3 = a1->m_effectManager->m_colorActionVector._Mypair._Myval2._Myfirst[v2];\n    if ( v3 )\n      LOBYTE(v3) = v3->m_blending;\n    Myfirst = a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst;\n    v5 = v2 & 0x1F;\n    v6 = (unsigned __int64)(unsigned int)v2 >> 5;\n    v7 = Myfirst[v6];\n    if ( (_BYTE)v3 == (((1 << (v2 & 0x1F)) & v7) != 0) )\n    {\n      v9 = a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst;\n      v10 = v9[v6] & ~(1 << v5);\n    }\n    else\n    {\n      if ( (_BYTE)v3 )\n        v8 = v7 | (1 << v5);\n      else\n        v8 = v7 & ~(1 << v5);\n      Myfirst[v6] = v8;\n      v9 = a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst;\n      v10 = v9[v6] | (1 << v5);\n    }\n    v2 = (unsigned int)(v2 + 1);\n    v9[v6] = v10;\n  }\n  while ( (int)v2 <= 1101 );\n  a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst[31] |= 0x2000u;\n  a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst[31] &= ~0x2000u;\n  a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst[31] |= 0x4000u;\n  a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst[31] &= ~0x4000u;\n  a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst[31] |= 0x8000u;\n  a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst[31] &= ~0x8000u;\n  *a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst &= ~1u;\n  *a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst &= ~1u;\n}", "assembly": "; \n; LevelEditorLayer::updateBlendValues from 0x1402de6b0 to 0x1402de7e2 (306 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x1402dcdb0\n; > LevelEditorLayer::onPlaytest @ 0x1402dfe9c\n; > <???> @ 0x1406d341c\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     [rsp+arg_0], rbx                                               ; +0x0, 0x1402de6b0\nmov     [rsp+arg_8], rdi                                               ; +0x5, 0x1402de6b5\nmov     r11, rcx                                                       ; +0xa, 0x1402de6ba\nxor     r8d, r8d                                                       ; +0xd, 0x1402de6bd\nmov     rax, [r11+950h]                                                ; +0x10, 0x1402de6c0\nmov     rcx, [rax+2E0h]                                                ; +0x17, 0x1402de6c7\nmov     r10, [rcx+r8*8]                                                ; +0x1e, 0x1402de6ce\ntest    r10, r10                                                       ; +0x22, 0x1402de6d2\njz      short loc_1402DE6DC                                            ; +0x25, 0x1402de6d5\nmovzx   r10d, byte ptr [r10+54h]                                       ; +0x27, 0x1402de6d7\nmov     rdi, [r11+3A10h]                                               ; +0x2c, 0x1402de6dc\nmov     edx, 1                                                         ; +0x33, 0x1402de6e3\nmov     r9d, r8d                                                       ; +0x38, 0x1402de6e8\nand     r9d, 1Fh                                                       ; +0x3b, 0x1402de6eb\nmov     eax, r8d                                                       ; +0x3f, 0x1402de6ef\nshr     rax, 5                                                         ; +0x42, 0x1402de6f2\nmov     ecx, r9d                                                       ; +0x46, 0x1402de6f6\nshl     edx, cl                                                        ; +0x49, 0x1402de6f9\nlea     rbx, ds:0[rax*4]                                               ; +0x4b, 0x1402de6fb\nmov     eax, [rdi+rax*4]                                               ; +0x53, 0x1402de703\ntest    eax, edx                                                       ; +0x56, 0x1402de706\nsetnz   cl                                                             ; +0x58, 0x1402de708\ncmp     r10b, cl                                                       ; +0x5b, 0x1402de70b\njz      short loc_1402DE732                                            ; +0x5e, 0x1402de70e\ntest    r10b, r10b                                                     ; +0x60, 0x1402de710\njz      short loc_1402DE71B                                            ; +0x63, 0x1402de713\nbts     eax, r9d                                                       ; +0x65, 0x1402de715\njmp     short loc_1402DE71F                                            ; +0x69, 0x1402de719\nbtr     eax, r9d                                                       ; +0x6b, 0x1402de71b\nmov     [rdi+rbx], eax                                                 ; +0x6f, 0x1402de71f\nmov     rcx, [r11+3A30h]                                               ; +0x72, 0x1402de722\nmov     eax, [rcx+rbx]                                                 ; +0x79, 0x1402de729\nbts     eax, r9d                                                       ; +0x7c, 0x1402de72c\njmp     short loc_1402DE740                                            ; +0x80, 0x1402de730\nmov     rcx, [r11+3A30h]                                               ; +0x82, 0x1402de732\nmov     eax, [rcx+rbx]                                                 ; +0x89, 0x1402de739\nbtr     eax, r9d                                                       ; +0x8c, 0x1402de73c\ninc     r8d                                                            ; +0x90, 0x1402de740\nmov     [rcx+rbx], eax                                                 ; +0x93, 0x1402de743\ncmp     r8d, 44Dh                                                      ; +0x96, 0x1402de746\njle     loc_1402DE6C0                                                  ; +0x9d, 0x1402de74d\nmov     rcx, [r11+3A10h]                                               ; +0xa3, 0x1402de753\nmov     rbx, [rsp+arg_0]                                               ; +0xaa, 0x1402de75a\nmov     rdi, [rsp+arg_8]                                               ; +0xaf, 0x1402de75f\nmov     eax, [rcx+7Ch]                                                 ; +0xb4, 0x1402de764\nbts     eax, 0Dh                                                       ; +0xb7, 0x1402de767\nmov     [rcx+7Ch], eax                                                 ; +0xbb, 0x1402de76b\nmov     rcx, [r11+3A30h]                                               ; +0xbe, 0x1402de76e\nmov     eax, [rcx+7Ch]                                                 ; +0xc5, 0x1402de775\nbtr     eax, 0Dh                                                       ; +0xc8, 0x1402de778\nmov     [rcx+7Ch], eax                                                 ; +0xcc, 0x1402de77c\nmov     rcx, [r11+3A10h]                                               ; +0xcf, 0x1402de77f\nmov     eax, [rcx+7Ch]                                                 ; +0xd6, 0x1402de786\nbts     eax, 0Eh                                                       ; +0xd9, 0x1402de789\nmov     [rcx+7Ch], eax                                                 ; +0xdd, 0x1402de78d\nmov     rcx, [r11+3A30h]                                               ; +0xe0, 0x1402de790\nmov     eax, [rcx+7Ch]                                                 ; +0xe7, 0x1402de797\nbtr     eax, 0Eh                                                       ; +0xea, 0x1402de79a\nmov     [rcx+7Ch], eax                                                 ; +0xee, 0x1402de79e\nmov     rcx, [r11+3A10h]                                               ; +0xf1, 0x1402de7a1\nmov     eax, [rcx+7Ch]                                                 ; +0xf8, 0x1402de7a8\nbts     eax, 0Fh                                                       ; +0xfb, 0x1402de7ab\nmov     [rcx+7Ch], eax                                                 ; +0xff, 0x1402de7af\nmov     rcx, [r11+3A30h]                                               ; +0x102, 0x1402de7b2\nmov     eax, [rcx+7Ch]                                                 ; +0x109, 0x1402de7b9\nbtr     eax, 0Fh                                                       ; +0x10c, 0x1402de7bc\nmov     [rcx+7Ch], eax                                                 ; +0x110, 0x1402de7c0\nmov     rcx, [r11+3A10h]                                               ; +0x113, 0x1402de7c3\nmov     eax, [rcx]                                                     ; +0x11a, 0x1402de7ca\nbtr     eax, 0                                                         ; +0x11c, 0x1402de7cc\nmov     [rcx], eax                                                     ; +0x120, 0x1402de7d0\nmov     rcx, [r11+3A30h]                                               ; +0x122, 0x1402de7d2\nmov     eax, [rcx]                                                     ; +0x129, 0x1402de7d9\nbtr     eax, 0                                                         ; +0x12b, 0x1402de7db\nmov     [rcx], eax                                                     ; +0x12f, 0x1402de7df\nretn                                                                   ; +0x131, 0x1402de7e1", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x1402dcdb0", "LevelEditorLayer::onPlaytest @ 0x1402dfe9c", "<???> @ 0x1406d341c"], "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"}