//
// -[AppController windowShouldZoom:toFrame:] from 0x100004600 to 0x100004729 (297 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdb1c8
//
// 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
//
char __cdecl -[AppController windowShouldZoom:toFrame:](AppController *self, SEL a2, id a3, CGRect originalWinFrame)
{
unsigned __int8 v5; // al
__int64 v6; // r8
__int64 v7; // r9
unsigned __int8 v8; // r15
CGPoint v9; // xmm0
_BOOL4 v10; // r15d
CGPoint origin; // xmm0
__int64 v12; // rcx
__int64 v13; // r8
__int64 v14; // r9
CGPoint v15; // xmm0
CGPoint v17; // [rsp+20h] [rbp-50h] BYREF
CGSize size; // [rsp+30h] [rbp-40h]
self->_liveResizing = 1;
v5 = (unsigned __int8)objc_msgSend(a3, "isZoomed");
if ( v5 )
{
originalWinFrame = self->originalWinFrame_;
}
else
{
if ( a3 )
{
v8 = v5;
objc_msgSend_stret(&v17, (SEL)a3, "frame");
v5 = v8;
}
else
{
size = 0;
v17 = 0;
}
v9 = v17;
self->originalWinFrame_.size = size;
self->originalWinFrame_.origin = v9;
}
v10 = v5 == 0;
origin = self->originalWinFrame_.origin;
size = self->originalWinFrame_.size;
v17 = origin;
objc_msgSend(
a3,
"setFrame:display:animate:",
0,
0,
v6,
v7,
*(_QWORD *)&originalWinFrame.origin.x,
*(_QWORD *)&originalWinFrame.origin.y,
*(_QWORD *)&originalWinFrame.size.width,
*(_QWORD *)&originalWinFrame.size.height);
-[AppController handleWindowResizeWMenu:Center:](
self,
"handleWindowResizeWMenu:Center:",
v10,
v12,
v13,
v14,
*(_QWORD *)&originalWinFrame.origin.x,
*(_QWORD *)&originalWinFrame.origin.y,
*(_QWORD *)&originalWinFrame.size.width,
*(_QWORD *)&originalWinFrame.size.height);
v15 = v17;
self->originalWinFrame_.size = size;
self->originalWinFrame_.origin = v15;
self->_liveResizing = 0;
return 0;
}