{"type": "func", "start": 3331248, "end": 3331346, "name": "AchievementsLayer::setupPageInfo", "pseudocode": "// \n// AchievementsLayer::setupPageInfo from 0x32d4b0 to 0x32d512 (98 bytes)\n// \n// 1 xrefs:\n// > AchievementsLayer::loadPage @ 0x32d6fc\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 AchievementsLayer::setupPageInfo(AchievementsLayer *a1, int a2, int a3, int a4)\n{\n  int v8; // r4\n  int v9; // r2\n  cocos2d::CCString *v10; // r0\n  const unsigned __int8 *CString; // r1\n\n  a1->m_prevPageButton->setVisible(a1->m_prevPageButton, a3 != 0);\n  v8 = a4 + a3;\n  a1->m_nextPageButton->setVisible(a1->m_nextPageButton, 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 = (const unsigned __int8 *)cocos2d::CCString::getCString(v10);\n  a1->m_pageLabel->setString(a1->m_pageLabel, CString);\n}", "assembly": "; \n; AchievementsLayer::setupPageInfo from 0x32d4b0 to 0x32d512 (98 bytes)\n; \n; 1 xrefs:\n; > AchievementsLayer::loadPage @ 0x32d6fc\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-R8,LR}                                             ; +0x0, 0x32d4b0\nMOV             R6, R0                                                 ; +0x4, 0x32d4b4\nLDR.W           R0, [R0,#0x1E8]                                        ; +0x6, 0x32d4b6\nMOV             R4, R3                                                 ; +0xa, 0x32d4ba\nMOV             R7, R1                                                 ; +0xc, 0x32d4bc\nMOV             R5, R2                                                 ; +0xe, 0x32d4be\nLDR             R3, [R0]                                               ; +0x10, 0x32d4c0\nLDR.W           R3, [R3,#0xA4]                                         ; +0x12, 0x32d4c2\nCBNZ            R2, loc_32D4CC                                         ; +0x16, 0x32d4c6\nMOV             R1, R2                                                 ; +0x18, 0x32d4c8\nB               loc_32D4CE                                             ; +0x1a, 0x32d4ca\nMOVS            R1, #1                                                 ; +0x1c, 0x32d4cc\nBLX             R3                                                     ; +0x1e, 0x32d4ce\nLDR.W           R0, [R6,#0x1E4]                                        ; +0x20, 0x32d4d0\nADD             R4, R5                                                 ; +0x24, 0x32d4d4\nCMP             R4, R7                                                 ; +0x26, 0x32d4d6\nLDR             R3, [R0]                                               ; +0x28, 0x32d4d8\nITE GE                                                                 ; +0x2a, 0x32d4da\nMOVGE           R1, #0                                                 ; +0x2c, 0x32d4dc\nMOVLT           R1, #1                                                 ; +0x2e, 0x32d4de\nLDR.W           R3, [R3,#0xA4]                                         ; +0x30, 0x32d4e0\nBLX             R3                                                     ; +0x34, 0x32d4e4\nCMP             R4, R7                                                 ; +0x36, 0x32d4e6\nLDR             R0, =(aIToIOfI - 0x32D4FA); \"%i to %i of %i\"           ; +0x38, 0x32d4e8\nADD.W           R1, R5, #1; char *                                     ; +0x3a, 0x32d4ea\nMOV             R2, R4                                                 ; +0x3e, 0x32d4ee\nMOV             R3, R7                                                 ; +0x40, 0x32d4f0\nIT GE                                                                  ; +0x42, 0x32d4f2\nMOVGE           R2, R7                                                 ; +0x44, 0x32d4f4\nADD             R0, PC; \"%i to %i of %i\"                               ; +0x46, 0x32d4f6\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0x32d4f8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x4c, 0x32d4fc\nMOV             R1, R0                                                 ; +0x50, 0x32d500\nLDR.W           R0, [R6,#0x1EC]                                        ; +0x52, 0x32d502\nPOP.W           {R4-R8,LR}                                             ; +0x56, 0x32d506\nLDR             R3, [R0]                                               ; +0x5a, 0x32d50a\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x5c, 0x32d50c\nBX              R3                                                     ; +0x60, 0x32d510", "xrefs": ["AchievementsLayer::loadPage @ 0x32d6fc"], "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"}