//
// CustomSongLayer::dropDownLayerWillClose from 0x57afe2 to 0x57b01a (56 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomSongLayer::dropDownLayerWillClose @ 0x57b01e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:49 +0000
//
int __fastcall CustomSongLayer::dropDownLayerWillClose(int this, GJDropDownLayer *a2)
{
int v2; // r4
CustomSongWidget *v3; // r5
__int64 v4; // r0
SongInfoObject *v5; // r1
v2 = this;
if ( *((_BYTE *)a2 + 496) )
{
(***(void (__fastcall ****)(_DWORD, _DWORD))(this + 528))(*(_DWORD *)(this + 528), *((_DWORD *)a2 + 123));
v3 = *(CustomSongWidget **)(v2 + 536);
v4 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**(_DWORD **)(v2 + 528) + 4))(*(_DWORD *)(v2 + 528));
v5 = SongInfoObject::create((SongInfoObject *)v4, SHIDWORD(v4));
return CustomSongWidget::updateSongObject(v3, v5);
}
return this;
}