// // InfoLayer::setupPageInfo from 0x1003f1838 to 0x1003f1ab0 (632 bytes) // // 2 xrefs: // > sub_1003F1B68 @ 0x1003f1b6c // > @ 0x10094b558 // // 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:04:30 +0000 // __int64 __fastcall InfoLayer::setupPageInfo(__int64 a1, char *a2, char *a3) { __int64 result; // x0 _QWORD *v6; // x20 std::string *p_str; // x8 std::string::size_type size; // x22 std::string *v9; // x9 std::string::size_type v10; // x11 std::string *v11; // x10 __int64 v12; // x8 __int64 v13; // x23 std::string::size_type v14; // x21 std::string *v15; // x1 __int64 v16; // x25 bool v17; // zf std::string::size_type v18; // x11 std::string *v19; // x8 _BYTE *v20; // x9 _BYTE *v21; // x10 std::string::size_type v22; // x11 __int64 v23; // x8 __int64 v24; // x0 __int64 v25; // x0 __int64 v26; // x0 std::string __str; // [xsp+8h] [xbp-88h] BYREF std::allocator __a[24]; // [xsp+20h] [xbp-70h] BYREF std::string v29; // [xsp+38h] [xbp-58h] BYREF result = sub_1003F15A0(a1, a3); if ( !(_DWORD)result ) return result; if ( a2[23] < 0 ) a2 = *(char **)a2; sub_100009900(&__str, a2); v6 = sub_1002E736C(); if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_str = &__str; else p_str = (std::string *)__str.__r_.__value_.__r.__words[0]; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) size = HIBYTE(__str.__r_.__value_.__r.__words[2]); else size = __str.__r_.__value_.__l.__size_; if ( size ) { v9 = (std::string *)((char *)p_str + size); v10 = size; v11 = p_str; while ( v11->__r_.__value_.__s.__data_[0] != 58 ) { v11 = (std::string *)((char *)v11 + 1); if ( !--v10 ) { v11 = (std::string *)((char *)p_str + size); break; } } v12 = (char *)v11 - (char *)p_str; if ( v11 == v9 ) v13 = -1; else v13 = v12; } else { v13 = -1; } v14 = 0; do { std::string::basic_string(&v29, &__str, v14, v13 - v14, __a); if ( SHIBYTE(v29.__r_.__value_.__r.__words[2]) < 0 ) { if ( v14 == size && !v29.__r_.__value_.__l.__size_ ) goto LABEL_29; v15 = (std::string *)v29.__r_.__value_.__r.__words[0]; } else { if ( v14 == size && !*((_BYTE *)&v29.__r_.__value_.__s + 23) ) goto LABEL_29; v15 = &v29; } sub_100009900(__a, (char *)v15); sub_1003064AC((__int128 *)__a); sub_1002E74E0((__int64)v6); if ( (*(_BYTE *)&__a[23].std::__non_trivial_if & 0x80000000) != 0 ) operator delete(*(void **)&__a[0].std::__non_trivial_if); LABEL_29: if ( v13 == -1 ) goto LABEL_30; v14 = v13 + 1; v18 = __str.__r_.__value_.__l.__size_; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v19 = &__str; else v19 = (std::string *)__str.__r_.__value_.__r.__words[0]; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v18 = HIBYTE(__str.__r_.__value_.__r.__words[2]); if ( v18 <= v14 ) { LABEL_30: v16 = -1; } else { v20 = (char *)v19 + v18; v21 = (char *)v19 + v14; v22 = ~v13 + v18; while ( *v21 != 58 ) { ++v21; if ( !--v22 ) { v21 = v20; break; } } v23 = v21 - (_BYTE *)v19; if ( v21 == v20 ) v16 = -1; else v16 = v23; } if ( SHIBYTE(v29.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v29.__r_.__value_.__l.__data_); v17 = v13 == -1; v13 = v16; } while ( !v17 ); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); result = sub_1002E757C((__int64)v6); if ( (unsigned int)result >= 3 ) { v24 = sub_1002E75A0((__int64)v6, 0); *(_DWORD *)(a1 + 856) = cocos2d::CCString::intValue(v24); v25 = sub_1002E75A0((__int64)v6, 1u); *(_DWORD *)(a1 + 860) = cocos2d::CCString::intValue(v25); v26 = sub_1002E75A0((__int64)v6, 2u); *(_DWORD *)(a1 + 864) = cocos2d::CCString::intValue(v26); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 792) + 344LL))( *(_QWORD *)(a1 + 792), *(_DWORD *)(a1 + 860) != 0); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 784) + 344LL))( *(_QWORD *)(a1 + 784), *(_DWORD *)(a1 + 864) + *(_DWORD *)(a1 + 860) < *(_DWORD *)(a1 + 856)); return sub_1003F1B00(a1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source