// // PriceLabel::setPrice from 0x1004bf9e0 to 0x1004bfb39 (345 bytes) // // 2 xrefs: // > PriceLabel::create @ 0x1004bf8d0 // > PriceLabel::init @ 0x1004bf9c1 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall PriceLabel::setPrice(PriceLabel *a1, int a2) { cocos2d::CCLabelBMFont *m_priceLabel; // r14 cocos2d::CCString *v4; // rax const char *CString; // rax cocos2d::CCSprite *m_coinSprite; // rdi float v7; // xmm0_4 __m128 v8; // xmm1 __m128 v9; // xmm3 cocos2d::CCLabelBMFont *v10; // r14 __int64 v11; // rax cocos2d::CCSprite *v12; // r14 __int64 v13; // 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] m_priceLabel = a1->m_priceLabel; v4 = (cocos2d::CCString *)sub_1007AB580("%i", v14); CString = cocos2d::CCString::getCString(v4); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_priceLabel->setString)(m_priceLabel, CString); v17 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_priceLabel->getContentSize)(a1->m_priceLabel); m_coinSprite = a1->m_coinSprite; v16.i32[0] = LODWORD(m_coinSprite->m_obRect.size.width); v7 = ((float (__fastcall *)(cocos2d::CCSprite *))m_coinSprite->getScale)(m_coinSprite) * v16.f32[0]; v8 = (__m128)LODWORD(v17); v8.f32[0] = (float)(v17 + v7) * 0.5; v9 = v8; v9.f32[0] = v8.f32[0] - (float)(v17 * 0.5); v17 = v8.f32[0] - (float)(v7 * 0.5); v10 = a1->m_priceLabel; v16 = _mm_xor_ps(v9, (__m128)xmmword_1008150B0); v11 = ((__int64 (__fastcall *)(PriceLabel *))a1->getContentSize)(a1); sub_10028CBE0(&v15, v16.f32[0], *(float *)(v11 + 4) * 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float *))v10->setPosition)(v10, &v15); v12 = a1->m_coinSprite; v17 = v17 + 1.0; v13 = ((__int64 (__fastcall *)(PriceLabel *))a1->getContentSize)(a1); sub_10028CBE0(&v15, v17, (float)(0.5 * *(float *)(v13 + 4)) + 5.0); ((void (__fastcall *)(cocos2d::CCSprite *, float *))v12->setPosition)(v12, &v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source