{"type": "func", "start": 4333984, "end": 4334082, "name": "AchievementsLayer::setupPageInfo", "pseudocode": "// \n// AchievementsLayer::setupPageInfo from 0x4221a0 to 0x422202 (98 bytes)\n// \n// 1 xrefs:\n// > AchievementsLayer::loadPage @ 0x422430\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:48:02 +0000\n// \n\nint __fastcall AchievementsLayer::setupPageInfo(AchievementsLayer *this, int a2, int a3, int a4)\n{\n  int v8; // r4\n  int v9; // r2\n  cocos2d::CCString *v10; // r0\n  int CString; // r1\n\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 122) + 172))(*((_DWORD *)this + 122), a3 != 0);\n  v8 = a4 + a3;\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 121) + 172))(*((_DWORD *)this + 121), v8 < a2);\n  v9 = v8;\n  if ( v8 >= a2 )\n    v9 = a2;\n  v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"%i to %i of %i\",\n                               (const char *)(a3 + 1),\n                               v9,\n                               a2);\n  CString = cocos2d::CCString::getCString(v10);\n  return (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 123) + 464))(*((_DWORD *)this + 123), CString);\n}", "assembly": "; \n; AchievementsLayer::setupPageInfo from 0x4221a0 to 0x422202 (98 bytes)\n; \n; 1 xrefs:\n; > AchievementsLayer::loadPage @ 0x422430\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:48:02 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x4221a0\nMOV             R6, R0                                                 ; +0x4, 0x4221a4\nLDR.W           R0, [R0,#0x1E8]                                        ; +0x6, 0x4221a6\nMOV             R4, R3                                                 ; +0xa, 0x4221aa\nMOV             R7, R1                                                 ; +0xc, 0x4221ac\nMOV             R5, R2                                                 ; +0xe, 0x4221ae\nLDR             R3, [R0]                                               ; +0x10, 0x4221b0\nLDR.W           R3, [R3,#0xAC]                                         ; +0x12, 0x4221b2\nCBNZ            R2, loc_4221BC                                         ; +0x16, 0x4221b6\nMOV             R1, R2                                                 ; +0x18, 0x4221b8\nB               loc_4221BE                                             ; +0x1a, 0x4221ba\nMOVS            R1, #1                                                 ; +0x1c, 0x4221bc\nBLX             R3                                                     ; +0x1e, 0x4221be\nLDR.W           R0, [R6,#0x1E4]                                        ; +0x20, 0x4221c0\nADD             R4, R5                                                 ; +0x24, 0x4221c4\nCMP             R4, R7                                                 ; +0x26, 0x4221c6\nLDR             R3, [R0]                                               ; +0x28, 0x4221c8\nITE GE                                                                 ; +0x2a, 0x4221ca\nMOVGE           R1, #0                                                 ; +0x2c, 0x4221cc\nMOVLT           R1, #1                                                 ; +0x2e, 0x4221ce\nLDR.W           R3, [R3,#0xAC]                                         ; +0x30, 0x4221d0\nBLX             R3                                                     ; +0x34, 0x4221d4\nCMP             R4, R7                                                 ; +0x36, 0x4221d6\nLDR             R0, =(aIToIOfI - 0x4221EA); \"%i to %i of %i\"           ; +0x38, 0x4221d8\nADD.W           R1, R5, #1; char *                                     ; +0x3a, 0x4221da\nMOV             R2, R4                                                 ; +0x3e, 0x4221de\nMOV             R3, R7                                                 ; +0x40, 0x4221e0\nIT GE                                                                  ; +0x42, 0x4221e2\nMOVGE           R2, R7                                                 ; +0x44, 0x4221e4\nADD             R0, PC; \"%i to %i of %i\"                               ; +0x46, 0x4221e6\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0x4221e8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x4c, 0x4221ec\nMOV             R1, R0                                                 ; +0x50, 0x4221f0\nLDR.W           R0, [R6,#0x1EC]                                        ; +0x52, 0x4221f2\nPOP.W           {R4-R8,LR}                                             ; +0x56, 0x4221f6\nLDR             R3, [R0]                                               ; +0x5a, 0x4221fa\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x5c, 0x4221fc\nBX              R3                                                     ; +0x60, 0x422200", "xrefs": ["AchievementsLayer::loadPage @ 0x422430"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}