{"type": "func", "start": 6442948352, "end": 6442948492, "name": "cocos2d::CCEGLView::createWithRect", "pseudocode": "// \n// cocos2d::CCEGLView::createWithRect from 0x180079700 to 0x18007978c (140 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bebcc\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:21:59 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCEGLView *__fastcall cocos2d::CCEGLView::createWithRect(__int64 a1, const struct cocos2d::CCRect *a2)\n{\n  cocos2d::CCEGLView *v3; // rax\n  cocos2d::CCEGLView *v4; // rbx\n  _BYTE v6[16]; // [rsp+20h] [rbp-28h] BYREF\n\n  v3 = (cocos2d::CCEGLView *)sub_1800E4AC0(0xF0u);\n  if ( v3 )\n    v4 = cocos2d::CCEGLView::CCEGLView(v3);\n  else\n    v4 = nullptr;\n  if ( !v4 )\n    return nullptr;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v6, a2);\n  if ( !(unsigned __int8)cocos2d::CCEGLView::initWithRect(v4) )\n    return nullptr;\n  cocos2d::CCObject::autorelease((cocos2d::CCEGLView *)((char *)v4 + 120));\n  return v4;\n}", "assembly": "; \n; cocos2d::CCEGLView::createWithRect from 0x180079700 to 0x18007978c (140 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bebcc\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:21:59 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180079700\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180079705\npush    rdi                                                            ; +0xa, 0x18007970a\nsub     rsp, 40h                                                       ; +0xb, 0x18007970b\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xf, 0x18007970f\nmovaps  xmm6, xmm2                                                     ; +0x14, 0x180079714\nmov     rdi, rdx                                                       ; +0x17, 0x180079717\nmov     rsi, rcx                                                       ; +0x1a, 0x18007971a\nmov     ecx, 0F0h; Size                                                ; +0x1d, 0x18007971d\ncall    sub_1800E4AC0                                                  ; +0x22, 0x180079722\nmov     [rsp+48h+arg_18], rax                                          ; +0x27, 0x180079727\ntest    rax, rax                                                       ; +0x2c, 0x18007972c\njz      short loc_18007973E                                            ; +0x2f, 0x18007972f\nmov     rcx, rax; this                                                 ; +0x31, 0x180079731\ncall    ??0CCEGLView@cocos2d@@IEAA@XZ; cocos2d::CCEGLView::CCEGLView(void) ; +0x34, 0x180079734\nmov     rbx, rax                                                       ; +0x39, 0x180079739\njmp     short loc_180079740                                            ; +0x3c, 0x18007973c\nxor     ebx, ebx                                                       ; +0x3e, 0x18007973e\ntest    rbx, rbx                                                       ; +0x40, 0x180079740\njz      short loc_180079775                                            ; +0x43, 0x180079743\nmov     rdx, rdi; struct cocos2d::CCRect *                             ; +0x45, 0x180079745\nlea     rcx, [rsp+48h+var_28]; this                                    ; +0x48, 0x180079748\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x4d, 0x18007974d\nmov     r8, rax                                                        ; +0x52, 0x180079752\nmovaps  xmm3, xmm6                                                     ; +0x55, 0x180079755\nmov     rdx, rsi                                                       ; +0x58, 0x180079758\nmov     rcx, rbx; this                                                 ; +0x5b, 0x18007975b\ncall    ?initWithRect@CCEGLView@cocos2d@@IEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VCCRect@2@M@Z; cocos2d::CCEGLView::initWithRect(std::string const &,cocos2d::CCRect,float) ; +0x5e, 0x18007975e\ntest    al, al                                                         ; +0x63, 0x180079763\njz      short loc_180079775                                            ; +0x65, 0x180079765\nlea     rcx, [rbx+78h]; this                                           ; +0x67, 0x180079767\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6b, 0x18007976b\nmov     rax, rbx                                                       ; +0x70, 0x180079770\njmp     short loc_180079777                                            ; +0x73, 0x180079773\nxor     eax, eax                                                       ; +0x75, 0x180079775\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x77, 0x180079777\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x7c, 0x18007977c\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x81, 0x180079781\nadd     rsp, 40h                                                       ; +0x86, 0x180079786\npop     rdi                                                            ; +0x8a, 0x18007978a\nretn                                                                   ; +0x8b, 0x18007978b", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bebcc"], "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"}