{"type": "func", "start": 7546872, "end": 7547072, "name": "AchievementsLayer::setupPageInfo", "pseudocode": "// \n// AchievementsLayer::setupPageInfo from 0x7327f8 to 0x7328c0 (200 bytes)\n// \n// 2 xrefs:\n// > AchievementsLayer::loadPage @ 0x732b88\n// > <???> @ 0x79198\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:52:37 +0000\n// \n\n__int64 __fastcall AchievementsLayer::setupPageInfo(AchievementsLayer *this, unsigned int a2, int a3, int a4)\n{\n  __int64 v7; // x2\n  unsigned int v8; // w19\n  __int64 v9; // x2\n  cocos2d::CCString *v10; // x0\n  __int64 CString; // x0\n\n  (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 77) + 344LL))(*((_QWORD *)this + 77), a3 != 0);\n  v7 = *((_QWORD *)this + 76);\n  v8 = a3 + a4;\n  if ( a3 + a4 >= (int)a2 )\n    (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v7 + 344LL))(*((_QWORD *)this + 76), 0);\n  else\n    (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v7 + 344LL))(*((_QWORD *)this + 76), 1);\n  if ( (int)v8 > (int)a2 )\n    v9 = a2;\n  else\n    v9 = v8;\n  v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"%i to %i of %i\",\n                               (const char *)(unsigned int)(a3 + 1),\n                               v9,\n                               a2);\n  CString = cocos2d::CCString::getCString(v10);\n  return (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 928LL))(\n           *((_QWORD *)this + 78),\n           CString);\n}", "assembly": "; \n; AchievementsLayer::setupPageInfo from 0x7327f8 to 0x7328c0 (200 bytes)\n; \n; 2 xrefs:\n; > AchievementsLayer::loadPage @ 0x732b88\n; > <???> @ 0x79198\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:52:37 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7327f8\nMOV             X29, SP                                                ; +0x4, 0x7327fc\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x732800\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x732804\nMOV             W22, W2                                                ; +0x10, 0x732808\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x14, 0x73280c\nMOV             W20, W1                                                ; +0x18, 0x732810\nMOV             X21, X0                                                ; +0x1c, 0x732814\nLDR             X2, [X0,#0x268]                                        ; +0x20, 0x732818\nMOV             W1, #0                                                 ; +0x24, 0x73281c\nCBZ             W22, loc_732828                                        ; +0x28, 0x732820\nMOV             W1, #1                                                 ; +0x2c, 0x732824\nMOV             X0, X2                                                 ; +0x30, 0x732828\nLDR             X2, [X2]                                               ; +0x34, 0x73282c\nLDR             X2, [X2,#0x158]                                        ; +0x38, 0x732830\nBLR             X2                                                     ; +0x3c, 0x732834\nLDR             X3, [X29,#0x40+var_8]                                  ; +0x40, 0x732838\nLDR             X2, [X21,#0x260]                                       ; +0x44, 0x73283c\nADD             W19, W22, W3                                           ; +0x48, 0x732840\nCMP             W19, W20                                               ; +0x4c, 0x732844\nB.GE            loc_7328A8                                             ; +0x50, 0x732848\nMOV             X0, X2                                                 ; +0x54, 0x73284c\nLDR             X2, [X2]                                               ; +0x58, 0x732850\nMOV             W1, #1                                                 ; +0x5c, 0x732854\nLDR             X2, [X2,#0x158]                                        ; +0x60, 0x732858\nBLR             X2                                                     ; +0x64, 0x73285c\nCMP             W19, W20                                               ; +0x68, 0x732860\nADRP            X0, #aIToIOfI@PAGE; \"%i to %i of %i\"                   ; +0x6c, 0x732864\nCSEL            W2, W19, W20, LE                                       ; +0x70, 0x732868\nMOV             W3, W20                                                ; +0x74, 0x73286c\nADD             W1, W22, #1; char *                                    ; +0x78, 0x732870\nADD             X0, X0, #aIToIOfI@PAGEOFF; \"%i to %i of %i\"            ; +0x7c, 0x732874\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x80, 0x732878\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x84, 0x73287c\nMOV             X1, X0                                                 ; +0x88, 0x732880\nLDR             X2, [X21,#0x270]                                       ; +0x8c, 0x732884\nMOV             X0, X2                                                 ; +0x90, 0x732888\nLDR             X2, [X2]                                               ; +0x94, 0x73288c\nLDR             X2, [X2,#0x3A0]                                        ; +0x98, 0x732890\nBLR             X2                                                     ; +0x9c, 0x732894\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa0, 0x732898\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xa4, 0x73289c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa8, 0x7328a0\nRET                                                                    ; +0xac, 0x7328a4\nMOV             X0, X2                                                 ; +0xb0, 0x7328a8\nLDR             X2, [X2]                                               ; +0xb4, 0x7328ac\nMOV             W1, #0                                                 ; +0xb8, 0x7328b0\nLDR             X2, [X2,#0x158]                                        ; +0xbc, 0x7328b4\nBLR             X2                                                     ; +0xc0, 0x7328b8\nB               loc_732860                                             ; +0xc4, 0x7328bc", "xrefs": ["AchievementsLayer::loadPage @ 0x732b88", "<???> @ 0x79198"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}