// // -[EAGLView initWithFrame:shareContext:] from 0x100744d90 to 0x100744ef3 (355 bytes) // // 2 xrefs: // > -[EAGLView initWithFrame:] @ 0x100744d7e // > @ 0x100bdcf80 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:36:30 +0000 // EAGLView *__cdecl -[EAGLView initWithFrame:shareContext:](EAGLView *self, SEL a2, CGRect a3, id a4) { id v5; // rax id v6; // r15 id v7; // rax __int64 v8; // r8 __int64 v9; // r9 EAGLView *v10; // rax __int64 v11; // r14 __int64 v12; // rax float width; // xmm0_4 float height; // xmm1_4 objc_super v16; // [rsp+40h] [rbp-50h] BYREF __int128 v17; // [rsp+50h] [rbp-40h] BYREF v17 = xmmword_100A12860; v5 = objc_alloc((Class)&OBJC_CLASS___NSOpenGLPixelFormat); v6 = objc_msgSend(v5, "initWithAttributes:", &v17); if ( !v6 ) NSLog((NSString *)CFSTR("No OpenGL pixel format")); v7 = objc_autorelease(v6); v16.receiver = self; v16.super_class = (Class)&OBJC_CLASS___EAGLView; v10 = -[EAGLView initWithFrame:pixelFormat:]( &v16, "initWithFrame:pixelFormat:", v7, &OBJC_CLASS___EAGLView, v8, v9, *(_QWORD *)&a3.origin.x, *(_QWORD *)&a3.origin.y, *(_QWORD *)&a3.size.width, *(_QWORD *)&a3.size.height); v11 = (__int64)v10; if ( v10 ) { if ( a4 ) -[EAGLView setOpenGLContext:](v10, "setOpenGLContext:", a4); *(_QWORD *)(v11 + 8) = +[CCEventDispatcher sharedDispatcher](&OBJC_CLASS___CCEventDispatcher, "sharedDispatcher"); } v12 = cocos2d::CCEGLView::sharedOpenGLView(); width = a3.size.width; height = a3.size.height; (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v12 + 56LL))(v12, width, height); *(_DWORD *)(v11 + 80) = 1065353216; *(_DWORD *)(v11 + 84) = 1065353216; qword_100BE6868 = v11; return (EAGLView *)v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source