{"type": "func", "start": 6442592144, "end": 6442592331, "name": "cocos2d::CCTiledGrid3D::blit", "pseudocode": "// \n// cocos2d::CCTiledGrid3D::blit from 0x180022790 to 0x18002284b (187 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e72e0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aef80\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 __fastcall cocos2d::CCTiledGrid3D::blit(cocos2d::CCTiledGrid3D *this)\n{\n  int v2; // ebx\n  unsigned int v3; // edx\n\n  v2 = (int)(float)(this->m_sGridSize.height * this->m_sGridSize.width);\n  cocos2d::CCGLProgram::use(this->m_pShaderProgram);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(this->m_pShaderProgram);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)5, v3);\n  _glewVertexAttribPointer(0, 3, 5126);\n  _glewVertexAttribPointer(2, 2, 5126);\n  glDrawElements(4u, 6 * v2, 0x1403u, *((const GLvoid **)this + 18));\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::CCTiledGrid3D::blit from 0x180022790 to 0x18002284b (187 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e72e0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aef80\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, 0x180022790\npush    rdi                                                            ; +0x5, 0x180022795\nsub     rsp, 30h                                                       ; +0x6, 0x180022796\nmovss   xmm0, dword ptr [rcx+44h]                                      ; +0xa, 0x18002279a\nmov     rdi, rcx                                                       ; +0xf, 0x18002279f\nmulss   xmm0, dword ptr [rcx+40h]                                      ; +0x12, 0x1800227a2\nmov     rcx, [rcx+68h]; this                                           ; +0x17, 0x1800227a7\ncvttss2si ebx, xmm0                                                    ; +0x1b, 0x1800227ab\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x1f, 0x1800227af\nmov     rcx, [rdi+68h]; this                                           ; +0x24, 0x1800227b4\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x28, 0x1800227b8\nmov     ecx, 5; this                                                   ; +0x2d, 0x1800227bd\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x32, 0x1800227c2\nmov     rax, [rdi+80h]                                                 ; +0x37, 0x1800227c7\nxor     r9d, r9d                                                       ; +0x3e, 0x1800227ce\nmov     [rsp+38h+var_10], rax                                          ; +0x41, 0x1800227d1\nxor     ecx, ecx                                                       ; +0x46, 0x1800227d6\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x48, 0x1800227d8\nmov     r8d, 1406h                                                     ; +0x4f, 0x1800227df\nmov     [rsp+38h+var_18], 0                                            ; +0x55, 0x1800227e5\nlea     edx, [r9+3]                                                    ; +0x5d, 0x1800227ed\ncall    qword ptr [rax]                                                ; +0x61, 0x1800227f1\nmov     rax, [rdi+78h]                                                 ; +0x63, 0x1800227f3\nmov     edx, 2                                                         ; +0x67, 0x1800227f7\nmov     [rsp+38h+var_10], rax                                          ; +0x6c, 0x1800227fc\nxor     r9d, r9d                                                       ; +0x71, 0x180022801\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x74, 0x180022804\nmov     ecx, edx                                                       ; +0x7b, 0x18002280b\nmov     r8d, 1406h                                                     ; +0x7d, 0x18002280d\nmov     [rsp+38h+var_18], 0                                            ; +0x83, 0x180022813\ncall    qword ptr [rax]                                                ; +0x8b, 0x18002281b\nmov     r9, [rdi+90h]; indices                                         ; +0x8d, 0x18002281d\nlea     edx, [rbx+rbx*2]                                               ; +0x94, 0x180022824\nadd     edx, edx; count                                                ; +0x97, 0x180022827\nmov     ecx, 4; mode                                                   ; +0x99, 0x180022829\nmov     r8d, 1403h; type                                               ; +0x9e, 0x18002282e\ncall    cs:glDrawElements                                              ; +0xa4, 0x180022834\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xaa, 0x18002283a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb0, 0x180022840\nadd     rsp, 30h                                                       ; +0xb5, 0x180022845\npop     rdi                                                            ; +0xb9, 0x180022849\nretn                                                                   ; +0xba, 0x18002284a", "xrefs": ["<???> @ 0x1800e72e0", "<???> @ 0x1801438a8", "<???> @ 0x1801aef80"], "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"}