// // LevelSettingsLayer::selectSettingClosed from 0x14045a350 to 0x14045a4c4 (372 bytes) // // 2 xrefs: // > @ 0x1407982f8 // > @ 0x140927c14 // // 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:32:31 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall LevelSettingsLayer::selectSettingClosed(__int64 a1, __int64 a2) { int v3; // edi __int64 result; // rax unsigned int v5; // esi __int64 v6; // rdx __int64 v7; // rcx const char *v8; // rbx cocos2d::CCSpriteFrameCache *v9; // rax struct cocos2d::CCSpriteFrame *v10; // rax __int64 v11; // rdx __int64 v12; // rcx const char *v13; // rbx cocos2d::CCSpriteFrameCache *v14; // rax struct cocos2d::CCSpriteFrame *v15; // rax _QWORD v16[3]; // [rsp+28h] [rbp-30h] BYREF unsigned __int64 v17; // [rsp+40h] [rbp-18h] v3 = 0; result = *(unsigned int *)(a2 + 676); v5 = *(_DWORD *)(a2 + 672); if ( (unsigned int)result < 2 ) { SelectSettingLayer::frameForItem(v16, (unsigned int)result, v5); v13 = (const char *)v16; if ( v17 > 0xF ) v13 = (const char *)v16[0]; v14 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v12, v11); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, v13); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(**(_QWORD **)(a1 + 128) + 1008LL))( *(_QWORD *)(a1 + 128), v15); sub_14003D310((__int64)v16); result = *(_QWORD *)(a1 + 136); *(_DWORD *)(result + 328) = v5; } else if ( (_DWORD)result == 2 ) { if ( v5 ) { if ( v5 != 1 ) { switch ( v5 ) { case 2u: v3 = 2; break; case 3u: v3 = 3; break; case 4u: v3 = 4; break; } } } else { v3 = 1; } SelectSettingLayer::frameForItem(v16, 2, v5); v8 = (const char *)v16; if ( v17 > 0xF ) v8 = (const char *)v16[0]; v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v7, v6); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v8); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(**(_QWORD **)(a1 + 120) + 1008LL))( *(_QWORD *)(a1 + 120), v10); sub_14003D310((__int64)v16); result = *(_QWORD *)(a1 + 136); *(_DWORD *)(result + 332) = v3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source