{"type": "func", "start": 6442500080, "end": 6442500529, "name": "sub_18000BFF0", "pseudocode": "// \n// sub_18000BFF0 from 0x18000bff0 to 0x18000c1b1 (449 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180029520\n// > <???> @ 0x18004bc18\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:15:38 +0000\n// \n\n__int64 __fastcall sub_18000BFF0(__int64 a1)\n{\n  __int64 v1; // rbx\n  cocos2d::CCGLProgram *v2; // rax\n  cocos2d::CCGLProgram *v3; // rax\n  unsigned int v4; // edx\n  unsigned int v5; // r8d\n  cocos2d::CCGLProgram *v6; // rax\n  __int64 v7; // rax\n  unsigned int v8; // eax\n  unsigned int v9; // r8d\n  unsigned int v10; // eax\n  unsigned int v11; // r8d\n  __int64 v12; // r9\n\n  v1 = a1;\n  cocos2d::ccGLEnable(*(unsigned int *)(a1 + 248));\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 648LL))(v1);\n  v2 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 648LL))(v1);\n  cocos2d::CCGLProgram::use(v2);\n  v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 648LL))(v1);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(v3);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)7, v4);\n  cocos2d::ccGLBlendFunc((cocos2d *)0x302, 0x303u, v5);\n  v6 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 648LL))(v1);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(v6);\n  _glewActiveTexture(33984);\n  v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v1 + 344) + 16LL))(v1 + 344);\n  v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 96LL))(v7);\n  cocos2d::ccGLBindTexture2DN(nullptr, v8, v9);\n  _glewUniform1i(*(unsigned int *)(v1 + 632), 0);\n  _glewActiveTexture(33985);\n  v10 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 624) + 96LL))(*(_QWORD *)(v1 + 624));\n  cocos2d::ccGLBindTexture2DN((cocos2d *)1, v10, v11);\n  _glewUniform1i(*(unsigned int *)(v1 + 636), 1);\n  v1 += 460;\n  _glewVertexAttribPointer(0, 3, 5126, 0, 24, v1);\n  _glewVertexAttribPointer(2, 2, 5126, 0, 24, v1 + 16);\n  LOBYTE(v12) = 1;\n  _glewVertexAttribPointer(1, 4, 5121, v12, 24, v1 + 12);\n  glDrawArrays(5u, 0, 4);\n  return _glewActiveTexture(33984);\n}", "assembly": "; \n; sub_18000BFF0 from 0x18000bff0 to 0x18000c1b1 (449 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180029520\n; > <???> @ 0x18004bc18\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:15:38 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000bff0\nsub     rsp, 30h                                                       ; +0x2, 0x18000bff2\nmov     rbx, rcx                                                       ; +0x6, 0x18000bff6\nmov     ecx, [rcx+0F8h]                                                ; +0x9, 0x18000bff9\ncall    cs:?ccGLEnable@cocos2d@@YAXW4ccGLServerState@1@@Z; cocos2d::ccGLEnable(cocos2d::ccGLServerState) ; +0xf, 0x18000bfff\nmov     rax, [rbx]                                                     ; +0x15, 0x18000c005\nmov     rcx, rbx                                                       ; +0x18, 0x18000c008\ncall    qword ptr [rax+288h]                                           ; +0x1b, 0x18000c00b\nmov     rax, [rbx]                                                     ; +0x21, 0x18000c011\nmov     rcx, rbx                                                       ; +0x24, 0x18000c014\ncall    qword ptr [rax+288h]                                           ; +0x27, 0x18000c017\nmov     rcx, rax                                                       ; +0x2d, 0x18000c01d\ncall    cs:?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x30, 0x18000c020\nmov     rax, [rbx]                                                     ; +0x36, 0x18000c026\nmov     rcx, rbx                                                       ; +0x39, 0x18000c029\ncall    qword ptr [rax+288h]                                           ; +0x3c, 0x18000c02c\nmov     rcx, rax                                                       ; +0x42, 0x18000c032\ncall    cs:?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x45, 0x18000c035\nmov     ecx, 7                                                         ; +0x4b, 0x18000c03b\ncall    cs:?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x50, 0x18000c040\nmov     edx, 303h                                                      ; +0x56, 0x18000c046\nmov     ecx, 302h                                                      ; +0x5b, 0x18000c04b\ncall    cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x60, 0x18000c050\nmov     rax, [rbx]                                                     ; +0x66, 0x18000c056\nmov     rcx, rbx                                                       ; +0x69, 0x18000c059\ncall    qword ptr [rax+288h]                                           ; +0x6c, 0x18000c05c\nmov     rcx, rax                                                       ; +0x72, 0x18000c062\ncall    cs:?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x75, 0x18000c065\nmov     rax, cs:__glewActiveTexture                                    ; +0x7b, 0x18000c06b\nmov     ecx, 84C0h                                                     ; +0x82, 0x18000c072\nmov     rdx, [rax]                                                     ; +0x87, 0x18000c077\ncall    rdx                                                            ; +0x8a, 0x18000c07a\nlea     rcx, [rbx+158h]                                                ; +0x8c, 0x18000c07c\nmov     rax, [rcx]                                                     ; +0x93, 0x18000c083\ncall    qword ptr [rax+10h]                                            ; +0x96, 0x18000c086\nmov     rcx, [rax]                                                     ; +0x99, 0x18000c089\nmov     rdx, [rcx+60h]                                                 ; +0x9c, 0x18000c08c\nmov     rcx, rax                                                       ; +0xa0, 0x18000c090\ncall    rdx                                                            ; +0xa3, 0x18000c093\nmov     edx, eax                                                       ; +0xa5, 0x18000c095\nxor     ecx, ecx                                                       ; +0xa7, 0x18000c097\ncall    cs:?ccGLBindTexture2DN@cocos2d@@YAXII@Z; cocos2d::ccGLBindTexture2DN(uint,uint) ; +0xa9, 0x18000c099\nmov     rax, cs:__glewUniform1i                                        ; +0xaf, 0x18000c09f\nxor     edx, edx                                                       ; +0xb6, 0x18000c0a6\nmov     ecx, [rbx+278h]                                                ; +0xb8, 0x18000c0a8\nmov     r8, [rax]                                                      ; +0xbe, 0x18000c0ae\ncall    r8                                                             ; +0xc1, 0x18000c0b1\nmov     rax, cs:__glewActiveTexture                                    ; +0xc4, 0x18000c0b4\nmov     ecx, 84C1h                                                     ; +0xcb, 0x18000c0bb\nmov     rdx, [rax]                                                     ; +0xd0, 0x18000c0c0\ncall    rdx                                                            ; +0xd3, 0x18000c0c3\nmov     rcx, [rbx+270h]                                                ; +0xd5, 0x18000c0c5\nmov     rax, [rcx]                                                     ; +0xdc, 0x18000c0cc\ncall    qword ptr [rax+60h]                                            ; +0xdf, 0x18000c0cf\nmov     edx, eax                                                       ; +0xe2, 0x18000c0d2\nmov     ecx, 1                                                         ; +0xe4, 0x18000c0d4\ncall    cs:?ccGLBindTexture2DN@cocos2d@@YAXII@Z; cocos2d::ccGLBindTexture2DN(uint,uint) ; +0xe9, 0x18000c0d9\nmov     rax, cs:__glewUniform1i                                        ; +0xef, 0x18000c0df\nmov     edx, 1                                                         ; +0xf6, 0x18000c0e6\nmov     ecx, [rbx+27Ch]                                                ; +0xfb, 0x18000c0eb\nmov     r8, [rax]                                                      ; +0x101, 0x18000c0f1\ncall    r8                                                             ; +0x104, 0x18000c0f4\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x107, 0x18000c0f7\nadd     rbx, 1CCh                                                      ; +0x10e, 0x18000c0fe\nmov     [rsp+38h+var_10], rbx                                          ; +0x115, 0x18000c105\nxor     r9d, r9d                                                       ; +0x11a, 0x18000c10a\nmov     edx, 3                                                         ; +0x11d, 0x18000c10d\nmov     [rsp+38h+var_18], 18h                                          ; +0x122, 0x18000c112\nxor     ecx, ecx                                                       ; +0x12a, 0x18000c11a\nmov     r8d, 1406h                                                     ; +0x12c, 0x18000c11c\nmov     r10, [rax]                                                     ; +0x132, 0x18000c122\ncall    r10                                                            ; +0x135, 0x18000c125\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x138, 0x18000c128\nlea     rcx, [rbx+10h]                                                 ; +0x13f, 0x18000c12f\nmov     [rsp+38h+var_10], rcx                                          ; +0x143, 0x18000c133\nmov     edx, 2                                                         ; +0x148, 0x18000c138\nxor     r9d, r9d                                                       ; +0x14d, 0x18000c13d\nmov     [rsp+38h+var_18], 18h                                          ; +0x150, 0x18000c140\nmov     ecx, edx                                                       ; +0x158, 0x18000c148\nmov     r8d, 1406h                                                     ; +0x15a, 0x18000c14a\nmov     r10, [rax]                                                     ; +0x160, 0x18000c150\ncall    r10                                                            ; +0x163, 0x18000c153\nlea     rdx, [rbx+0Ch]                                                 ; +0x166, 0x18000c156\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x16a, 0x18000c15a\nmov     r9b, 1                                                         ; +0x171, 0x18000c161\nmov     [rsp+38h+var_10], rdx                                          ; +0x174, 0x18000c164\nmov     ecx, 1                                                         ; +0x179, 0x18000c169\nmov     edx, 4                                                         ; +0x17e, 0x18000c16e\nmov     [rsp+38h+var_18], 18h                                          ; +0x183, 0x18000c173\nmov     r8d, 1401h                                                     ; +0x18b, 0x18000c17b\nmov     r10, [rax]                                                     ; +0x191, 0x18000c181\ncall    r10                                                            ; +0x194, 0x18000c184\nxor     edx, edx; first                                                ; +0x197, 0x18000c187\nmov     ecx, 5; mode                                                   ; +0x199, 0x18000c189\nmov     r8d, 4; count                                                  ; +0x19e, 0x18000c18e\ncall    cs:glDrawArrays                                                ; +0x1a4, 0x18000c194\nmov     rax, cs:__glewActiveTexture                                    ; +0x1aa, 0x18000c19a\nmov     ecx, 84C0h                                                     ; +0x1b1, 0x18000c1a1\nmov     rdx, [rax]                                                     ; +0x1b6, 0x18000c1a6\nadd     rsp, 30h                                                       ; +0x1b9, 0x18000c1a9\npop     rbx                                                            ; +0x1bd, 0x18000c1ad\njmp     rdx                                                            ; +0x1be, 0x18000c1ae", "xrefs": ["<???> @ 0x180029520", "<???> @ 0x18004bc18"], "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"}