//
// -[EAGLView initWithCoder:] from 0x10049c740 to 0x10049c814 (212 bytes)
//
// 2 xrefs:
// > -[EAGLView initWithCoder:] @ 0x10049c768
// > ??> @ 0x1009d3800
//
// This function is hookable on this platform (idp: arm, 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 11:05:59 +0000
//
EAGLView *__cdecl -[EAGLView initWithCoder:](EAGLView *self, SEL a2, id a3)
{
EAGLView *v3; // x0
__int64 v4; // x19
void *v5; // x0
__int64 v6; // d2
__int64 v7; // d3
objc_super v9; // [xsp+0h] [xbp-20h] BYREF
v9.receiver = self;
v9.super_class = (Class)&OBJC_CLASS___EAGLView;
v3 = -[EAGLView initWithCoder:](&v9, "initWithCoder:", a3);
v4 = (__int64)v3;
if ( !v3 )
goto LABEL_3;
v5 = -[EAGLView layer](v3, "layer");
*(_QWORD *)(v4 + 24) = kEAGLColorFormatRGB565;
*(_DWORD *)(v4 + 32) = 0;
*(_BYTE *)(v4 + 154) = 0;
*(_DWORD *)(v4 + 60) = 0;
objc_msgSend(v5, "bounds");
*(_QWORD *)(v4 + 40) = v6;
*(_QWORD *)(v4 + 48) = v7;
*(_QWORD *)(v4 + 72) = 0;
if ( ((unsigned int)objc_msgSend((id)v4, "setupSurfaceWithSharegroup:", 0) & 1) == 0 )
{
objc_release((id)v4);
return nullptr;
}
else
{
LABEL_3:
qword_1009F7B40 = v4;
}
return (EAGLView *)v4;
}