{"type": "func", "start": 6443127200, "end": 6443127262, "name": "cocos2d::CCTexture2D::generateMipmap", "pseudocode": "// \n// cocos2d::CCTexture2D::generateMipmap from 0x1800a51a0 to 0x1800a51de (62 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7be4\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::CCTexture2D::generateMipmap(cocos2d::CCTexture2D *this)\n{\n  if ( this->m_uPixelsWide == (unsigned int)sub_180095970(this->m_uPixelsWide) )\n    sub_180095970(this->m_uPixelsHigh);\n  cocos2d::ccGLBindTexture2D((cocos2d *)this->m_uName);\n  _glewGenerateMipmap(3553);\n  this->m_bHasMipmaps = 1;\n}", "assembly": "; \n; cocos2d::CCTexture2D::generateMipmap from 0x1800a51a0 to 0x1800a51de (62 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7be4\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, 0x1800a51a0\nsub     rsp, 20h                                                       ; +0x2, 0x1800a51a2\nmov     rbx, rcx                                                       ; +0x6, 0x1800a51a6\nmov     ecx, [rcx+40h]                                                 ; +0x9, 0x1800a51a9\ncall    sub_180095970                                                  ; +0xc, 0x1800a51ac\ncmp     [rbx+40h], eax                                                 ; +0x11, 0x1800a51b1\njnz     short loc_1800A51BE                                            ; +0x14, 0x1800a51b4\nmov     ecx, [rbx+44h]                                                 ; +0x16, 0x1800a51b6\ncall    sub_180095970                                                  ; +0x19, 0x1800a51b9\nmov     ecx, [rbx+48h]; this                                           ; +0x1e, 0x1800a51be\ncall    ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0x21, 0x1800a51c1\nmov     rax, cs:__glewGenerateMipmap                                   ; +0x26, 0x1800a51c6\nmov     ecx, 0DE1h                                                     ; +0x2d, 0x1800a51cd\ncall    qword ptr [rax]                                                ; +0x32, 0x1800a51d2\nmov     byte ptr [rbx+5Dh], 1                                          ; +0x34, 0x1800a51d4\nadd     rsp, 20h                                                       ; +0x38, 0x1800a51d8\npop     rbx                                                            ; +0x3c, 0x1800a51dc\nretn                                                                   ; +0x3d, 0x1800a51dd", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b7be4"], "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"}