// // GJDifficultySprite::getDifficultyFrame from 0xa31298 to 0xa313fc (356 bytes) // // 3 xrefs: // > GJDifficultySprite::init @ 0xa31430 // > GJDifficultySprite::updateDifficultyFrame @ 0xa315c4 // > @ 0xae4c0 // // 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 12:59:47 +0000 // __int64 *__usercall GJDifficultySprite::getDifficultyFrame@(char *a1@, int a2@, __int64 *a3@) { int v4; // w21 cocos2d::CCString *v6; // x0 const char *CString; // x0 const char *v8; // x24 size_t v9; // x0 size_t v10; // x20 unsigned __int64 v11; // x0 __int64 v12; // x22 __int64 v13; // x0 void *v14; // x3 v4 = (int)a1; v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_", (const char *)(unsigned int)a1); CString = (const char *)cocos2d::CCString::getCString(v6); *a3 = 0; a3[1] = 0; v8 = CString; a3[2] = 0; v9 = strlen(CString); v10 = v9; if ( v9 > 0xFFFFFFFFFFFFFFEFLL ) sub_62D99C(); if ( v9 <= 0x16 ) { *(_BYTE *)a3 = 2 * v9; v14 = (char *)a3 + 1; if ( !v9 ) goto LABEL_5; } else { v11 = (v9 + 16) & 0xFFFFFFFFFFFFFFF0LL; v12 = v11 | 1; v13 = operator new(v11); *a3 = v12; v14 = (void *)v13; a3[2] = v13; a3[1] = v10; } v14 = memcpy(v14, v8, v10); LABEL_5: *((_BYTE *)v14 + v10) = 0; if ( (unsigned int)(v4 - 6) <= 4 && a2 == 1 ) { std::string::append((__int64)a3, "btn2_001.png", 0xCu); return a3; } else { std::string::append((__int64)a3, "btn_001.png", 0xBu); if ( v4 == -1 ) std::string::assign(a3, "difficulty_auto_btn_001.png"); return a3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source