// // FRequestProfilePage::setupPageInfo from 0xa4d6d0 to 0xa4daf8 (1064 bytes) // // 3 xrefs: // > `non-virtual thunk to'FRequestProfilePage::setupPageInfo @ 0xa4dafc // > @ 0xe0a40 // > @ 0x148b9e8 // // 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 13:00:03 +0000 // __int64 __fastcall FRequestProfilePage::setupPageInfo(__int64 a1, __int64 a2, char *a3) { const char *v6; // x1 size_t v7; // x0 cocos2d::CCArray *v8; // x0 __int64 v9; // x0 unsigned __int8 v10; // w2 cocos2d::CCArray *v11; // x25 unsigned __int64 v12; // x24 _BYTE *v13; // x19 __int64 v14; // x22 unsigned __int64 v15; // x19 size_t v16; // x3 unsigned __int64 v17; // x2 char *i; // x1 size_t v19; // x2 char *v20; // x1 int v21; // w1 const char *v22; // x1 size_t v23; // x0 cocos2d::CCObject *v24; // x0 char *v25; // x2 unsigned __int64 v26; // x0 char *v27; // x3 char *v28; // x0 cocos2d::CCString *v29; // x0 cocos2d::CCString *v30; // x0 cocos2d::CCString *v31; // x0 __int64 *v32; // x20 _BYTE *v33; // x22 std::logic_error *exception; // x20 char *v35; // [xsp+68h] [xbp+68h] char *v36; // [xsp+68h] [xbp+68h] __int64 v37; // [xsp+70h] [xbp+70h] BYREF unsigned __int64 v38; // [xsp+78h] [xbp+78h] void *v39; // [xsp+80h] [xbp+80h] __int64 v40; // [xsp+88h] [xbp+88h] BYREF __int64 v41; // [xsp+90h] [xbp+90h] void *v42; // [xsp+98h] [xbp+98h] __int64 v43[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v44; // [xsp+B0h] [xbp+B0h] if ( *(_BYTE *)(a1 + 880) || !FRequestProfilePage::isCorrect((FRequestProfilePage *)a1, a3) ) return _stack_chk_guard; if ( (*(_BYTE *)a2 & 1) != 0 ) v6 = *(const char **)(a2 + 16); else v6 = (const char *)(a2 + 1); v35 = (char *)v6; v37 = 0; v38 = 0; v39 = nullptr; v7 = strlen(v6); v8 = (cocos2d::CCArray *)std::string::__init(&v37, v35, v7); v9 = cocos2d::CCArray::create(v8); v10 = v37; v11 = (cocos2d::CCArray *)v9; if ( (v37 & 1) == 0 ) { LODWORD(v12) = (int)(unsigned __int8)v37 >> 1; if ( !(_DWORD)v12 ) goto LABEL_8; v13 = (char *)&v37 + 1; v14 = -1; v32 = (__int64 *)((char *)&v37 + (int)v12 + 1); if ( v32 == (__int64 *)((char *)&v37 + 1) ) { LABEL_61: v12 = (int)v12; goto LABEL_10; } LABEL_53: v33 = v13; if ( *v13 == 58 ) { v14 = 0; } else { do { if ( v32 == (__int64 *)++v33 ) { v14 = -1; goto LABEL_64; } } while ( *v33 != 58 ); v14 = v33 - v13; } LABEL_64: LODWORD(v12) = (int)(unsigned __int8)v37 >> 1; if ( (v37 & 1) != 0 ) { v12 = v38; goto LABEL_10; } goto LABEL_61; } v12 = v38; v13 = v39; if ( v38 ) { v32 = (__int64 *)((char *)v39 + v38); if ( v39 == (char *)v39 + v38 ) goto LABEL_9; goto LABEL_53; } LABEL_8: v12 = 0; LABEL_9: v14 = -1; LABEL_10: v40 = 0; v41 = 0; v15 = 0; v42 = nullptr; v16 = v14; if ( (v37 & 1) == 0 ) goto LABEL_29; LABEL_11: v17 = v38; if ( v15 > v38 ) { LABEL_62: exception = (std::logic_error *)_cxa_allocate_exception(0x10u); std::logic_error::logic_error(exception, "basic_string"); *(_QWORD *)exception = off_1536D68; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))std::logic_error::~logic_error); } for ( i = (char *)v39; ; i = (char *)&v37 + 1 ) { v19 = v17 - v15; v20 = &i[v15]; if ( v19 > v16 ) v19 = v16; std::string::__init(&v40, v20, v19); v21 = v40 & 1; if ( v21 ) { if ( v15 == v12 ) { v21 = 1; if ( !v41 ) goto LABEL_22; } v22 = (const char *)v42; } else { if ( v15 == v12 && !((int)(unsigned __int8)v40 >> 1) ) goto LABEL_22; v22 = (char *)&v40 + 1; } v36 = (char *)v22; v43[0] = 0; v43[1] = 0; v44 = nullptr; v23 = strlen(v22); std::string::__init(v43, v36, v23); v24 = (cocos2d::CCObject *)cocos2d::CCString::create(v43); cocos2d::CCArray::addObject(v11, v24); if ( (v43[0] & 1) != 0 ) operator delete(v44); v21 = v40 & 1; LABEL_22: if ( v14 == -1 ) break; v15 = v14 + 1; if ( (v37 & 1) != 0 ) { v25 = (char *)v39; v26 = v38; } else { v26 = (unsigned __int8)v37 >> 1; v25 = (char *)&v37 + 1; } v14 = -1; if ( v15 >= v26 || (v27 = &v25[v15], v28 = &v25[v26], &v25[v15] == v28) ) { if ( !v21 ) goto LABEL_27; } else if ( v25[v15] == 58 ) { LABEL_43: v14 = v27 - v25; if ( !v21 ) goto LABEL_27; } else { while ( v28 != ++v27 ) { if ( *v27 == 58 ) goto LABEL_43; } v14 = -1; if ( !v21 ) { LABEL_27: v10 = v37; goto LABEL_28; } } operator delete(v42); v10 = v37; LABEL_28: v40 = 0; v16 = v14 - v15; v41 = 0; v42 = nullptr; if ( (v10 & 1) != 0 ) goto LABEL_11; LABEL_29: v17 = v10 >> 1; if ( v15 > v17 ) goto LABEL_62; } if ( v21 ) operator delete(v42); if ( (v37 & 1) != 0 ) operator delete(v39); if ( (unsigned int)cocos2d::CCArray::count(v11) > 2 ) { v29 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 0); *(_DWORD *)(a1 + 904) = cocos2d::CCString::intValue(v29); v30 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 1u); *(_DWORD *)(a1 + 908) = cocos2d::CCString::intValue(v30); v31 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 2u); *(_DWORD *)(a1 + 912) = cocos2d::CCString::intValue(v31); FRequestProfilePage::updateLevelsLabel((FRequestProfilePage *)a1); FRequestProfilePage::updatePageArrows((FRequestProfilePage *)a1); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source