// // CustomSongWidget::onUsage from 0x868a24 to 0x868b90 (364 bytes) // // 3 xrefs: // > @ 0x98740 // > CustomSongWidget::init @ 0x86b590 // > @ 0x1544260 // // 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 12:55:41 +0000 // __int64 __fastcall CustomSongWidget::onUsage(CustomSongWidget *this, cocos2d::CCObject *a2) { __int64 v3; // x0 char v4; // w1 unsigned int v5; // w22 __int64 v6; // x4 __int64 v7; // x5 __int64 v8; // x2 char v9; // w1 __int64 v10; // x0 __int64 v11; // x1 __int64 v12; // x0 __int64 v14; // x0 __int64 v15; // [xsp+38h] [xbp+38h] BYREF __int64 v16; // [xsp+40h] [xbp+40h] void *v17; // [xsp+48h] [xbp+48h] __int64 v18; // [xsp+50h] [xbp+50h] BYREF __int64 v19; // [xsp+58h] [xbp+58h] void *v20; // [xsp+60h] [xbp+60h] v3 = *((_QWORD *)this + 42); if ( !v3 ) return _stack_chk_guard; v4 = *(_BYTE *)(v3 + 320); v15 = 0; v16 = 0; v17 = nullptr; v5 = *(_DWORD *)(v3 + 316); if ( (v4 & 1) != 0 ) { std::string::__init(&v15, *(void **)(v3 + 336), *(_QWORD *)(v3 + 328)); v18 = 0; v14 = *((_QWORD *)this + 42); v19 = 0; v20 = nullptr; v8 = v14 + 344; if ( (*(_BYTE *)(v14 + 344) & 1) == 0 ) goto LABEL_4; LABEL_11: std::string::__init(&v18, *(void **)(v8 + 16), *(_QWORD *)(v8 + 8)); goto LABEL_5; } v6 = *(_QWORD *)(v3 + 320); v7 = *(_QWORD *)(v3 + 328); v17 = *(void **)(v3 + 336); v8 = v3 + 344; v9 = *(_BYTE *)(v3 + 344); v15 = v6; v16 = v7; v18 = 0; v19 = 0; v20 = nullptr; if ( (v9 & 1) != 0 ) goto LABEL_11; LABEL_4: v10 = *(_QWORD *)v8; v11 = *(_QWORD *)(v8 + 8); v20 = *(void **)(v8 + 16); v18 = v10; v19 = v11; LABEL_5: v12 = SongUsagePopup::create(v5, &v15, &v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12); if ( (v18 & 1) != 0 ) operator delete(v20); if ( (v15 & 1) != 0 ) operator delete(v17); return _stack_chk_guard; }