//
// TabbedPopupLayer::pageForButtonCount from 0xc3822c to 0xc3824c (32 bytes)
//
// 2 xrefs:
// > GameSettingsLayer::addToggle @ 0xc0562c
// > ??> @ 0x6b5d8
//
// 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 13:04:52 +0000
//
__int64 __fastcall TabbedPopupLayer::pageForButtonCount(TabbedPopupLayer *this, int a2, int a3)
{
__int64 result; // x0
if ( a3 <= 0 )
return 0;
LODWORD(result) = a2 / a3;
if ( a2 / a3 < 0 )
return 0;
else
return (unsigned int)result;
}