{"type": "func", "start": 6442593488, "end": 6442593684, "name": "cocos2d::CCTiledGrid3D::blit", "pseudocode": "// \n// cocos2d::CCTiledGrid3D::blit from 0x180022cd0 to 0x180022d94 (196 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ed340\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9064\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 11:21:28 +0000\n// \n\nvoid __fastcall cocos2d::CCTiledGrid3D::blit(cocos2d::CCTiledGrid3D *this)\n{\n  int v2; // ebx\n  unsigned int v3; // edx\n\n  v2 = (int)(float)(*((float *)this + 17) * *((float *)this + 16));\n  cocos2d::CCGLProgram::use(*((cocos2d::CCGLProgram **)this + 13));\n  cocos2d::CCGLProgram::setUniformsForBuiltins(*((cocos2d::CCGLProgram **)this + 13));\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)5, v3);\n  _glewVertexAttribPointer(0, 3, 5126, 0, 0, *((_QWORD *)this + 16));\n  _glewVertexAttribPointer(2, 2, 5126, 0, 0, *((_QWORD *)this + 15));\n  glDrawElements(4u, 6 * v2, 0x1403u, *((const GLvoid **)this + 18));\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::CCTiledGrid3D::blit from 0x180022cd0 to 0x180022d94 (196 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ed340\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9064\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 11:21:28 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180022cd0\npush    rdi                                                            ; +0x5, 0x180022cd5\nsub     rsp, 30h                                                       ; +0x6, 0x180022cd6\nmovss   xmm0, dword ptr [rcx+44h]                                      ; +0xa, 0x180022cda\nmov     rdi, rcx                                                       ; +0xf, 0x180022cdf\nmulss   xmm0, dword ptr [rcx+40h]                                      ; +0x12, 0x180022ce2\nmov     rcx, [rcx+68h]; this                                           ; +0x17, 0x180022ce7\ncvttss2si ebx, xmm0                                                    ; +0x1b, 0x180022ceb\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x1f, 0x180022cef\nmov     rcx, [rdi+68h]; this                                           ; +0x24, 0x180022cf4\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x28, 0x180022cf8\nmov     ecx, 5; this                                                   ; +0x2d, 0x180022cfd\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x32, 0x180022d02\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x37, 0x180022d07\nxor     r9d, r9d                                                       ; +0x3e, 0x180022d0e\nmov     edx, 3                                                         ; +0x41, 0x180022d11\nxor     ecx, ecx                                                       ; +0x46, 0x180022d16\nmov     r8d, 1406h                                                     ; +0x48, 0x180022d18\nmov     r10, [rax]                                                     ; +0x4e, 0x180022d1e\nmov     rax, [rdi+80h]                                                 ; +0x51, 0x180022d21\nmov     [rsp+38h+var_10], rax                                          ; +0x58, 0x180022d28\nmov     [rsp+38h+var_18], 0                                            ; +0x5d, 0x180022d2d\ncall    r10                                                            ; +0x65, 0x180022d35\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x68, 0x180022d38\nmov     edx, 2                                                         ; +0x6f, 0x180022d3f\nxor     r9d, r9d                                                       ; +0x74, 0x180022d44\nmov     ecx, edx                                                       ; +0x77, 0x180022d47\nmov     r8d, 1406h                                                     ; +0x79, 0x180022d49\nmov     r10, [rax]                                                     ; +0x7f, 0x180022d4f\nmov     rax, [rdi+78h]                                                 ; +0x82, 0x180022d52\nmov     [rsp+38h+var_10], rax                                          ; +0x86, 0x180022d56\nmov     [rsp+38h+var_18], 0                                            ; +0x8b, 0x180022d5b\ncall    r10                                                            ; +0x93, 0x180022d63\nmov     r9, [rdi+90h]; indices                                         ; +0x96, 0x180022d66\nlea     edx, [rbx+rbx*2]                                               ; +0x9d, 0x180022d6d\nadd     edx, edx; count                                                ; +0xa0, 0x180022d70\nmov     ecx, 4; mode                                                   ; +0xa2, 0x180022d72\nmov     r8d, 1403h; type                                               ; +0xa7, 0x180022d77\ncall    cs:glDrawElements                                              ; +0xad, 0x180022d7d\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xb3, 0x180022d83\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb9, 0x180022d89\nadd     rsp, 30h                                                       ; +0xbe, 0x180022d8e\npop     rdi                                                            ; +0xc2, 0x180022d92\nretn                                                                   ; +0xc3, 0x180022d93", "xrefs": ["<???> @ 0x1800ed340", "<???> @ 0x18014cf68", "<???> @ 0x1801b9064"], "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"}