//
// sub_100575950 from 0x100575950 to 0x1005759e6 (150 bytes)
//
// 3 xrefs:
// > GJThreadCell::loadFromThread @ 0x100232ffb
// > ThreadViewPopup::layoutTitleRow @ 0x10092eb3f
// > ThreadOptionsPopup::init @ 0x100949788
//
// 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:32:16 +0000
//
char *__fastcall sub_100575950(__int64 a1, double a2)
{
int v2; // eax
const char *v3; // rdi
char *v4; // rbx
__int64 v5; // rax
float v7; // [rsp-24h] [rbp-24h] BYREF
float v8; // [rsp-1Ch] [rbp-1Ch]
v2 = *(_DWORD *)(a1 + 288);
if ( (unsigned int)(v2 - 1) > 1 )
return nullptr;
v3 = "modBadge_01_001.png";
if ( v2 == 2 )
v3 = "modBadge_02_001.png";
v8 = *(float *)&a2;
v4 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v3, a2);
sub_100278250(&v7, 0.0, 0.5);
(*(void (__fastcall **)(char *, float *))(*(_QWORD *)v4 + 296LL))(v4, &v7);
v5 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 328LL))(v4);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v4 + 160LL))(v4, v8 / *(float *)(v5 + 4));
return v4;
}