// // sub_140633E00 from 0x140633e00 to 0x140633fe6 (486 bytes) // // 2 xrefs: // > SongInfoLayer::init @ 0x140635219 // > @ 0x140930bc0 // // 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:35:29 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall sub_140633E00(cocos2d::CCLabelBMFont *a1, size_t *a2, float a3, float a4, float a5) { unsigned __int64 v6; // rsi __m128i si128; // xmm7 unsigned __int64 v8; // rbx __int64 v9; // rdi __int64 v10; // r8 void *v11; // rdx unsigned __int64 v12; // rdx cocos2d::CCString *v13; // rax char *CString; // rax size_t v15; // r8 __int128 *p_Src; // rdx float v17; // xmm6_4 __int64 v18; // [rsp+20h] [rbp-B8h] BYREF __int64 v19; // [rsp+28h] [rbp-B0h] __int128 Src; // [rsp+38h] [rbp-A0h] BYREF __m128i v21; // [rsp+48h] [rbp-90h] sub_140633A60(&v18, a2); v6 = (v19 - v18) >> 5; if ( v6 ) { si128 = _mm_load_si128((const __m128i *)&Size); while ( 1 ) { Src = 0; v21 = si128; LOBYTE(Src) = 0; v8 = 0; v9 = 0; do { if ( v8 ) sub_140044D80(&Src, ", ", 2u); v10 = v9 + v18; v11 = (void *)(v9 + v18); if ( *(_QWORD *)(v9 + v18 + 24) > 0xFu ) v11 = *(void **)v10; sub_140044D80(&Src, v11, *(_QWORD *)(v10 + 16)); ++v8; v9 += 32; } while ( v8 < v6 ); v12 = (v19 - v18) >> 5; if ( v6 < v12 ) { v13 = cocos2d::CCString::createWithFormat(", +%i", (int)v12 - (int)v6); CString = (char *)cocos2d::CCString::getCString(v13); v15 = -1; do ++v15; while ( CString[v15] ); sub_140044D80(&Src, CString, v15); } p_Src = &Src; if ( v21.m128i_i64[1] > 0xFuLL ) p_Src = (__int128 *)Src; (**((void (__fastcall ***)(__int64, __int128 *))a1 + 45))((__int64)a1 + 360, p_Src); cocos2d::CCLabelBMFont::limitLabelWidth(a1, a3, a4, a5); v17 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 320LL))(a1); if ( a3 >= (float)((*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 168LL))(a1) * v17) ) break; sub_14003D310((__int64)&Src); if ( !--v6 ) goto LABEL_19; } sub_14003D310((__int64)&Src); } LABEL_19: sub_1400760C0(&v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source