{"type": "func", "start": 4993584, "end": 4993888, "name": "FRequestProfilePage::setupPageInfo", "pseudocode": "// \n// FRequestProfilePage::setupPageInfo from 0x4c3230 to 0x4c3360 (304 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'FRequestProfilePage::setupPageInfo @ 0x4c3370\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall FRequestProfilePage::setupPageInfo(FRequestProfilePage *a1, char **a2, char *a3)\n{\n  cocos2d::CCArray *v5; // r0\n  cocos2d::CCArray *v6; // r5\n  int v7; // r8\n  int v8; // r7\n  const std::string *v9; // r1\n  cocos2d::CCObject *v10; // r0\n  cocos2d::CCString *v11; // r0\n  cocos2d::CCString *v12; // r0\n  cocos2d::CCString *v13; // r0\n  int v14; // [sp+0h] [bp-24h]\n  int v15; // [sp+10h] [bp-14h] BYREF\n  char *v16; // [sp+14h] [bp-10h] BYREF\n  char v17; // [sp+18h] [bp-Ch] BYREF\n\n  if ( FRequestProfilePage::isCorrect(a1, a3) )\n  {\n    v5 = (cocos2d::CCArray *)sub_776584((int)&v15, *a2);\n    v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5);\n    v7 = sub_774A78((int)&v15, \":\");\n    v8 = 0;\n    v14 = *(_DWORD *)(v15 - 12);\n    while ( 1 )\n    {\n      sub_776158(&v16, &v15, v8, v7 - v8);\n      if ( *((_DWORD *)v16 - 3) || v8 != v14 )\n      {\n        sub_776584((int)&v17, v16);\n        v10 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v17, v9);\n        cocos2d::CCArray::addObject(v6, v10);\n        sub_774008(&v17);\n      }\n      if ( v7 == -1 )\n        break;\n      v8 = v7 + 1;\n      v7 = sub_774A78((int)&v15, \":\");\n      sub_774008(&v16);\n    }\n    sub_774008(&v16);\n    sub_774008(&v15);\n    if ( cocos2d::CCArray::count(v6) > 2u )\n    {\n      v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, 0);\n      a1->m_itemCount = cocos2d::CCString::intValue(v11);\n      v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, 1u);\n      a1->m_pageStartIdx = cocos2d::CCString::intValue(v12);\n      v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, 2u);\n      a1->m_pageEndIdx = cocos2d::CCString::intValue(v13);\n      FRequestProfilePage::updateLevelsLabel(a1);\n      FRequestProfilePage::updatePageArrows(a1);\n    }\n  }\n}", "assembly": "; \n; FRequestProfilePage::setupPageInfo from 0x4c3230 to 0x4c3360 (304 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'FRequestProfilePage::setupPageInfo @ 0x4c3370\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x4c3230\nSUB             SP, SP, #0x24                                          ; +0x4, 0x4c3234\nLDR             R4, =(__stack_chk_guard_ptr - 0x4C3242)                ; +0x6, 0x4c3236\nMOV             R5, R1                                                 ; +0x8, 0x4c3238\nMOV             R1, R2; char *                                         ; +0xa, 0x4c323a\nMOV             R6, R0                                                 ; +0xc, 0x4c323c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4c323e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x4c3240\nLDR             R3, [R4]                                               ; +0x12, 0x4c3242\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x14, 0x4c3244\nBL              _ZN19FRequestProfilePage9isCorrectEPKc; FRequestProfilePage::isCorrect(char const*) ; +0x16, 0x4c3246\nSTR             R4, [SP,#0x24+var_20]                                  ; +0x1a, 0x4c324a\nCMP             R0, #0                                                 ; +0x1c, 0x4c324c\nBEQ             loc_4C334C                                             ; +0x1e, 0x4c324e\nADD             R4, SP, #0x24+var_14                                   ; +0x20, 0x4c3250\nLDR             R1, [R5]; char *                                       ; +0x22, 0x4c3252\nADD             R2, SP, #0x24+var_1C                                   ; +0x24, 0x4c3254\nMOV             R0, R4; int                                            ; +0x26, 0x4c3256\nBL              sub_776584                                             ; +0x28, 0x4c3258\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x2c, 0x4c325c\nLDR             R1, =(asc_96A3EB - 0x4C326C); \":\"                      ; +0x30, 0x4c3260\nMOV             R5, R0                                                 ; +0x32, 0x4c3262\nMOVS            R2, #0                                                 ; +0x34, 0x4c3264\nMOV             R0, R4; int                                            ; +0x36, 0x4c3266\nADD             R1, PC; \":\"                                            ; +0x38, 0x4c3268\nBL              sub_774A78                                             ; +0x3a, 0x4c326a\nLDR             R3, [SP,#0x24+var_14]                                  ; +0x3e, 0x4c326e\nADD.W           R9, SP, #0x24+var_10                                   ; +0x40, 0x4c3270\nLDR.W           R11, =(asc_96A3EB - 0x4C3288); \":\"                     ; +0x44, 0x4c3274\nADD.W           R10, SP, #0x24+var_C                                   ; +0x48, 0x4c3278\nMOV             R8, R0                                                 ; +0x4c, 0x4c327c\nMOVS            R7, #0                                                 ; +0x4e, 0x4c327e\nLDR.W           R3, [R3,#-0xC]                                         ; +0x50, 0x4c3280\nADD             R11, PC; \":\"                                           ; +0x54, 0x4c3284\nSTR             R3, [SP,#0x24+var_24]                                  ; +0x56, 0x4c3286\nMOV             R0, R9                                                 ; +0x58, 0x4c3288\nMOV             R1, R4                                                 ; +0x5a, 0x4c328a\nMOV             R2, R7                                                 ; +0x5c, 0x4c328c\nRSB.W           R3, R7, R8                                             ; +0x5e, 0x4c328e\nBL              sub_776158                                             ; +0x62, 0x4c3292\nLDR             R1, [SP,#0x24+var_10]; char *                          ; +0x66, 0x4c3296\nLDR.W           R3, [R1,#-0xC]                                         ; +0x68, 0x4c3298\nCBNZ            R3, loc_4C32A4                                         ; +0x6c, 0x4c329c\nLDR             R3, [SP,#0x24+var_24]                                  ; +0x6e, 0x4c329e\nCMP             R7, R3                                                 ; +0x70, 0x4c32a0\nBEQ             loc_4C32C0                                             ; +0x72, 0x4c32a2\nMOV             R0, R10; int                                           ; +0x74, 0x4c32a4\nADD             R2, SP, #0x24+var_18                                   ; +0x76, 0x4c32a6\nBL              sub_776584                                             ; +0x78, 0x4c32a8\nMOV             R0, R10                                                ; +0x7c, 0x4c32ac\nBL              _ZN7cocos2d8CCString6createERKSs; cocos2d::CCString::create(std::string const&) ; +0x7e, 0x4c32ae\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x82, 0x4c32b2\nMOV             R0, R5; this                                           ; +0x84, 0x4c32b4\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x86, 0x4c32b6\nMOV             R0, R10                                                ; +0x8a, 0x4c32ba\nBL              sub_774008                                             ; +0x8c, 0x4c32bc\nCMP.W           R8, #0xFFFFFFFF                                        ; +0x90, 0x4c32c0\nBEQ             loc_4C32DE                                             ; +0x94, 0x4c32c4\nADD.W           R7, R8, #1                                             ; +0x96, 0x4c32c6\nMOV             R0, R4; int                                            ; +0x9a, 0x4c32ca\nMOV             R1, R11; char *                                        ; +0x9c, 0x4c32cc\nMOV             R2, R7                                                 ; +0x9e, 0x4c32ce\nBL              sub_774A78                                             ; +0xa0, 0x4c32d0\nMOV             R8, R0                                                 ; +0xa4, 0x4c32d4\nMOV             R0, R9                                                 ; +0xa6, 0x4c32d6\nBL              sub_774008                                             ; +0xa8, 0x4c32d8\nB               loc_4C3288                                             ; +0xac, 0x4c32dc\nMOV             R0, R9                                                 ; +0xae, 0x4c32de\nBL              sub_774008                                             ; +0xb0, 0x4c32e0\nMOV             R0, R4                                                 ; +0xb4, 0x4c32e4\nBL              sub_774008                                             ; +0xb6, 0x4c32e6\nMOV             R0, R5; this                                           ; +0xba, 0x4c32ea\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xbc, 0x4c32ec\nCMP             R0, #2                                                 ; +0xc0, 0x4c32f0\nBLS             loc_4C334C                                             ; +0xc2, 0x4c32f2\nMOVS            R1, #0; unsigned int                                   ; +0xc4, 0x4c32f4\nMOV             R0, R5; this                                           ; +0xc6, 0x4c32f6\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xc8, 0x4c32f8\nBL              _ZNK7cocos2d8CCString8intValueEv; cocos2d::CCString::intValue(void) ; +0xcc, 0x4c32fc\nMOVS            R1, #1; unsigned int                                   ; +0xd0, 0x4c3300\nSTR.W           R0, [R6,#0x22C]                                        ; +0xd2, 0x4c3302\nMOV             R0, R5; this                                           ; +0xd6, 0x4c3306\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xd8, 0x4c3308\nBL              _ZNK7cocos2d8CCString8intValueEv; cocos2d::CCString::intValue(void) ; +0xdc, 0x4c330c\nMOVS            R1, #2; unsigned int                                   ; +0xe0, 0x4c3310\nSTR.W           R0, [R6,#0x230]                                        ; +0xe2, 0x4c3312\nMOV             R0, R5; this                                           ; +0xe6, 0x4c3316\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xe8, 0x4c3318\nBL              _ZNK7cocos2d8CCString8intValueEv; cocos2d::CCString::intValue(void) ; +0xec, 0x4c331c\nSTR.W           R0, [R6,#0x234]                                        ; +0xf0, 0x4c3320\nMOV             R0, R6; this                                           ; +0xf4, 0x4c3324\nBL              _ZN19FRequestProfilePage17updateLevelsLabelEv; FRequestProfilePage::updateLevelsLabel(void) ; +0xf6, 0x4c3326\nMOV             R0, R6; this                                           ; +0xfa, 0x4c332a\nBL              _ZN19FRequestProfilePage16updatePageArrowsEv; FRequestProfilePage::updatePageArrows(void) ; +0xfc, 0x4c332c\nB               loc_4C334C                                             ; +0x100, 0x4c3330\nMOV             R0, R9                                                 ; +0x102, 0x4c3332\nBL              sub_774008                                             ; +0x104, 0x4c3334\nB               loc_4C333A                                             ; +0x108, 0x4c3338\nMOV             R0, R4                                                 ; +0x10a, 0x4c333a\nBL              sub_774008                                             ; +0x10c, 0x4c333c\nBL              __cxa_end_cleanup                                      ; +0x110, 0x4c3340\nMOV             R0, R10                                                ; +0x114, 0x4c3344\nBL              sub_774008                                             ; +0x116, 0x4c3346\nB               loc_4C3332                                             ; +0x11a, 0x4c334a\nLDR             R3, [SP,#0x24+var_20]                                  ; +0x11c, 0x4c334c\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x11e, 0x4c334e\nLDR             R3, [R3]                                               ; +0x120, 0x4c3350\nCMP             R2, R3                                                 ; +0x122, 0x4c3352\nBEQ             loc_4C335A                                             ; +0x124, 0x4c3354\nBLX             __stack_chk_fail                                       ; +0x126, 0x4c3356\nADD             SP, SP, #0x24 ; '$'                                    ; +0x12a, 0x4c335a\nPOP.W           {R4-R11,PC}                                            ; +0x12c, 0x4c335c", "xrefs": ["`non-virtual thunk to'FRequestProfilePage::setupPageInfo @ 0x4c3370"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}