{"type": "func", "start": 6443141936, "end": 6443142257, "name": "cocos2d::CCTexture2D::drawInRect", "pseudocode": "// \n// cocos2d::CCTexture2D::drawInRect from 0x1800a8b30 to 0x1800a8c71 (321 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1e90\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:22:16 +0000\n// \n\nvoid __fastcall cocos2d::CCTexture2D::drawInRect(cocos2d::CCTexture2D *this, const struct cocos2d::CCRect *a2)\n{\n  int v2; // xmm1_4\n  float v4; // xmm2_4\n  float v5; // xmm1_4\n  float v6; // xmm0_4\n  float v7; // xmm0_4\n  float v8; // xmm2_4\n  unsigned int v9; // edx\n  _DWORD v10[8]; // [rsp+30h] [rbp-58h] BYREF\n  _DWORD v11[2]; // [rsp+50h] [rbp-38h] BYREF\n  int v12; // [rsp+58h] [rbp-30h]\n  int v13; // [rsp+5Ch] [rbp-2Ch]\n  __int64 v14; // [rsp+60h] [rbp-28h]\n  int v15; // [rsp+68h] [rbp-20h]\n  int v16; // [rsp+6Ch] [rbp-1Ch]\n\n  v2 = *((_DWORD *)this + 20);\n  v4 = *((float *)a2 + 1);\n  v12 = *((_DWORD *)this + 19);\n  v15 = v12;\n  v11[1] = v2;\n  v13 = v2;\n  v5 = *(float *)a2;\n  v6 = *(float *)a2;\n  *(float *)&v10[1] = v4;\n  v7 = v6 + *((float *)a2 + 2);\n  *(float *)&v10[3] = v4;\n  v8 = v4 + *((float *)a2 + 3);\n  *(float *)v10 = v5;\n  *(float *)&v10[4] = v5;\n  *(float *)&v10[2] = v7;\n  *(float *)&v10[6] = v7;\n  *(float *)&v10[5] = v8;\n  *(float *)&v10[7] = v8;\n  v11[0] = 0;\n  v14 = 0;\n  v16 = 0;\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)5);\n  cocos2d::CCGLProgram::use(*((cocos2d::CCGLProgram **)this + 12), v9);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(*((cocos2d::CCGLProgram **)this + 12));\n  cocos2d::ccGLBindTexture2D((cocos2d *)*((unsigned int *)this + 18));\n  _glewVertexAttribPointer(0, 2, 5126, 0, 0, v10);\n  _glewVertexAttribPointer(2, 2, 5126, 0, 0, v11);\n  glDrawArrays(5u, 0, 4);\n}", "assembly": "; \n; cocos2d::CCTexture2D::drawInRect from 0x1800a8b30 to 0x1800a8c71 (321 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1e90\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:22:16 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800a8b30\nsub     rsp, 80h                                                       ; +0x2, 0x1800a8b32\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x1800a8b39\nxor     rax, rsp                                                       ; +0x10, 0x1800a8b40\nmov     [rsp+88h+var_18], rax                                          ; +0x13, 0x1800a8b43\nmovss   xmm1, dword ptr [rcx+50h]                                      ; +0x18, 0x1800a8b48\nmov     rbx, rcx                                                       ; +0x1d, 0x1800a8b4d\nmovss   xmm0, dword ptr [rcx+4Ch]                                      ; +0x20, 0x1800a8b50\nmov     ecx, 5; this                                                   ; +0x25, 0x1800a8b55\nmovss   xmm2, dword ptr [rdx+4]                                        ; +0x2a, 0x1800a8b5a\nmovss   [rsp+88h+var_30], xmm0                                         ; +0x2f, 0x1800a8b5f\nmovss   [rsp+88h+var_20], xmm0                                         ; +0x35, 0x1800a8b65\nmovss   [rsp+88h+var_34], xmm1                                         ; +0x3b, 0x1800a8b6b\nmovss   [rsp+88h+var_2C], xmm1                                         ; +0x41, 0x1800a8b71\nmovss   xmm1, dword ptr [rdx]                                          ; +0x47, 0x1800a8b77\nmovaps  xmm0, xmm1                                                     ; +0x4b, 0x1800a8b7b\nmovss   [rsp+88h+var_54], xmm2                                         ; +0x4e, 0x1800a8b7e\naddss   xmm0, dword ptr [rdx+8]                                        ; +0x54, 0x1800a8b84\nmovss   [rsp+88h+var_4C], xmm2                                         ; +0x59, 0x1800a8b89\naddss   xmm2, dword ptr [rdx+0Ch]                                      ; +0x5f, 0x1800a8b8f\nmovss   [rsp+88h+var_58], xmm1                                         ; +0x64, 0x1800a8b94\nmovss   [rsp+88h+var_48], xmm1                                         ; +0x6a, 0x1800a8b9a\nmovss   [rsp+88h+var_50], xmm0                                         ; +0x70, 0x1800a8ba0\nmovss   [rsp+88h+var_40], xmm0                                         ; +0x76, 0x1800a8ba6\nmovss   [rsp+88h+var_44], xmm2                                         ; +0x7c, 0x1800a8bac\nmovss   [rsp+88h+var_3C], xmm2                                         ; +0x82, 0x1800a8bb2\nmov     [rsp+88h+var_38], 0                                            ; +0x88, 0x1800a8bb8\nmov     [rsp+88h+var_28], 0                                            ; +0x90, 0x1800a8bc0\nmov     [rsp+88h+var_1C], 0                                            ; +0x99, 0x1800a8bc9\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0xa1, 0x1800a8bd1\nmov     rcx, [rbx+60h]; this                                           ; +0xa6, 0x1800a8bd6\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0xaa, 0x1800a8bda\nmov     rcx, [rbx+60h]; this                                           ; +0xaf, 0x1800a8bdf\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0xb3, 0x1800a8be3\nmov     ecx, [rbx+48h]; this                                           ; +0xb8, 0x1800a8be8\ncall    ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0xbb, 0x1800a8beb\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xc0, 0x1800a8bf0\nxor     ebx, ebx                                                       ; +0xc7, 0x1800a8bf7\nxor     r9d, r9d                                                       ; +0xc9, 0x1800a8bf9\nmov     edx, 2                                                         ; +0xcc, 0x1800a8bfc\nxor     ecx, ecx                                                       ; +0xd1, 0x1800a8c01\nmov     r8d, 1406h                                                     ; +0xd3, 0x1800a8c03\nmov     r10, [rax]                                                     ; +0xd9, 0x1800a8c09\nlea     rax, [rsp+88h+var_58]                                          ; +0xdc, 0x1800a8c0c\nmov     [rsp+88h+var_60], rax                                          ; +0xe1, 0x1800a8c11\nmov     [rsp+88h+var_68], ebx                                          ; +0xe6, 0x1800a8c16\ncall    r10                                                            ; +0xea, 0x1800a8c1a\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xed, 0x1800a8c1d\nmov     edx, 2                                                         ; +0xf4, 0x1800a8c24\nxor     r9d, r9d                                                       ; +0xf9, 0x1800a8c29\nmov     ecx, edx                                                       ; +0xfc, 0x1800a8c2c\nmov     r8d, 1406h                                                     ; +0xfe, 0x1800a8c2e\nmov     r10, [rax]                                                     ; +0x104, 0x1800a8c34\nlea     rax, [rsp+88h+var_38]                                          ; +0x107, 0x1800a8c37\nmov     [rsp+88h+var_60], rax                                          ; +0x10c, 0x1800a8c3c\nmov     [rsp+88h+var_68], ebx                                          ; +0x111, 0x1800a8c41\ncall    r10                                                            ; +0x115, 0x1800a8c45\nxor     edx, edx; first                                                ; +0x118, 0x1800a8c48\nmov     ecx, 5; mode                                                   ; +0x11a, 0x1800a8c4a\nmov     r8d, 4; count                                                  ; +0x11f, 0x1800a8c4f\ncall    cs:glDrawArrays                                                ; +0x125, 0x1800a8c55\nmov     rcx, [rsp+88h+var_18]                                          ; +0x12b, 0x1800a8c5b\nxor     rcx, rsp; StackCookie                                          ; +0x130, 0x1800a8c60\ncall    __security_check_cookie                                        ; +0x133, 0x1800a8c63\nadd     rsp, 80h                                                       ; +0x138, 0x1800a8c68\npop     rbx                                                            ; +0x13f, 0x1800a8c6f\nretn                                                                   ; +0x140, 0x1800a8c70", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c1e90"], "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"}