{"type": "func", "start": 6443145712, "end": 6443145866, "name": "cocos2d::CCTexture2D::setTexParameters", "pseudocode": "// \n// cocos2d::CCTexture2D::setTexParameters from 0x1800a99f0 to 0x1800a9a8a (154 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMotionStreak::enableRepeatMode @ 0x18005eea1\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1f68\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:17 +0000\n// \n\nvoid __fastcall cocos2d::CCTexture2D::setTexParameters(cocos2d::CCTexture2D *this, struct cocos2d::_ccTexParams *a2)\n{\n  if ( *((_DWORD *)this + 16) == (unsigned int)sub_1800992B0(*((_DWORD *)this + 16)) || *((_DWORD *)a2 + 2) == 33071 )\n    sub_1800992B0(*((_DWORD *)this + 17));\n  cocos2d::ccGLBindTexture2D((cocos2d *)*((unsigned int *)this + 18));\n  glTexParameteri(0xDE1u, 0x2801u, *(_DWORD *)a2);\n  glTexParameteri(0xDE1u, 0x2800u, *((_DWORD *)a2 + 1));\n  glTexParameteri(0xDE1u, 0x2802u, *((_DWORD *)a2 + 2));\n  glTexParameteri(0xDE1u, 0x2803u, *((_DWORD *)a2 + 3));\n}", "assembly": "; \n; cocos2d::CCTexture2D::setTexParameters from 0x1800a99f0 to 0x1800a9a8a (154 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMotionStreak::enableRepeatMode @ 0x18005eea1\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1f68\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:17 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a99f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a99f5\npush    rdi                                                            ; +0xa, 0x1800a99fa\nsub     rsp, 20h                                                       ; +0xb, 0x1800a99fb\nmov     rdi, rcx                                                       ; +0xf, 0x1800a99ff\nmov     rsi, rdx                                                       ; +0x12, 0x1800a9a02\nmov     ecx, [rcx+40h]                                                 ; +0x15, 0x1800a9a05\ncall    sub_1800992B0                                                  ; +0x18, 0x1800a9a08\ncmp     [rdi+40h], eax                                                 ; +0x1d, 0x1800a9a0d\njz      short loc_1800A9A1B                                            ; +0x20, 0x1800a9a10\ncmp     dword ptr [rsi+8], 812Fh                                       ; +0x22, 0x1800a9a12\njnz     short loc_1800A9A23                                            ; +0x29, 0x1800a9a19\nmov     ecx, [rdi+44h]                                                 ; +0x2b, 0x1800a9a1b\ncall    sub_1800992B0                                                  ; +0x2e, 0x1800a9a1e\nmov     ecx, [rdi+48h]; this                                           ; +0x33, 0x1800a9a23\ncall    ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0x36, 0x1800a9a26\nmov     r8d, [rsi]; param                                              ; +0x3b, 0x1800a9a2b\nmov     edx, 2801h; pname                                              ; +0x3e, 0x1800a9a2e\nmov     ecx, 0DE1h; target                                             ; +0x43, 0x1800a9a33\ncall    cs:glTexParameteri                                             ; +0x48, 0x1800a9a38\nmov     r8d, [rsi+4]; param                                            ; +0x4e, 0x1800a9a3e\nmov     edx, 2800h; pname                                              ; +0x52, 0x1800a9a42\nmov     ecx, 0DE1h; target                                             ; +0x57, 0x1800a9a47\ncall    cs:glTexParameteri                                             ; +0x5c, 0x1800a9a4c\nmov     r8d, [rsi+8]; param                                            ; +0x62, 0x1800a9a52\nmov     edx, 2802h; pname                                              ; +0x66, 0x1800a9a56\nmov     ecx, 0DE1h; target                                             ; +0x6b, 0x1800a9a5b\ncall    cs:glTexParameteri                                             ; +0x70, 0x1800a9a60\nmov     r8d, [rsi+0Ch]                                                 ; +0x76, 0x1800a9a66\nmov     edx, 2803h                                                     ; +0x7a, 0x1800a9a6a\nmov     ecx, 0DE1h                                                     ; +0x7f, 0x1800a9a6f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x84, 0x1800a9a74\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x89, 0x1800a9a79\nadd     rsp, 20h                                                       ; +0x8e, 0x1800a9a7e\npop     rdi                                                            ; +0x92, 0x1800a9a82\njmp     cs:glTexParameteri                                             ; +0x93, 0x1800a9a83", "xrefs": ["cocos2d::CCMotionStreak::enableRepeatMode @ 0x18005eea1", "<???> @ 0x18014cf68", "<???> @ 0x1801c1f68"], "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"}