// // sub_1004D5188 from 0x1004d5188 to 0x1004d52cc (324 bytes) // // 2 xrefs: // > sub_1004D4894 @ 0x1004d4ed4 // > SoundPackDescPopup::emotePicked @ 0x1004d54f0 // // This function is hookable on this platform (idp: arm, 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:06:30 +0000 // void __fastcall sub_1004D5188(__int64 a1) { __int64 v2; // x0 void **v3; // x8 unsigned __int64 v4; // x2 __int64 v5; // x20 __n128 v6; // q0 float v7; // s8 __int64 v8; // x0 void *__p[2]; // [xsp+0h] [xbp-40h] BYREF __int64 v10; // [xsp+10h] [xbp-30h] v2 = *(_QWORD *)(a1 + 1072); if ( !v2 ) return; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v2 + 568LL))(v2, 1, 1); v3 = (void **)(a1 + 1048); if ( *(char *)(a1 + 1071) < 0 ) { v4 = *(_QWORD *)(a1 + 1056); if ( v4 ) { sub_1000097D0(__p, *v3, v4); goto LABEL_8; } LABEL_7: sub_100009900(__p, "music"); goto LABEL_8; } if ( !*(_BYTE *)(a1 + 1071) ) goto LABEL_7; *(_OWORD *)__p = *(_OWORD *)v3; v10 = *(_QWORD *)(a1 + 1064); LABEL_8: v5 = EmoteSprite::createWithName(__p); if ( SHIBYTE(v10) < 0 ) operator delete(__p[0]); if ( v5 ) { v6 = EmoteSprite::fitToHeight(v5, 20.0, 0.0); v7 = *(float *)(*(__int64 (__fastcall **)(_QWORD, __n128))(**(_QWORD **)(a1 + 1072) + 328LL))( *(_QWORD *)(a1 + 1072), v6) * 0.5; v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1072) + 328LL))(*(_QWORD *)(a1 + 1072)); sub_1000262BC((float *)__p, v7, *(float *)(v8 + 4) * 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v5 + 184LL))(v5, __p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 1); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 1072) + 464LL))(*(_QWORD *)(a1 + 1072), v5, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source