// // GJGarageLayer::getItems from 0x100356ea0 to 0x1003571fb (859 bytes) // // 4 xrefs: // > GJGarageLayer::setupPage @ 0x1003562f5 // > GJGarageLayer::setupSpecialPage @ 0x10035685c // > GJGarageLayer::setupSpecialPage @ 0x1003569a8 // > GJGarageLayer::getItems_1 @ 0x100357267 // // 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 12:28:52 +0000 // __int64 __fastcall GJGarageLayer::getItems(__int64 *a1, _QWORD *a2, __int64 a3, int a4, int a5) { unsigned int v5; // r14d int v6; // r15d __int64 v7; // r13 _QWORD *v8; // rax _QWORD *v9; // r12 _QWORD *v10; // rbx _QWORD *v11; // r13 __int64 v12; // rax double v13; // xmm0_8 __int64 v14; // rax __int64 v15; // rdi unsigned __int64 v16; // rsi unsigned __int64 v17; // rdi __int64 v18; // rdx int v19; // r12d int v20; // eax unsigned __int64 v21; // rcx unsigned int v22; // r12d unsigned int v23; // eax double v24; // xmm0_8 __int64 v25; // rax char isIconUnlocked; // r13 _QWORD *v27; // rax _QWORD **v28; // r15 int v29; // xmm0_4 _QWORD *v30; // rax _DWORD *v31; // rbx __int64 v32; // rax __int64 v33; // rax unsigned int v34; // xmm0_4 char *v35; // rbx __int64 v36; // rax float v38; // [rsp+8h] [rbp-78h] BYREF char *v39; // [rsp+10h] [rbp-70h] __int64 v40; // [rsp+18h] [rbp-68h] __int64 v41; // [rsp+20h] [rbp-60h] float v42; // [rsp+2Ch] [rbp-54h] int v43; // [rsp+30h] [rbp-50h] unsigned int v44; // [rsp+34h] [rbp-4Ch] __int64 *v45; // [rsp+38h] [rbp-48h] unsigned int v46; // [rsp+44h] [rbp-3Ch] unsigned __int64 v47; // [rsp+48h] [rbp-38h] __int16 v48; // [rsp+50h] [rbp-30h] BYREF char v49; // [rsp+52h] [rbp-2Eh] float v50; // [rsp+54h] [rbp-2Ch] v43 = a5; v5 = a4; v6 = a3; v47 = (unsigned __int64)a2; v7 = (__int64)a1; v8 = (_QWORD *)a1[66]; v45 = a1; if ( v8 ) { while ( 1 ) { while ( 1 ) { v10 = v8; if ( *((_DWORD *)v8 + 7) <= a4 ) break; v8 = (_QWORD *)*v8; v9 = v10; if ( !*v10 ) goto LABEL_8; } if ( *((_DWORD *)v8 + 7) >= a4 ) break; v8 = (_QWORD *)v8[1]; if ( !v8 ) { v9 = v10 + 1; goto LABEL_8; } } } else { v9 = a1 + 66; v10 = a1 + 66; LABEL_8: v11 = v10; v10 = operator new(0x28u); *((_DWORD *)v10 + 7) = v5; *((_DWORD *)v10 + 8) = 0; *(_OWORD *)v10 = 0; v10[2] = v11; v7 = (__int64)v45; *v9 = v10; v12 = **(_QWORD **)(v7 + 520); if ( v12 ) *(_QWORD *)(v7 + 520) = v12; a1 = *(__int64 **)(v7 + 528); a2 = v10; sub_10001B680(a1, v10); ++*(_QWORD *)(v7 + 536); } *((_DWORD *)v10 + 8) = v6; *(_QWORD *)&v13 = GameManager::sharedState(a1, a2, a3).u64[0]; v15 = v14; v16 = v5; v46 = GameManager::iconTypeToUnlockType(v14, v5, v13); v41 = sub_1007FE900(v15); v17 = (unsigned __int64)"playerSquare_001.png"; v39 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"playerSquare_001.png", v13); *(_QWORD *)(v7 + 560) = 0; v19 = 36 * v6; v20 = 36 * v6 + 36; v21 = v47; if ( v20 < (int)v47 ) v21 = (unsigned int)v20; v47 = v21; if ( v19 < (int)v21 ) { v22 = v19 | 1; v40 = v46 - 1; v47 = (unsigned int)-(int)v47; v44 = v5; do { *(_QWORD *)&v24 = GameManager::sharedState(v17, v16, v18).u64[0]; isIconUnlocked = GameManager::isIconUnlocked(v25, v22, v5, v24); v17 = v46; v16 = v22; v27 = (_QWORD *)GJItemIcon::create(v46, v22, 11513775, 0xFFFFFF, 0, 1, 1, 0xFFFFFF); if ( v27 ) { v28 = (_QWORD **)v27; *(float *)&v29 = 1.0; if ( (unsigned int)v40 <= 0xE ) v29 = dword_100A08458[v40]; v30 = (_QWORD *)*v27; v42 = *(float *)&v29; ((void (__fastcall *)(_QWORD **))v30[20])(v28); v31 = CCMenuItemSpriteExtra::create((__int64)v28, 0, (__int64)v45, (__int64)GJGarageLayer::onSelect, 0); v32 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v39 + 328LL))(v39); (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v31 + 320LL))(v31, v32); v50 = *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v31 + 328LL))(v31) * 0.5; v33 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v31 + 328LL))(v31); sub_100278250(&v38, v50, *(float *)(v33 + 4) * 0.5); ((void (__fastcall *)(_QWORD **, float *))(*v28)[23])(v28, &v38); (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v31 + 72LL))(v31, v22); v5 = v44; v31[124] = v44; v17 = v41; v16 = (unsigned __int64)v31; sub_1007FEBF0(v41, v31); if ( v43 == v22 ) v45[70] = (__int64)v31; if ( !isIconUnlocked ) { *(float *)&v34 = 1.0 / v42; v50 = 1.0 / v42; GJItemIcon::darkenStoreItem(v28, 3289650); v35 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"GJ_lockGray_001.png", COERCE_DOUBLE((unsigned __int64)v34)); ((void (__fastcall *)(_QWORD **, char *, __int64))(*v28)[58])(v28, v35, 10); v36 = (*(__int64 (__fastcall **)(_QWORD *))(*v28[75] + 192LL))(v28[75]); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v35 + 184LL))(v35, v36); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v35 + 160LL))(v35, v50 * 0.80000001); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v35 + 912LL))(v35, 200); v49 = -81; v48 = -20561; v17 = (unsigned __int64)v35; v16 = (unsigned __int64)&v48; (*(void (__fastcall **)(char *, __int16 *))(*(_QWORD *)v35 + 960LL))(v35, &v48); } } v23 = v22 + v47 + 1; ++v22; } while ( v23 != 1 ); } return v41; }
GD Web Decomp Icon

GD Web Decomp

Raw Source