//
// -[AppController applicationDidFinishLaunching:] from 0x100003720 to 0x100003aab (907 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdae20
//
// 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:18:45 +0000
//
void __cdecl -[AppController applicationDidFinishLaunching:](AppController *self, SEL a2, id a3)
{
AppControllerManager *v4; // rdi
__int64 v5; // rdx
__int64 v6; // rdx
CCWindow *v7; // rax
__int64 v8; // r8
__int64 v9; // r9
CCWindow *v10; // rax
__int64 v11; // r8
__int64 v12; // r9
CGPoint origin; // xmm0
CGSize size; // xmm1
id v15; // rax
id v16; // rax
id v17; // r14
EAGLView *v18; // rax
__int64 v19; // rcx
__int64 v20; // r8
__int64 v21; // r9
EAGLView *v22; // r14
__int64 v23; // rax
__int64 v24; // rax
__int64 v25; // rcx
__int64 v26; // r8
__int64 v27; // r9
__int64 v28; // rdx
__int64 v29; // rax
_BYTE v30[24]; // [rsp+20h] [rbp-A0h] BYREF
double v31; // [rsp+38h] [rbp-88h]
__m128d v32; // [rsp+40h] [rbp-80h]
__m64 v33; // [rsp+58h] [rbp-68h] BYREF
__int128 v34; // [rsp+60h] [rbp-60h]
__int128 v35; // [rsp+70h] [rbp-50h]
__int128 v36; // [rsp+80h] [rbp-40h] BYREF
__int64 v37; // [rsp+90h] [rbp-30h]
GameManager::sharedState(self, a2, a3);
self->designSize_ = (CGSize)xmmword_100A03650;
*(_WORD *)&self->shouldClose_ = 0;
*(_WORD *)&self->_liveResizing = 0;
self->_mouseDown = 0;
self->_mouseEnabled = 1;
v4 = +[AppControllerManager sharedInstance](&OBJC_CLASS___AppControllerManager, "sharedInstance");
-[AppControllerManager setController:](v4, "setController:", self);
GameManager::sharedState(v4, "setController:", v5);
GameManager::sharedState(v4, "setController:", v6);
GameManager::resolutionForKey(&v33);
self->windowedSize_.origin = 0;
v32 = _mm_cvtps_pd(v33);
self->windowedSize_.size = (CGSize)v32;
v7 = objc_alloc(&OBJC_CLASS___CCWindow);
v10 = -[CCWindow initWithFrame:fullscreen:borderless:](
v7,
"initWithFrame:fullscreen:borderless:",
0,
0,
v8,
v9,
*(_QWORD *)&self->windowedSize_.origin.x,
*(_QWORD *)&self->windowedSize_.origin.y,
*(_QWORD *)&self->windowedSize_.size.width,
*(_QWORD *)&self->windowedSize_.size.height);
self->_window = v10;
-[CCWindow setContentAspectRatio:](v10, "setContentAspectRatio:", v32.f64[0], _mm_unpackhi_pd(v32, v32).f64[0]);
-[CCWindow setMinSize:](self->_window, "setMinSize:", 240.0, 160.0);
v34 = 0;
v35 = xmmword_100A03660;
objc_msgSend_stret(
v30,
(SEL)&OBJC_CLASS___NSWindow,
"contentRectForFrameRect:styleMask:",
15,
v11,
v12,
0,
0,
0x4059000000000000LL,
0x4059000000000000LL);
self->_menuBarHeight = 100.0 - v31;
origin = self->windowedSize_.origin;
size = self->windowedSize_.size;
self->_savedSize.origin = origin;
self->_savedSize.size = size;
self->originalWinFrame_.size = size;
self->originalWinFrame_.origin = origin;
v36 = xmmword_100A036E0;
v37 = 8;
v15 = objc_alloc((Class)&OBJC_CLASS___NSOpenGLPixelFormat);
v16 = objc_msgSend(v15, "initWithAttributes:", &v36);
v17 = objc_autorelease(v16);
v18 = objc_alloc(&OBJC_CLASS___EAGLView);
v34 = 0;
v35 = (__int128)v32;
HIDWORD(origin.x) = 0;
v22 = -[EAGLView initWithFrame:pixelFormat:](
v18,
"initWithFrame:pixelFormat:",
v17,
v19,
v20,
v21,
0,
0,
*(_OWORD *)&v32);
self->glView = v22;
-[CCWindow backingScaleFactor](self->_window, "backingScaleFactor");
*(float *)&origin.x = 0.0;
-[EAGLView setBackingScaleFactor:](v22, "setBackingScaleFactor:", origin.x);
-[CCWindow becomeFirstResponder](self->_window, "becomeFirstResponder");
-[CCWindow setContentView:](self->_window, "setContentView:", self->glView);
-[CCWindow setTitle:](self->_window, "setTitle:", CFSTR("Geometry Dash"));
-[CCWindow makeKeyAndOrderFront:](self->_window, "makeKeyAndOrderFront:", self);
-[CCWindow setAcceptsMouseMovedEvents:](self->_window, "setAcceptsMouseMovedEvents:", 1);
-[CCWindow setDelegate:](self->_window, "setDelegate:", self);
-[CCWindow setCollectionBehavior:](self->_window, "setCollectionBehavior:", 128);
-[CCWindow setAnimationBehavior:](self->_window, "setAnimationBehavior:", 2);
-[CCWindow setOpaque:](self->_window, "setOpaque:", 1);
v23 = sub_1006DE2F0();
if ( !(unsigned __int8)sub_1006DE550(v23) )
exit(0);
self->_isControllerConnected = 0;
-[EAGLView lockOpenGLContext](self->glView, "lockOpenGLContext");
v24 = cocos2d::CCApplication::sharedApplication();
cocos2d::CCApplication::run(v24);
-[EAGLView unlockOpenGLContext](self->glView, "unlockOpenGLContext");
-[AppController handleWindowResize:Center:](
self,
"handleWindowResize:Center:",
0,
v25,
v26,
v27,
*(_QWORD *)&self->windowedSize_.origin.x,
*(_QWORD *)&self->windowedSize_.origin.y,
*(_QWORD *)&self->windowedSize_.size.width,
*(_QWORD *)&self->windowedSize_.size.height);
-[AppController centerWindow](self, "centerWindow");
v29 = GameManager::sharedState(self, "centerWindow", v28);
if ( !(unsigned __int8)GameManager::getGameVariable(v29, "0025") )
-[AppController toggleFullScreenOn](self, "toggleFullScreenOn");
}