// // EditorSoundConfigInfoLayer::refreshActionButtons from 0x140195710 to 0x1401959ca (698 bytes) // // 12 xrefs: // > EditorSoundConfigInfoLayer::init @ 0x140194434 // > EditorSoundConfigInfoLayer::startDownload @ 0x1401948a7 // > EditorSoundConfigInfoLayer::onFavorite @ 0x1401951e6 // > EditorSoundConfigInfoLayer::onFavorite @ 0x1401953fc // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140198380 // > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x140198cc4 // > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x140198d92 // > EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x140198e2b // > @ 0x14089f9cc // > @ 0x14089fa04 // > @ 0x14089fa14 // > @ 0x140919418 // // 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:27:45 +0000 // int __fastcall EditorSoundConfigInfoLayer::refreshActionButtons(_QWORD *a1, __int64 a2) { struct cocos2d::CCObject *v2; // rax char v4; // r14 int v5; // ebp struct cocos2d::CCObject *v6; // rdi cocos2d::CCArray *v7; // rcx unsigned int v8; // ebx char v9; // bp __int64 v10; // rcx _BYTE *v11; // rbx __int64 v12; // rcx bool v13; // zf __int64 v14; // rcx struct cocos2d::CCObject *v15; // r15 __int64 v16; // rdi const char *v17; // rbx cocos2d::CCSpriteFrameCache *v18; // rax struct cocos2d::CCSpriteFrame *v19; // rax __int64 v20; // rcx _BYTE *v21; // rbx __int64 v22; // rcx __int64 v23; // rcx __int64 v24; // rcx __int64 v25; // rax bool v26; // bl __int64 v27; // rcx __int64 v28; // rcx v2 = (struct cocos2d::CCObject *)a1[134]; if ( v2 && *((_BYTE *)v2 + 544) ) { v4 = 1; } else { v4 = 0; if ( !v2 ) { LABEL_11: v9 = 0; goto LABEL_12; } } v2 = (struct cocos2d::CCObject *)EditorSFXManager::sharedState(); if ( !v2 ) goto LABEL_11; v5 = *(_DWORD *)(a1[134] + 320LL); v2 = (struct cocos2d::CCObject *)EditorSFXManager::sharedState(); v6 = v2; v7 = *((cocos2d::CCArray **)v2 + 26); if ( !v7 ) goto LABEL_11; v8 = 0; LODWORD(v2) = cocos2d::CCArray::count(v7); if ( !(_DWORD)v2 ) goto LABEL_11; while ( 1 ) { v2 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v6 + 26), v8); if ( v2 ) { if ( *((_DWORD *)v2 + 80) == v5 ) break; } ++v8; LODWORD(v2) = cocos2d::CCArray::count(*((cocos2d::CCArray **)v6 + 26)); if ( v8 >= (unsigned int)v2 ) goto LABEL_11; } v9 = 1; LABEL_12: v10 = a1[141]; v11 = a1 + 138; if ( v10 ) { if ( !v4 || *v11 ) a2 = 0; else LOBYTE(a2) = 1; LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 936LL))(v10, a2); } v12 = a1[142]; if ( v12 ) { if ( v4 && (v13 = *v11 == 0, v11 = a1 + 138, v13) ) LOBYTE(a2) = 1; else a2 = 0; LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 936LL))(v12, a2); } v14 = a1[143]; if ( v14 ) { if ( (v4 || v9) && !*v11 ) LOBYTE(a2) = 1; else a2 = 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 936LL))(v14, a2); v2 = (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[143] + 952LL))(a1[143]); v15 = v2; if ( v2 ) { v16 = *(_QWORD *)v2; v17 = "gj_heartOff_001.png"; if ( v9 ) v17 = "gj_heartOn_001.png"; v18 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v19 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, v17); LODWORD(v2) = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCSpriteFrame *))(v16 + 1008))( v15, v19); } } v20 = a1[146]; v21 = a1 + 138; if ( v20 ) { if ( !v4 || *v21 ) a2 = 0; else LOBYTE(a2) = 1; LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 936LL))(v20, a2); } v22 = a1[144]; if ( v22 ) { LOBYTE(a2) = *v21 == 0; LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 936LL))(v22, a2); } v23 = a1[145]; if ( v23 ) { LOBYTE(a2) = *v21 == 0; LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 936LL))(v23, a2); v21 = a1 + 138; } v24 = a1[147]; if ( v24 ) { v25 = a1[134]; v26 = v25 && *(int *)(v25 + 320) > 0 && !*v21; (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v24 + 336LL))(v24, v26); LODWORD(v2) = (*(__int64 (__fastcall **)(_QWORD, bool))(*(_QWORD *)a1[147] + 936LL))(a1[147], v26); v21 = a1 + 138; } v27 = a1[149]; if ( v27 ) { LOBYTE(a2) = *v21 == 0; LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 936LL))(v27, a2); } v28 = a1[150]; if ( v28 ) { if ( !v4 || *v21 ) { LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v28 + 936LL))(v28, 0); } else { LOBYTE(a2) = 1; LODWORD(v2) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 936LL))(v28, a2); } } return (int)v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source