// // InfoLayer::setupPageInfo from 0x908ba4 to 0x90901c (1144 bytes) // // 3 xrefs: // > `non-virtual thunk to'InfoLayer::setupPageInfo @ 0x909020 // > @ 0xa5298 // > @ 0x1466530 // // 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:57:10 +0000 // __int64 __fastcall InfoLayer::setupPageInfo(__int64 a1, __int64 a2, char *a3) { const char *v5; // x1 size_t v6; // x0 cocos2d::CCArray *v7; // x0 __int64 v8; // x0 unsigned __int8 v9; // w2 cocos2d::CCArray *v10; // x25 unsigned __int64 v11; // x24 _BYTE *v12; // x19 __int64 v13; // x22 unsigned __int64 v14; // x19 size_t v15; // x3 unsigned __int64 v16; // x2 char *i; // x1 size_t v18; // x2 char *v19; // x1 int v20; // w1 const char *v21; // x1 size_t v22; // x0 cocos2d::CCObject *v23; // x0 char *v24; // x2 unsigned __int64 v25; // x0 cocos2d::CCString *v26; // x0 cocos2d::CCString *v27; // x0 cocos2d::CCString *v28; // x0 __int64 v29; // x2 __int64 *v31; // x20 char *v32; // x3 char *v33; // x0 _BYTE *v34; // x22 std::logic_error *exception; // x20 char *v36; // [xsp+68h] [xbp+68h] char *v37; // [xsp+68h] [xbp+68h] __int64 v38; // [xsp+70h] [xbp+70h] BYREF unsigned __int64 v39; // [xsp+78h] [xbp+78h] void *v40; // [xsp+80h] [xbp+80h] __int64 v41; // [xsp+88h] [xbp+88h] BYREF __int64 v42; // [xsp+90h] [xbp+90h] void *v43; // [xsp+98h] [xbp+98h] __int64 v44[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v45; // [xsp+B0h] [xbp+B0h] if ( !InfoLayer::isCorrect((InfoLayer *)a1, a3) ) return _stack_chk_guard; v5 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v5 = *(const char **)(a2 + 16); v36 = (char *)v5; v38 = 0; v39 = 0; v40 = nullptr; v6 = strlen(v5); v7 = (cocos2d::CCArray *)std::string::__init(&v38, v36, v6); v8 = cocos2d::CCArray::create(v7); v9 = v38; v10 = (cocos2d::CCArray *)v8; if ( (v38 & 1) == 0 ) { LODWORD(v11) = (int)(unsigned __int8)v38 >> 1; if ( !(_DWORD)v11 ) goto LABEL_6; v12 = (char *)&v38 + 1; v13 = -1; v31 = (__int64 *)((char *)&v38 + (int)v11 + 1); if ( v31 == (__int64 *)((char *)&v38 + 1) ) { LABEL_40: v11 = (int)v11; goto LABEL_8; } LABEL_57: v34 = v12; if ( *v12 == 58 ) { v13 = 0; } else { do { if ( v31 == (__int64 *)++v34 ) { v13 = -1; goto LABEL_64; } } while ( *v34 != 58 ); v13 = v34 - v12; } LABEL_64: LODWORD(v11) = (int)(unsigned __int8)v38 >> 1; if ( (v38 & 1) != 0 ) { v11 = v39; goto LABEL_8; } goto LABEL_40; } v11 = v39; v12 = v40; if ( v39 ) { v31 = (__int64 *)((char *)v40 + v39); if ( v40 == (char *)v40 + v39 ) goto LABEL_7; goto LABEL_57; } LABEL_6: v11 = 0; LABEL_7: v13 = -1; LABEL_8: v41 = 0; v42 = 0; v14 = 0; v43 = nullptr; v15 = v13; if ( (v38 & 1) == 0 ) goto LABEL_27; LABEL_9: v16 = v39; if ( v14 > v39 ) { 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 *)v40; ; i = (char *)&v38 + 1 ) { v18 = v16 - v14; v19 = &i[v14]; if ( v18 > v15 ) v18 = v15; std::string::__init(&v41, v19, v18); v20 = v41 & 1; if ( v20 ) { if ( v14 == v11 ) { v20 = 1; if ( !v42 ) goto LABEL_20; } v21 = (const char *)v43; } else { if ( v14 == v11 && !((int)(unsigned __int8)v41 >> 1) ) goto LABEL_20; v21 = (char *)&v41 + 1; } v37 = (char *)v21; v44[0] = 0; v44[1] = 0; v45 = nullptr; v22 = strlen(v21); std::string::__init(v44, v37, v22); v23 = (cocos2d::CCObject *)cocos2d::CCString::create(v44); cocos2d::CCArray::addObject(v10, v23); if ( (v44[0] & 1) != 0 ) operator delete(v45); v20 = v41 & 1; LABEL_20: if ( v13 == -1 ) break; v14 = v13 + 1; if ( (v38 & 1) != 0 ) { v24 = (char *)v40; v25 = v39; } else { v25 = (unsigned __int8)v38 >> 1; v24 = (char *)&v38 + 1; } v13 = -1; if ( v14 >= v25 || (v32 = &v24[v14], v33 = &v24[v25], &v24[v14] == v33) ) { if ( !v20 ) goto LABEL_25; } else if ( v24[v14] == 58 ) { LABEL_53: v13 = v32 - v24; if ( !v20 ) goto LABEL_25; } else { while ( v33 != ++v32 ) { if ( *v32 == 58 ) goto LABEL_53; } v13 = -1; if ( !v20 ) { LABEL_25: v9 = v38; goto LABEL_26; } } operator delete(v43); v9 = v38; LABEL_26: v41 = 0; v15 = v13 - v14; v42 = 0; v43 = nullptr; if ( (v9 & 1) != 0 ) goto LABEL_9; LABEL_27: v16 = v9 >> 1; if ( v14 > v16 ) goto LABEL_62; } if ( v20 ) operator delete(v43); if ( (v38 & 1) != 0 ) operator delete(v40); if ( (unsigned int)cocos2d::CCArray::count(v10) > 2 ) { v26 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, 0); *(_DWORD *)(a1 + 856) = cocos2d::CCString::intValue(v26); v27 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, 1u); *(_DWORD *)(a1 + 860) = cocos2d::CCString::intValue(v27); v28 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, 2u); *(_DWORD *)(a1 + 864) = cocos2d::CCString::intValue(v28); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 344LL))(*(_QWORD *)(a1 + 792)); v29 = *(_QWORD *)(a1 + 784); if ( *(_DWORD *)(a1 + 860) + *(_DWORD *)(a1 + 864) >= *(_DWORD *)(a1 + 856) ) (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v29 + 344LL))(*(_QWORD *)(a1 + 784), 0); else (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v29 + 344LL))(*(_QWORD *)(a1 + 784), 1); InfoLayer::updateLevelsLabel((InfoLayer *)a1); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source