{"type": "func", "start": 6442936576, "end": 6442936891, "name": "cocos2d::CCEGLView::createWithFullScreen", "pseudocode": "// \n// cocos2d::CCEGLView::createWithFullScreen from 0x180076900 to 0x180076a3b (315 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b48b4\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::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::CCRect v11; // [rsp+30h] [rbp-18h] BYREF\n\n  v8 = (cocos2d::CCEGLView *)operator new(0xF0u);\n  v11.origin = (cocos2d::CCPoint)v8;\n  if ( v8 )\n    v9 = cocos2d::CCEGLView::CCEGLView(v8);\n  else\n    v9 = nullptr;\n  if ( !v9 )\n    return nullptr;\n  *(_QWORD *)&v9[1].m_szViewName[32] = a5;\n  if ( !a5 )\n    return nullptr;\n  LOBYTE(v9[1].m_fScaleY) = 1;\n  BYTE1(v9[1].m_fScaleY) = a2;\n  BYTE2(v9[1].m_fScaleY) = a3;\n  sub_1800D4D00(135183, *(unsigned int *)(a4 + 20));\n  sub_1800D4D00(135169, *(unsigned int *)(a4 + 8));\n  sub_1800D4D00(135171, *(unsigned int *)(a4 + 16));\n  sub_1800D4D00(135170, *(unsigned int *)(a4 + 12));\n  if ( BYTE1(v9[1].m_fScaleY) )\n  {\n    sub_1800D4D00(131077, 0);\n    *(_QWORD *)&v9[1].m_szViewName[32] = 0;\n  }\n  cocos2d::CCRect::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::CCObject *)&v9->m_idk1);\n  return v9;\n}", "assembly": "; \n; cocos2d::CCEGLView::createWithFullScreen from 0x180076900 to 0x180076a3b (315 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b48b4\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, 0x180076900\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180076905\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18007690a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18007690f\npush    r14                                                            ; +0x14, 0x180076914\nsub     rsp, 40h                                                       ; +0x16, 0x180076916\nmov     rdi, r9                                                        ; +0x1a, 0x18007691a\nmovzx   esi, r8b                                                       ; +0x1d, 0x18007691d\nmovzx   ebp, dl                                                        ; +0x21, 0x180076921\nmov     r14, rcx                                                       ; +0x24, 0x180076924\nmov     ecx, 0F0h; Size                                                ; +0x27, 0x180076927\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2c, 0x18007692c\nmov     qword ptr [rsp+48h+var_18.origin.x], rax                       ; +0x31, 0x180076931\ntest    rax, rax                                                       ; +0x36, 0x180076936\njz      short loc_180076948                                            ; +0x39, 0x180076939\nmov     rcx, rax; this                                                 ; +0x3b, 0x18007693b\ncall    ??0CCEGLView@cocos2d@@IEAA@XZ; cocos2d::CCEGLView::CCEGLView(void) ; +0x3e, 0x18007693e\nmov     rbx, rax                                                       ; +0x43, 0x180076943\njmp     short loc_18007694A                                            ; +0x46, 0x180076946\nxor     ebx, ebx                                                       ; +0x48, 0x180076948\ntest    rbx, rbx                                                       ; +0x4a, 0x18007694a\njz      loc_180076A1E                                                  ; +0x4d, 0x18007694d\nmov     rax, [rsp+48h+arg_20]                                          ; +0x53, 0x180076953\nmov     [rbx+0D0h], rax                                                ; +0x58, 0x180076958\ntest    rax, rax                                                       ; +0x5f, 0x18007695f\njz      loc_180076A1E                                                  ; +0x62, 0x180076962\nmov     byte ptr [rbx+0E8h], 1                                         ; +0x68, 0x180076968\nmov     [rbx+0E9h], bpl                                                ; +0x6f, 0x18007696f\nmov     [rbx+0EAh], sil                                                ; +0x76, 0x180076976\nmov     edx, [rdi+14h]                                                 ; +0x7d, 0x18007697d\nmov     ecx, 2100Fh                                                    ; +0x80, 0x180076980\ncall    sub_1800D4D00                                                  ; +0x85, 0x180076985\nmov     edx, [rdi+8]                                                   ; +0x8a, 0x18007698a\nmov     ecx, 21001h                                                    ; +0x8d, 0x18007698d\ncall    sub_1800D4D00                                                  ; +0x92, 0x180076992\nmov     edx, [rdi+10h]                                                 ; +0x97, 0x180076997\nmov     ecx, 21003h                                                    ; +0x9a, 0x18007699a\ncall    sub_1800D4D00                                                  ; +0x9f, 0x18007699f\nmov     edx, [rdi+0Ch]                                                 ; +0xa4, 0x1800769a4\nmov     ecx, 21002h                                                    ; +0xa7, 0x1800769a7\ncall    sub_1800D4D00                                                  ; +0xac, 0x1800769ac\ncmp     byte ptr [rbx+0E9h], 0                                         ; +0xb1, 0x1800769b1\njz      short loc_1800769D1                                            ; +0xb8, 0x1800769b8\nxor     edx, edx                                                       ; +0xba, 0x1800769ba\nmov     ecx, 20005h                                                    ; +0xbc, 0x1800769bc\ncall    sub_1800D4D00                                                  ; +0xc1, 0x1800769c1\nmov     qword ptr [rbx+0D0h], 0                                        ; +0xc6, 0x1800769c6\nmovd    xmm0, dword ptr [rdi+4]                                        ; +0xd1, 0x1800769d1\ncvtdq2ps xmm0, xmm0                                                    ; +0xd6, 0x1800769d6\nmovd    xmm3, dword ptr [rdi]                                          ; +0xd9, 0x1800769d9\ncvtdq2ps xmm3, xmm3; float                                             ; +0xdd, 0x1800769dd\nmovss   [rsp+48h+var_28], xmm0; float                                  ; +0xe0, 0x1800769e0\nxorps   xmm2, xmm2; float                                              ; +0xe6, 0x1800769e6\nxorps   xmm1, xmm1; float                                              ; +0xe9, 0x1800769e9\nlea     rcx, [rsp+48h+var_18]; this                                    ; +0xec, 0x1800769ec\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xf1, 0x1800769f1\nmov     r8, rax                                                        ; +0xf6, 0x1800769f6\nmovss   xmm3, cs:flt_1800E61A8                                         ; +0xf9, 0x1800769f9\nmov     rdx, r14                                                       ; +0x101, 0x180076a01\nmov     rcx, rbx; this                                                 ; +0x104, 0x180076a04\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, 0x180076a07\ntest    al, al                                                         ; +0x10c, 0x180076a0c\njz      short loc_180076A1E                                            ; +0x10e, 0x180076a0e\nlea     rcx, [rbx+78h]; this                                           ; +0x110, 0x180076a10\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x114, 0x180076a14\nmov     rax, rbx                                                       ; +0x119, 0x180076a19\njmp     short loc_180076A20                                            ; +0x11c, 0x180076a1c\nxor     eax, eax                                                       ; +0x11e, 0x180076a1e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x120, 0x180076a20\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x125, 0x180076a25\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x12a, 0x180076a2a\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x12f, 0x180076a2f\nadd     rsp, 40h                                                       ; +0x134, 0x180076a34\npop     r14                                                            ; +0x138, 0x180076a38\nretn                                                                   ; +0x13a, 0x180076a3a", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b48b4"], "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"}