//
// PriceLabel::setPrice from 0x1004b88e0 to 0x1004b8a39 (345 bytes)
//
// 2 xrefs:
// > PriceLabel::create @ 0x1004b87d0
// > PriceLabel::init @ 0x1004b88c1
//
// 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:31:02 +0000
//
__int64 __fastcall PriceLabel::setPrice(_QWORD *a1)
{
__int64 v2; // r14
__int64 v3; // rax
__int64 CString; // rax
_DWORD *v5; // rdi
float v6; // xmm0_4
__m128 v7; // xmm1
__m128 v8; // xmm3
__int64 v9; // r14
__int64 v10; // rax
__int64 v11; // r14
__int64 v12; // rax
char v14; // [rsp+0h] [rbp-40h]
float v15; // [rsp+8h] [rbp-38h] BYREF
__m128 v16; // [rsp+10h] [rbp-30h]
float v17; // [rsp+24h] [rbp-1Ch]
v2 = a1[40];
v3 = sub_10088E820("%i", v14);
CString = cocos2d::CCString::getCString(v3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 928LL))(v2, CString);
v17 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[40] + 328LL))(a1[40]);
v5 = (_DWORD *)a1[41];
v16.i32[0] = v5[108];
v6 = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v5 + 168LL))(v5) * v16.f32[0];
v7 = (__m128)LODWORD(v17);
v7.f32[0] = (float)(v17 + v6) * 0.5;
v8 = v7;
v8.f32[0] = v7.f32[0] - (float)(v17 * 0.5);
v17 = v7.f32[0] - (float)(v6 * 0.5);
v9 = a1[40];
v16 = _mm_xor_ps(v8, (__m128)xmmword_100A035F0);
v10 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 328LL))(a1);
sub_100278250(&v15, v16.f32[0], *(float *)(v10 + 4) * 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 184LL))(v9, &v15);
v11 = a1[41];
v17 = v17 + 1.0;
v12 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 328LL))(a1);
sub_100278250(&v15, v17, (float)(0.5 * *(float *)(v12 + 4)) + 5.0);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, &v15);
}