// // PauseLayer::setupPlatformerLabels from 0x1001c0c0c to 0x1001c0f50 (836 bytes) // // 1 xrefs: // > PauseLayer::setupProgressBars @ 0x1001bf698 // // 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:00:15 +0000 // void __fastcall PauseLayer::setupPlatformerLabels(__int64 a1, int a2) { __int64 v4; // x0 _QWORD *WinSize; // x0 __int64 v6; // x0 int v7; // w21 float v8; // s0 float v9; // s1 float v10; // s8 float v11; // s1 __int64 v12; // x0 __int64 v13; // x0 int PlayTimerMilli; // w0 __int64 v15; // x0 const std::string::value_type *CString; // x0 std::string *v17; // x8 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x20 __int64 v21; // x0 __int64 v22; // x0 std::string *v23; // x0 __int128 v24; // q0 void **v25; // x0 __int64 v26; // x20 std::string v27; // [xsp+28h] [xbp-98h] BYREF void *__p[2]; // [xsp+40h] [xbp-80h] BYREF signed __int64 v29; // [xsp+50h] [xbp-70h] std::string v30; // [xsp+60h] [xbp-60h] BYREF float32x2_t v31; // [xsp+78h] [xbp-48h] BYREF float32x2_t v32; // [xsp+80h] [xbp-40h] BYREF __int64 v33; // [xsp+88h] [xbp-38h] BYREF v4 = cocos2d::CCDirector::sharedDirector(a1); WinSize = cocos2d::CCDirector::getWinSize(&v33, v4); v6 = GameManager::sharedState(WinSize); v7 = *(unsigned __int8 *)(*(_QWORD *)(v6 + 544) + 1920LL); v8 = 92.0; if ( *(_BYTE *)(*(_QWORD *)(v6 + 544) + 1920LL) ) v8 = 100.0; v9 = 85.0; if ( a2 ) v9 = v8; sub_1000262BC((float *)&v32, *(float *)&v33 * 0.5, v9 + (float)(*((float *)&v33 + 1) * 0.5)); if ( (a2 & v7) != 0 ) v10 = 0.64; else v10 = 0.8; v11 = -27.0; if ( (a2 & v7) == 0 ) v11 = -35.0; sub_1000262BC((float *)&v30, 0.0, v11); sub_100026318(&v32, (float32x2_t *)&v30, &v31); v13 = GameManager::sharedState(v12); PlayTimerMilli = GJBaseGameLayer::getPlayTimerMilli(*(_QWORD *)(v13 + 544)); memset(&v30, 0, sizeof(v30)); if ( (unsigned int)(PlayTimerMilli + 3599999) > 0x6DDCFE || PlayTimerMilli / 60000 % 60 ) { if ( (unsigned int)(PlayTimerMilli + 3599999) > 0x6DDCFE ) v15 = sub_1003065B0( "%02d:%02d:%02d.%03d", PlayTimerMilli / 3600000, PlayTimerMilli / 60000 % 60, PlayTimerMilli / 1000 % 60, PlayTimerMilli % 1000); else v15 = sub_1003065B0( "%02d:%02d.%03d", PlayTimerMilli / 60000 % 60, PlayTimerMilli / 1000 % 60, PlayTimerMilli % 1000); } else { v15 = sub_1003065B0("%i.%03d", PlayTimerMilli / 1000 % 60, PlayTimerMilli % 1000); } CString = (const std::string::value_type *)cocos2d::CCString::getCString(v15); std::string::assign(&v30, CString); if ( (v30.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v17 = &v30; else v17 = (std::string *)v30.__r_.__value_.__r.__words[0]; v18 = sub_1003065B0("Time: %s", (const char *)v17); v19 = cocos2d::CCString::getCString(v18); v20 = cocos2d::CCLabelBMFont::create_1(v19, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v20, 3); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v20 + 184LL))(v20, &v32); cocos2d::CCLabelBMFont::limitLabelWidth(v20, 150.0, v10, 0.0); if ( v7 ) { v22 = GameManager::sharedState(v21); GameToolbox::pointsToString(*(unsigned int *)(*(_QWORD *)(v22 + 544) + 1916LL), (__int64)&v27); v23 = std::string::insert(&v27, 0, "Points: "); v24 = *(_OWORD *)&v23->__r_.__value_.__l.__data_; v29 = v23->__r_.__value_.__r.__words[2]; *(_OWORD *)__p = v24; v23->__r_.__value_.__l.__size_ = 0; v23->__r_.__value_.__r.__words[2] = 0; v23->__r_.__value_.__r.__words[0] = 0; if ( SHIBYTE(v27.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v27.__r_.__value_.__l.__data_); if ( v29 >= 0 ) v25 = __p; else v25 = (void **)__p[0]; v26 = cocos2d::CCLabelBMFont::create_1(v25, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v26, 3); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v26 + 184LL))(v26, &v31); cocos2d::CCLabelBMFont::limitLabelWidth(v26, 150.0, v10, 0.0); if ( SHIBYTE(v29) < 0 ) operator delete(__p[0]); } if ( SHIBYTE(v30.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v30.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source