{"type": "func", "start": 6443020976, "end": 6443021078, "name": "cocos2d::ccGLBlendResetToCache", "pseudocode": "// \n// cocos2d::ccGLBlendResetToCache from 0x18008b2b0 to 0x18008b316 (102 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfb68\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:06 +0000\n// \n\nvoid __fastcall cocos2d::ccGLBlendResetToCache(cocos2d *this)\n{\n  GLenum v1; // edi\n  GLenum v2; // ebx\n\n  _glewBlendEquation(32774);\n  v1 = dword_1801ACFB8;\n  v2 = dword_1801ACFBC;\n  if ( dword_1801ACFB8 != 1 || dword_1801ACFBC )\n  {\n    glEnable(0xBE2u);\n    glBlendFunc(v1, v2);\n  }\n  else\n  {\n    glDisable(0xBE2u);\n  }\n}", "assembly": "; \n; cocos2d::ccGLBlendResetToCache from 0x18008b2b0 to 0x18008b316 (102 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfb68\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:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008b2b0\npush    rdi                                                            ; +0x5, 0x18008b2b5\nsub     rsp, 20h                                                       ; +0x6, 0x18008b2b6\nmov     rax, cs:__glewBlendEquation                                    ; +0xa, 0x18008b2ba\nmov     ecx, 8006h                                                     ; +0x11, 0x18008b2c1\nmov     rdx, [rax]                                                     ; +0x16, 0x18008b2c6\ncall    rdx                                                            ; +0x19, 0x18008b2c9\nmov     edi, cs:dword_1801ACFB8                                        ; +0x1b, 0x18008b2cb\nmov     ebx, cs:dword_1801ACFBC                                        ; +0x21, 0x18008b2d1\ncmp     edi, 1                                                         ; +0x27, 0x18008b2d7\njnz     short loc_18008B2F6                                            ; +0x2a, 0x18008b2da\ntest    ebx, ebx                                                       ; +0x2c, 0x18008b2dc\njnz     short loc_18008B2F6                                            ; +0x2e, 0x18008b2de\nmov     ecx, 0BE2h                                                     ; +0x30, 0x18008b2e0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x35, 0x18008b2e5\nadd     rsp, 20h                                                       ; +0x3a, 0x18008b2ea\npop     rdi                                                            ; +0x3e, 0x18008b2ee\njmp     cs:glDisable                                                   ; +0x3f, 0x18008b2ef\nmov     ecx, 0BE2h; cap                                                ; +0x46, 0x18008b2f6\ncall    cs:glEnable                                                    ; +0x4b, 0x18008b2fb\nmov     edx, ebx                                                       ; +0x51, 0x18008b301\nmov     ecx, edi                                                       ; +0x53, 0x18008b303\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x55, 0x18008b305\nadd     rsp, 20h                                                       ; +0x5a, 0x18008b30a\npop     rdi                                                            ; +0x5e, 0x18008b30e\njmp     cs:glBlendFunc                                                 ; +0x5f, 0x18008b30f", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bfb68"], "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"}