{"type": "func", "start": 6443008032, "end": 6443008097, "name": "cocos2d::ccGLBindTexture2DN", "pseudocode": "// \n// cocos2d::ccGLBindTexture2DN from 0x180088020 to 0x180088061 (65 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5880\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::ccGLBindTexture2DN(cocos2d *this, GLuint a2)\n{\n  if ( *((_DWORD *)&qword_1801A2FF0 + (unsigned int)this) != a2 )\n  {\n    *((_DWORD *)&qword_1801A2FF0 + (unsigned int)this) = a2;\n    _glewActiveTexture((unsigned int)((_DWORD)this + 33984));\n    glBindTexture(0xDE1u, a2);\n  }\n}", "assembly": "; \n; cocos2d::ccGLBindTexture2DN from 0x180088020 to 0x180088061 (65 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5880\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\npush    rbx                                                            ; +0x0, 0x180088020\nsub     rsp, 20h                                                       ; +0x2, 0x180088022\nmov     ebx, edx                                                       ; +0x6, 0x180088026\nmov     eax, ecx                                                       ; +0x8, 0x180088028\nlea     rdx, qword_1801A2FF0                                           ; +0xa, 0x18008802a\ncmp     [rdx+rax*4], ebx                                               ; +0x11, 0x180088031\njz      short loc_18008805B                                            ; +0x14, 0x180088034\nmov     [rdx+rax*4], ebx                                               ; +0x16, 0x180088036\nadd     ecx, 84C0h                                                     ; +0x19, 0x180088039\nmov     rax, cs:__glewActiveTexture                                    ; +0x1f, 0x18008803f\ncall    qword ptr [rax]                                                ; +0x26, 0x180088046\nmov     edx, ebx                                                       ; +0x28, 0x180088048\nmov     ecx, 0DE1h                                                     ; +0x2a, 0x18008804a\nadd     rsp, 20h                                                       ; +0x2f, 0x18008804f\npop     rbx                                                            ; +0x33, 0x180088053\njmp     cs:glBindTexture                                               ; +0x34, 0x180088054\nadd     rsp, 20h                                                       ; +0x3b, 0x18008805b\npop     rbx                                                            ; +0x3f, 0x18008805f\nretn                                                                   ; +0x40, 0x180088060", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b5880"], "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"}