{"type": "func", "start": 6443008224, "end": 6443008323, "name": "cocos2d::ccGLBlendResetToCache", "pseudocode": "// \n// cocos2d::ccGLBlendResetToCache from 0x1800880e0 to 0x180088143 (99 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5898\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::ccGLBlendResetToCache(cocos2d *this)\n{\n  GLenum v1; // edi\n  GLenum v2; // ebx\n\n  _glewBlendEquation(32774);\n  v1 = dword_1801A2FE8;\n  v2 = dword_1801A2FEC;\n  if ( dword_1801A2FE8 != 1 || dword_1801A2FEC )\n  {\n    glEnable(0xBE2u);\n    glBlendFunc(v1, v2);\n  }\n  else\n  {\n    glDisable(0xBE2u);\n  }\n}", "assembly": "; \n; cocos2d::ccGLBlendResetToCache from 0x1800880e0 to 0x180088143 (99 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5898\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, 0x1800880e0\npush    rdi                                                            ; +0x5, 0x1800880e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800880e6\nmov     rax, cs:__glewBlendEquation                                    ; +0xa, 0x1800880ea\nmov     ecx, 8006h                                                     ; +0x11, 0x1800880f1\ncall    qword ptr [rax]                                                ; +0x16, 0x1800880f6\nmov     edi, cs:dword_1801A2FE8                                        ; +0x18, 0x1800880f8\nmov     ebx, cs:dword_1801A2FEC                                        ; +0x1e, 0x1800880fe\ncmp     edi, 1                                                         ; +0x24, 0x180088104\njnz     short loc_180088123                                            ; +0x27, 0x180088107\ntest    ebx, ebx                                                       ; +0x29, 0x180088109\njnz     short loc_180088123                                            ; +0x2b, 0x18008810b\nmov     ecx, 0BE2h                                                     ; +0x2d, 0x18008810d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x32, 0x180088112\nadd     rsp, 20h                                                       ; +0x37, 0x180088117\npop     rdi                                                            ; +0x3b, 0x18008811b\njmp     cs:glDisable                                                   ; +0x3c, 0x18008811c\nmov     ecx, 0BE2h; cap                                                ; +0x43, 0x180088123\ncall    cs:glEnable                                                    ; +0x48, 0x180088128\nmov     edx, ebx                                                       ; +0x4e, 0x18008812e\nmov     ecx, edi                                                       ; +0x50, 0x180088130\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180088132\nadd     rsp, 20h                                                       ; +0x57, 0x180088137\npop     rdi                                                            ; +0x5b, 0x18008813b\njmp     cs:glBlendFunc                                                 ; +0x5c, 0x18008813c", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b5898"], "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"}