{"type": "func", "start": 6442590032, "end": 6442590101, "name": "sub_180021F50", "pseudocode": "// \n// sub_180021F50 from 0x180021f50 to 0x180021f95 (69 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCGridBase::initWithSize @ 0x18002367d\n// > <???> @ 0x1801aeeb4\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// Hidden C++ exception states: #wind=1\n__int64 __fastcall sub_180021F50(__int64 a1)\n{\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)a1);\n  *(_QWORD *)a1 = &cocos2d::CCGrabber::`vftable';\n  *(_DWORD *)(a1 + 56) = 0;\n  *(_DWORD *)(a1 + 60) = 0;\n  *(_OWORD *)(a1 + 64) = 0;\n  _glewGenFramebuffers(1);\n  return a1;\n}", "assembly": "; \n; sub_180021F50 from 0x180021f50 to 0x180021f95 (69 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCGridBase::initWithSize @ 0x18002367d\n; > <???> @ 0x1801aeeb4\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], rcx                                               ; +0x0, 0x180021f50\npush    rbx                                                            ; +0x5, 0x180021f55\nsub     rsp, 20h                                                       ; +0x6, 0x180021f56\nmov     rbx, rcx                                                       ; +0xa, 0x180021f5a\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0xd, 0x180021f5d\nnop                                                                    ; +0x12, 0x180021f62\nlea     rax, ??_7CCGrabber@cocos2d@@6B@; const cocos2d::CCGrabber::`vftable' ; +0x13, 0x180021f63\nmov     [rbx], rax                                                     ; +0x1a, 0x180021f6a\nlea     rdx, [rbx+38h]                                                 ; +0x1d, 0x180021f6d\nxor     eax, eax                                                       ; +0x21, 0x180021f71\nmov     [rdx], eax                                                     ; +0x23, 0x180021f73\nmov     [rbx+3Ch], eax                                                 ; +0x25, 0x180021f75\nxorps   xmm0, xmm0                                                     ; +0x28, 0x180021f78\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x2b, 0x180021f7b\nlea     ecx, [rax+1]                                                   ; +0x2f, 0x180021f7f\nmov     rax, cs:__glewGenFramebuffers                                  ; +0x32, 0x180021f82\ncall    qword ptr [rax]                                                ; +0x39, 0x180021f89\nnop                                                                    ; +0x3b, 0x180021f8b\nmov     rax, rbx                                                       ; +0x3c, 0x180021f8c\nadd     rsp, 20h                                                       ; +0x3f, 0x180021f8f\npop     rbx                                                            ; +0x43, 0x180021f93\nretn                                                                   ; +0x44, 0x180021f94", "xrefs": ["cocos2d::CCGridBase::initWithSize @ 0x18002367d", "<???> @ 0x1801aeeb4"], "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"}