{"type": "func", "start": 6442948032, "end": 6442948347, "name": "cocos2d::CCEGLView::createWithFullScreen", "pseudocode": "// \n// cocos2d::CCEGLView::createWithFullScreen from 0x1800795c0 to 0x1800796fb (315 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bebc0\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::createWithFullScreen(\n        __int64 a1,\n        char a2,\n        char a3,\n        __int64 a4,\n        __int64 a5)\n{\n  cocos2d::CCEGLView *v8; // rax\n  cocos2d::CCEGLView *v9; // rbx\n  cocos2d::CCEGLView *v11; // [rsp+30h] [rbp-18h] BYREF\n\n  v8 = (cocos2d::CCEGLView *)sub_1800E4AC0(0xF0u);\n  v11 = v8;\n  if ( v8 )\n    v9 = cocos2d::CCEGLView::CCEGLView(v8);\n  else\n    v9 = nullptr;\n  if ( !v9 )\n    return nullptr;\n  *((_QWORD *)v9 + 26) = a5;\n  if ( !a5 )\n    return nullptr;\n  *((_BYTE *)v9 + 232) = 1;\n  *((_BYTE *)v9 + 233) = a2;\n  *((_BYTE *)v9 + 234) = a3;\n  sub_1800DCA30(135183, *(unsigned int *)(a4 + 20));\n  sub_1800DCA30(135169, *(unsigned int *)(a4 + 8));\n  sub_1800DCA30(135171, *(unsigned int *)(a4 + 16));\n  sub_1800DCA30(135170, *(unsigned int *)(a4 + 12));\n  if ( *((_BYTE *)v9 + 233) )\n  {\n    sub_1800DCA30(131077, 0);\n    *((_QWORD *)v9 + 26) = 0;\n  }\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v11, 0.0, 0.0, (float)*(int *)a4, (float)*(int *)(a4 + 4));\n  if ( !(unsigned __int8)cocos2d::CCEGLView::initWithRect(v9) )\n    return nullptr;\n  cocos2d::CCObject::autorelease((cocos2d::CCEGLView *)((char *)v9 + 120));\n  return v9;\n}", "assembly": "; \n; cocos2d::CCEGLView::createWithFullScreen from 0x1800795c0 to 0x1800796fb (315 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bebc0\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, 0x1800795c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800795c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800795ca\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800795cf\npush    r14                                                            ; +0x14, 0x1800795d4\nsub     rsp, 40h                                                       ; +0x16, 0x1800795d6\nmov     rdi, r9                                                        ; +0x1a, 0x1800795da\nmovzx   esi, r8b                                                       ; +0x1d, 0x1800795dd\nmovzx   ebp, dl                                                        ; +0x21, 0x1800795e1\nmov     r14, rcx                                                       ; +0x24, 0x1800795e4\nmov     ecx, 0F0h; Size                                                ; +0x27, 0x1800795e7\ncall    sub_1800E4AC0                                                  ; +0x2c, 0x1800795ec\nmov     [rsp+48h+var_18], rax                                          ; +0x31, 0x1800795f1\ntest    rax, rax                                                       ; +0x36, 0x1800795f6\njz      short loc_180079608                                            ; +0x39, 0x1800795f9\nmov     rcx, rax; this                                                 ; +0x3b, 0x1800795fb\ncall    ??0CCEGLView@cocos2d@@IEAA@XZ; cocos2d::CCEGLView::CCEGLView(void) ; +0x3e, 0x1800795fe\nmov     rbx, rax                                                       ; +0x43, 0x180079603\njmp     short loc_18007960A                                            ; +0x46, 0x180079606\nxor     ebx, ebx                                                       ; +0x48, 0x180079608\ntest    rbx, rbx                                                       ; +0x4a, 0x18007960a\njz      loc_1800796DE                                                  ; +0x4d, 0x18007960d\nmov     rax, [rsp+48h+arg_20]                                          ; +0x53, 0x180079613\nmov     [rbx+0D0h], rax                                                ; +0x58, 0x180079618\ntest    rax, rax                                                       ; +0x5f, 0x18007961f\njz      loc_1800796DE                                                  ; +0x62, 0x180079622\nmov     byte ptr [rbx+0E8h], 1                                         ; +0x68, 0x180079628\nmov     [rbx+0E9h], bpl                                                ; +0x6f, 0x18007962f\nmov     [rbx+0EAh], sil                                                ; +0x76, 0x180079636\nmov     edx, [rdi+14h]                                                 ; +0x7d, 0x18007963d\nmov     ecx, 2100Fh                                                    ; +0x80, 0x180079640\ncall    sub_1800DCA30                                                  ; +0x85, 0x180079645\nmov     edx, [rdi+8]                                                   ; +0x8a, 0x18007964a\nmov     ecx, 21001h                                                    ; +0x8d, 0x18007964d\ncall    sub_1800DCA30                                                  ; +0x92, 0x180079652\nmov     edx, [rdi+10h]                                                 ; +0x97, 0x180079657\nmov     ecx, 21003h                                                    ; +0x9a, 0x18007965a\ncall    sub_1800DCA30                                                  ; +0x9f, 0x18007965f\nmov     edx, [rdi+0Ch]                                                 ; +0xa4, 0x180079664\nmov     ecx, 21002h                                                    ; +0xa7, 0x180079667\ncall    sub_1800DCA30                                                  ; +0xac, 0x18007966c\ncmp     byte ptr [rbx+0E9h], 0                                         ; +0xb1, 0x180079671\njz      short loc_180079691                                            ; +0xb8, 0x180079678\nxor     edx, edx                                                       ; +0xba, 0x18007967a\nmov     ecx, 20005h                                                    ; +0xbc, 0x18007967c\ncall    sub_1800DCA30                                                  ; +0xc1, 0x180079681\nmov     qword ptr [rbx+0D0h], 0                                        ; +0xc6, 0x180079686\nmovd    xmm0, dword ptr [rdi+4]                                        ; +0xd1, 0x180079691\ncvtdq2ps xmm0, xmm0                                                    ; +0xd6, 0x180079696\nmovd    xmm3, dword ptr [rdi]                                          ; +0xd9, 0x180079699\ncvtdq2ps xmm3, xmm3; float                                             ; +0xdd, 0x18007969d\nmovss   [rsp+48h+var_28], xmm0; float                                  ; +0xe0, 0x1800796a0\nxorps   xmm2, xmm2; float                                              ; +0xe6, 0x1800796a6\nxorps   xmm1, xmm1; float                                              ; +0xe9, 0x1800796a9\nlea     rcx, [rsp+48h+var_18]; this                                    ; +0xec, 0x1800796ac\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xf1, 0x1800796b1\nmov     r8, rax                                                        ; +0xf6, 0x1800796b6\nmovss   xmm3, cs:flt_1800EC208                                         ; +0xf9, 0x1800796b9\nmov     rdx, r14                                                       ; +0x101, 0x1800796c1\nmov     rcx, rbx; this                                                 ; +0x104, 0x1800796c4\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) ; +0x107, 0x1800796c7\ntest    al, al                                                         ; +0x10c, 0x1800796cc\njz      short loc_1800796DE                                            ; +0x10e, 0x1800796ce\nlea     rcx, [rbx+78h]; this                                           ; +0x110, 0x1800796d0\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x114, 0x1800796d4\nmov     rax, rbx                                                       ; +0x119, 0x1800796d9\njmp     short loc_1800796E0                                            ; +0x11c, 0x1800796dc\nxor     eax, eax                                                       ; +0x11e, 0x1800796de\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x120, 0x1800796e0\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x125, 0x1800796e5\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x12a, 0x1800796ea\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x12f, 0x1800796ef\nadd     rsp, 40h                                                       ; +0x134, 0x1800796f4\npop     r14                                                            ; +0x138, 0x1800796f8\nretn                                                                   ; +0x13a, 0x1800796fa", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bebc0"], "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"}