{"type": "func", "start": 4298452820, "end": 4298452924, "name": "InfoLayer::updateLevelsLabel", "pseudocode": "// \n// InfoLayer::updateLevelsLabel from 0x100352f54 to 0x100352fbc (104 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::setupPageInfo @ 0x100352ee4\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 InfoLayer::updateLevelsLabel(InfoLayer *a1)\n{\n  int m_pageStartIdx; // w8\n  int v3; // w9\n  int m_itemCount; // w10\n  cocos2d::CCString *v5; // x0\n  const char *CString; // x1\n\n  m_pageStartIdx = a1->m_pageStartIdx;\n  v3 = a1->m_pageEndIdx + m_pageStartIdx;\n  m_itemCount = a1->m_itemCount;\n  if ( v3 >= m_itemCount )\n    v3 = a1->m_itemCount;\n  v5 = (cocos2d::CCString *)sub_100268F4C(\"%i to %i of %i\", m_pageStartIdx + 1, v3, m_itemCount);\n  CString = cocos2d::CCString::getCString(v5);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_pageLabel->setString)(a1->m_pageLabel, CString);\n}", "assembly": "; \n; InfoLayer::updateLevelsLabel from 0x100352f54 to 0x100352fbc (104 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::setupPageInfo @ 0x100352ee4\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100352f54\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100352f58\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100352f5c\nADD             X29, SP, #0x30                                         ; +0xc, 0x100352f60\nMOV             X19, X0                                                ; +0x10, 0x100352f64\nLDR             W8, [X0,#0x31C]                                        ; +0x14, 0x100352f68\nLDR             W9, [X0,#0x320]                                        ; +0x18, 0x100352f6c\nADD             W9, W9, W8                                             ; +0x1c, 0x100352f70\nLDR             W10, [X0,#0x318]                                       ; +0x20, 0x100352f74\nCMP             W9, W10                                                ; +0x24, 0x100352f78\nCSEL            W9, W9, W10, LT                                        ; +0x28, 0x100352f7c\nADD             W8, W8, #1                                             ; +0x2c, 0x100352f80\nSTP             X9, X10, [SP,#0x30+var_28]                             ; +0x30, 0x100352f84\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x34, 0x100352f88\nADRL            X0, aIToIOfI; \"%i to %i of %i\"                         ; +0x38, 0x100352f8c\nBL              sub_100268F4C                                          ; +0x40, 0x100352f94\nBL              cocos2d__CCString__getCString                          ; +0x44, 0x100352f98\nMOV             X1, X0                                                 ; +0x48, 0x100352f9c\nLDR             X0, [X19,#0x2C8]                                       ; +0x4c, 0x100352fa0\nLDR             X8, [X0]                                               ; +0x50, 0x100352fa4\nLDR             X2, [X8,#0x390]                                        ; +0x54, 0x100352fa8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x58, 0x100352fac\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x5c, 0x100352fb0\nADD             SP, SP, #0x40 ; '@'                                    ; +0x60, 0x100352fb4\nBR              X2                                                     ; +0x64, 0x100352fb8", "xrefs": ["InfoLayer::setupPageInfo @ 0x100352ee4"], "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"}