// // ShareLevelLayer::selectRating from 0x100313f24 to 0x1003140a0 (380 bytes) // // 2 xrefs: // > sub_1003138AC @ 0x100313b78 // > sub_1003138AC @ 0x1003138f8 // // 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 11:03:14 +0000 // __int64 __fastcall ShareLevelLayer::selectRating(__int64 a1, __int64 a2) { __int64 CString; // x0 unsigned int v4; // w20 __int64 v5; // x21 __int64 v6; // x22 int v7; // w25 const char *v8; // x1 unsigned int v9; // w8 const char *v10; // x20 int v11; // w8 int v12; // w12 int v13; // w11 int v14; // w10 void *v15; // x0 __int64 v16; // x19 __int64 v17; // x0 __int64 v18; // x1 if ( a2 ) *(_DWORD *)(a1 + 672) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); CString = sub_1002E757C(*(_QWORD *)(a1 + 680)); if ( (_DWORD)CString ) { v4 = 0; do { v5 = sub_1002E75A0(*(_QWORD *)(a1 + 680), v4); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1072LL))(v5); v7 = *(_DWORD *)(a1 + 672); if ( v7 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) ) v8 = "GJ_button_01.png"; else v8 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v6, (__int64)v8); ++v4; CString = sub_1002E757C(*(_QWORD *)(a1 + 680)); } while ( v4 < (unsigned int)CString ); } v9 = *(_DWORD *)(a1 + 672); *(_DWORD *)(*(_QWORD *)(a1 + 664) + 1044LL) = v9; if ( (int)v9 >= 2 ) { if ( v9 == 2 ) { v11 = 1; } else if ( v9 == 3 ) { v11 = 2; } else { if ( v9 == 10 ) v12 = 6; else v12 = 0; if ( v9 >= 0xA ) v13 = v12; else v13 = 5; if ( v9 >= 8 ) v14 = v13; else v14 = 4; if ( v9 >= 6 ) v11 = v14; else v11 = 3; } goto LABEL_29; } if ( v9 != 1 ) { v11 = 0; LABEL_29: v15 = sub_1003065B0("difficulty_%02d_btn_001.png", v11); CString = cocos2d::CCString::getCString((__int64)v15); v10 = (const char *)CString; goto LABEL_30; } v10 = "difficulty_auto_btn_001.png"; LABEL_30: v16 = *(_QWORD *)(a1 + 688); v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(CString); v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v10); return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 1160LL))(v16, v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source