{"type": "func", "start": 6442936896, "end": 6442937036, "name": "cocos2d::CCEGLView::createWithRect", "pseudocode": "// \n// cocos2d::CCEGLView::createWithRect from 0x180076a40 to 0x180076acc (140 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b48c0\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\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  cocos2d::CCRect v6; // [rsp+20h] [rbp-28h] BYREF\n\n  v3 = (cocos2d::CCEGLView *)operator new(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(&v6, a2);\n  if ( !(unsigned __int8)cocos2d::CCEGLView::initWithRect(v4) )\n    return nullptr;\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)&v4->m_idk1);\n  return v4;\n}", "assembly": "; \n; cocos2d::CCEGLView::createWithRect from 0x180076a40 to 0x180076acc (140 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b48c0\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, 0x180076a40\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180076a45\npush    rdi                                                            ; +0xa, 0x180076a4a\nsub     rsp, 40h                                                       ; +0xb, 0x180076a4b\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xf, 0x180076a4f\nmovaps  xmm6, xmm2                                                     ; +0x14, 0x180076a54\nmov     rdi, rdx                                                       ; +0x17, 0x180076a57\nmov     rsi, rcx                                                       ; +0x1a, 0x180076a5a\nmov     ecx, 0F0h; Size                                                ; +0x1d, 0x180076a5d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x180076a62\nmov     [rsp+48h+arg_18], rax                                          ; +0x27, 0x180076a67\ntest    rax, rax                                                       ; +0x2c, 0x180076a6c\njz      short loc_180076A7E                                            ; +0x2f, 0x180076a6f\nmov     rcx, rax; this                                                 ; +0x31, 0x180076a71\ncall    ??0CCEGLView@cocos2d@@IEAA@XZ; cocos2d::CCEGLView::CCEGLView(void) ; +0x34, 0x180076a74\nmov     rbx, rax                                                       ; +0x39, 0x180076a79\njmp     short loc_180076A80                                            ; +0x3c, 0x180076a7c\nxor     ebx, ebx                                                       ; +0x3e, 0x180076a7e\ntest    rbx, rbx                                                       ; +0x40, 0x180076a80\njz      short loc_180076AB5                                            ; +0x43, 0x180076a83\nmov     rdx, rdi; struct cocos2d::CCRect *                             ; +0x45, 0x180076a85\nlea     rcx, [rsp+48h+var_28]; this                                    ; +0x48, 0x180076a88\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x4d, 0x180076a8d\nmov     r8, rax                                                        ; +0x52, 0x180076a92\nmovaps  xmm3, xmm6                                                     ; +0x55, 0x180076a95\nmov     rdx, rsi                                                       ; +0x58, 0x180076a98\nmov     rcx, rbx; this                                                 ; +0x5b, 0x180076a9b\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, 0x180076a9e\ntest    al, al                                                         ; +0x63, 0x180076aa3\njz      short loc_180076AB5                                            ; +0x65, 0x180076aa5\nlea     rcx, [rbx+78h]; this                                           ; +0x67, 0x180076aa7\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6b, 0x180076aab\nmov     rax, rbx                                                       ; +0x70, 0x180076ab0\njmp     short loc_180076AB7                                            ; +0x73, 0x180076ab3\nxor     eax, eax                                                       ; +0x75, 0x180076ab5\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x77, 0x180076ab7\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x7c, 0x180076abc\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x81, 0x180076ac1\nadd     rsp, 40h                                                       ; +0x86, 0x180076ac6\npop     rdi                                                            ; +0x8a, 0x180076aca\nretn                                                                   ; +0x8b, 0x180076acb", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b48c0"], "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"}