{"type": "func", "start": 6442590368, "end": 6442590511, "name": "sub_1800220A0", "pseudocode": "// \n// sub_1800220A0 from 0x1800220a0 to 0x18002212f (143 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCGridBase::initWithSize @ 0x180023695\n// > <???> @ 0x1801aeee4\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\n__int64 __fastcall sub_1800220A0(__int64 a1, __int64 a2)\n{\n  unsigned int v4; // eax\n\n  glGetIntegerv(0x8CA6u, (GLint *)(a1 + 60));\n  _glewBindFramebuffer(36160, *(unsigned int *)(a1 + 56));\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 96LL))(a2);\n  _glewFramebufferTexture2D(36160, 36064, 3553, v4, 0);\n  _glewCheckFramebufferStatus(36160);\n  return _glewBindFramebuffer(36160, *(unsigned int *)(a1 + 60));\n}", "assembly": "; \n; sub_1800220A0 from 0x1800220a0 to 0x18002212f (143 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCGridBase::initWithSize @ 0x180023695\n; > <???> @ 0x1801aeee4\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, 0x1800220a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800220a5\npush    rdi                                                            ; +0xa, 0x1800220aa\nsub     rsp, 30h                                                       ; +0xb, 0x1800220ab\nmov     rdi, rdx                                                       ; +0xf, 0x1800220af\nmov     rbx, rcx                                                       ; +0x12, 0x1800220b2\nlea     rdx, [rcx+3Ch]; params                                         ; +0x15, 0x1800220b5\nmov     ecx, 8CA6h; pname                                              ; +0x19, 0x1800220b9\ncall    cs:glGetIntegerv                                               ; +0x1e, 0x1800220be\nmov     rax, cs:__glewBindFramebuffer                                  ; +0x24, 0x1800220c4\nmov     ecx, 8D40h                                                     ; +0x2b, 0x1800220cb\nmov     edx, [rbx+38h]                                                 ; +0x30, 0x1800220d0\ncall    qword ptr [rax]                                                ; +0x33, 0x1800220d3\nmov     rax, [rdi]                                                     ; +0x35, 0x1800220d5\nmov     rcx, rdi                                                       ; +0x38, 0x1800220d8\ncall    qword ptr [rax+60h]                                            ; +0x3b, 0x1800220db\nmov     edx, 8CE0h                                                     ; +0x3e, 0x1800220de\nmov     [rsp+38h+var_18], 0                                            ; +0x43, 0x1800220e3\nmov     r9d, eax                                                       ; +0x4b, 0x1800220eb\nmov     r8d, 0DE1h                                                     ; +0x4e, 0x1800220ee\nmov     rax, cs:__glewFramebufferTexture2D                             ; +0x54, 0x1800220f4\nlea     ecx, [rdx+60h]                                                 ; +0x5b, 0x1800220fb\ncall    qword ptr [rax]                                                ; +0x5e, 0x1800220fe\nmov     rax, cs:__glewCheckFramebufferStatus                           ; +0x60, 0x180022100\nmov     ecx, 8D40h                                                     ; +0x67, 0x180022107\ncall    qword ptr [rax]                                                ; +0x6c, 0x18002210c\nmov     rax, cs:__glewBindFramebuffer                                  ; +0x6e, 0x18002210e\nmov     ecx, 8D40h                                                     ; +0x75, 0x180022115\nmov     edx, [rbx+3Ch]                                                 ; +0x7a, 0x18002211a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7d, 0x18002211d\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x82, 0x180022122\nadd     rsp, 30h                                                       ; +0x87, 0x180022127\npop     rdi                                                            ; +0x8b, 0x18002212b\njmp     qword ptr [rax]                                                ; +0x8c, 0x18002212c", "xrefs": ["cocos2d::CCGridBase::initWithSize @ 0x180023695", "<???> @ 0x1801aeee4"], "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"}