{"type": "func", "start": 6442591952, "end": 6442592139, "name": "cocos2d::CCGrid3D::blit", "pseudocode": "// \n// cocos2d::CCGrid3D::blit from 0x1800226d0 to 0x18002278b (187 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e7278\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aef74\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::CCGrid3D::blit(cocos2d::CCGrid3D *this, unsigned int a2)\n{\n  int v3; // ebx\n\n  v3 = (int)(float)(this->m_sGridSize.height * this->m_sGridSize.width);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)5, a2);\n  cocos2d::CCGLProgram::use(this->m_pShaderProgram);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(this->m_pShaderProgram);\n  _glewVertexAttribPointer(0, 3, 5126);\n  _glewVertexAttribPointer(2, 2, 5126);\n  glDrawElements(4u, 6 * v3, 0x1403u, *((const GLvoid **)this + 18));\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::CCGrid3D::blit from 0x1800226d0 to 0x18002278b (187 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e7278\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aef74\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, 0x1800226d0\npush    rdi                                                            ; +0x5, 0x1800226d5\nsub     rsp, 30h                                                       ; +0x6, 0x1800226d6\nmovss   xmm0, dword ptr [rcx+44h]                                      ; +0xa, 0x1800226da\nmov     rdi, rcx                                                       ; +0xf, 0x1800226df\nmulss   xmm0, dword ptr [rcx+40h]                                      ; +0x12, 0x1800226e2\nmov     ecx, 5; this                                                   ; +0x17, 0x1800226e7\ncvttss2si ebx, xmm0                                                    ; +0x1c, 0x1800226ec\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x20, 0x1800226f0\nmov     rcx, [rdi+68h]; this                                           ; +0x25, 0x1800226f5\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x29, 0x1800226f9\nmov     rcx, [rdi+68h]; this                                           ; +0x2e, 0x1800226fe\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x32, 0x180022702\nmov     rax, [rdi+80h]                                                 ; +0x37, 0x180022707\nxor     r9d, r9d                                                       ; +0x3e, 0x18002270e\nmov     [rsp+38h+var_10], rax                                          ; +0x41, 0x180022711\nxor     ecx, ecx                                                       ; +0x46, 0x180022716\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x48, 0x180022718\nmov     r8d, 1406h                                                     ; +0x4f, 0x18002271f\nmov     [rsp+38h+var_18], 0                                            ; +0x55, 0x180022725\nlea     edx, [r9+3]                                                    ; +0x5d, 0x18002272d\ncall    qword ptr [rax]                                                ; +0x61, 0x180022731\nmov     rax, [rdi+78h]                                                 ; +0x63, 0x180022733\nmov     edx, 2                                                         ; +0x67, 0x180022737\nmov     [rsp+38h+var_10], rax                                          ; +0x6c, 0x18002273c\nxor     r9d, r9d                                                       ; +0x71, 0x180022741\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x74, 0x180022744\nmov     ecx, edx                                                       ; +0x7b, 0x18002274b\nmov     r8d, 1406h                                                     ; +0x7d, 0x18002274d\nmov     [rsp+38h+var_18], 0                                            ; +0x83, 0x180022753\ncall    qword ptr [rax]                                                ; +0x8b, 0x18002275b\nmov     r9, [rdi+90h]; indices                                         ; +0x8d, 0x18002275d\nlea     edx, [rbx+rbx*2]                                               ; +0x94, 0x180022764\nadd     edx, edx; count                                                ; +0x97, 0x180022767\nmov     ecx, 4; mode                                                   ; +0x99, 0x180022769\nmov     r8d, 1403h; type                                               ; +0x9e, 0x18002276e\ncall    cs:glDrawElements                                              ; +0xa4, 0x180022774\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xaa, 0x18002277a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb0, 0x180022780\nadd     rsp, 30h                                                       ; +0xb5, 0x180022785\npop     rdi                                                            ; +0xb9, 0x180022789\nretn                                                                   ; +0xba, 0x18002278a", "xrefs": ["<???> @ 0x1800e7278", "<???> @ 0x1801438a8", "<???> @ 0x1801aef74"], "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"}