//
// sub_1004A4C50 from 0x1004a4c50 to 0x1004a4d13 (195 bytes)
//
// 2 xrefs:
// > sub_1004A4D20 @ 0x1004a4d3b
// > sub_1004A4E10 @ 0x1004a4e15
//
// 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:30:54 +0000
//
id __fastcall sub_1004A4C50(__int64 a1)
{
_QWORD *v1; // rax
void *v2; // r15
double v3; // xmm0_8
unsigned __int64 v5[2]; // [rsp+0h] [rbp-60h] BYREF
__m64 v6[3]; // [rsp+10h] [rbp-50h] BYREF
__m128 v7; // [rsp+28h] [rbp-38h] BYREF
__int64 v8; // [rsp+38h] [rbp-28h] BYREF
v1 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 16) + 328LL))(*(_QWORD *)(a1 + 16));
sub_100278630(&v8, v1);
sub_100278270((__int64)&v7, 0.0, 0.0, (__m128)(unsigned int)v8, (__m128)HIDWORD(v8));
(*(void (__fastcall **)(__m64 *))(**(_QWORD **)(a1 + 16) + 824LL))(v6);
cocos2d::CCRectApplyAffineTransform((__int64)v5, (__int64)&v7, v6);
sub_100278810(&v7, v5);
sub_100278250((float *)v6, v7.f32[0], v7.f32[1] + v7.f32[3]);
v2 = *(void **)(a1 + 56);
v3 = sub_1004A4B50(a1, (float *)v6, *(_BYTE *)(a1 + 52));
return objc_msgSend(v2, "setPosition:", v3);
}