//
// sub_1400AC580 from 0x1400ac580 to 0x1400ac6de (350 bytes)
//
// 7 xrefs:
// > AccountReviewPopup::init @ 0x1400b026e
// > AccountReviewPopup::init @ 0x1400b03c4
// > AccountReviewPopup::init @ 0x1400b0520
// > AccountReviewPopup::init @ 0x1400b066d
// > AccountReviewPopup::clearCard @ 0x1400b0f1e
// > AccountReviewPopup::updateCard @ 0x1400b2db8
// > ??> @ 0x140913448
//
// 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 11:26:10 +0000
//
__int64 __fastcall sub_1400AC580(float *a1, float a2)
{
const struct cocos2d::CCSize *v3; // rax
__int64 v4; // rcx
__int64 *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
__int64 *v8; // rdi
__int64 v9; // rbx
__int64 v10; // rax
__int64 result; // rax
__int64 v12; // rax
__int64 v13; // rbx
__int64 v14; // rax
float v15; // [rsp+40h] [rbp+8h] BYREF
float v16; // [rsp+44h] [rbp+Ch]
char v17; // [rsp+50h] [rbp+18h] BYREF
v3 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)a1 + 320LL))(a1);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, v3);
v4 = *((_QWORD *)a1 + 82);
v15 = v15 * a2;
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 312LL))(v4, &v15);
(*(void (__fastcall **)(float *, float *))(*(_QWORD *)a1 + 312LL))(a1, &v15);
v5 = *((__int64 **)a1 + 82);
v6 = *v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v15 * 0.5, v16 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v6 + 184))(v5, v7);
v8 = *((__int64 **)a1 + 79);
v9 = *v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, (float)(v15 * 0.5) + a1[166], (float)(v16 * 0.5) + a1[167]);
(*(void (__fastcall **)(__int64 *, __int64))(v9 + 184))(v8, v10);
result = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a1 + 504LL))(a1);
if ( result )
{
v12 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a1 + 504LL))(a1);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 312LL))(v12, &v15);
v13 = *(_QWORD *)a1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v15 * 0.5, v16 * 0.5);
return (*(__int64 (__fastcall **)(float *, __int64))(v13 + 184))(a1, v14);
}
return result;
}