{"type": "func", "start": 4303039472, "end": 4303039558, "name": "InfoLayer::updateLevelsLabel", "pseudocode": "// \n// InfoLayer::updateLevelsLabel from 0x1007b2bf0 to 0x1007b2c46 (86 bytes)\n// \n// 0 xrefs:\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_itemCount; // ecx\n  int m_pageStartIdx; // esi\n  int v3; // edx\n  char *v4; // rax\n  const char *CString; // rax\n\n  m_itemCount = a1->m_itemCount;\n  m_pageStartIdx = a1->m_pageStartIdx;\n  v3 = m_pageStartIdx + a1->m_pageEndIdx;\n  if ( v3 >= m_itemCount )\n    v3 = a1->m_itemCount;\n  v4 = sub_1007AB580(\"%i to %i of %i\", m_pageStartIdx + 1, v3, m_itemCount);\n  CString = cocos2d::CCString::getCString((cocos2d::CCString *)v4);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_pageLabel->setString)(a1->m_pageLabel, CString);\n}", "assembly": "; \n; InfoLayer::updateLevelsLabel from 0x1007b2bf0 to 0x1007b2c46 (86 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1007b2bf0\nmov     rbp, rsp                                                       ; +0x1, 0x1007b2bf1\npush    rbx                                                            ; +0x4, 0x1007b2bf4\npush    rax; char                                                      ; +0x5, 0x1007b2bf5\nmov     rbx, rdi                                                       ; +0x6, 0x1007b2bf6\nmov     ecx, [rdi+318h]                                                ; +0x9, 0x1007b2bf9\nmov     esi, [rdi+31Ch]                                                ; +0xf, 0x1007b2bff\nmov     edx, [rdi+320h]                                                ; +0x15, 0x1007b2c05\nadd     edx, esi                                                       ; +0x1b, 0x1007b2c0b\ncmp     edx, ecx                                                       ; +0x1d, 0x1007b2c0d\ncmovge  edx, ecx                                                       ; +0x1f, 0x1007b2c0f\ninc     esi                                                            ; +0x22, 0x1007b2c12\nlea     rdi, aIToIOfI; \"%i to %i of %i\"                                ; +0x24, 0x1007b2c14\nxor     eax, eax                                                       ; +0x2b, 0x1007b2c1b\ncall    sub_1007AB580                                                  ; +0x2d, 0x1007b2c1d\nmov     rdi, rax                                                       ; +0x32, 0x1007b2c22\ncall    cocos2d__CCString__getCString                                  ; +0x35, 0x1007b2c25\nmov     rdi, [rbx+2C8h]                                                ; +0x3a, 0x1007b2c2a\nmov     rcx, [rdi]                                                     ; +0x41, 0x1007b2c31\nmov     rcx, [rcx+390h]                                                ; +0x44, 0x1007b2c34\nmov     rsi, rax                                                       ; +0x4b, 0x1007b2c3b\nadd     rsp, 8                                                         ; +0x4e, 0x1007b2c3e\npop     rbx                                                            ; +0x52, 0x1007b2c42\npop     rbp                                                            ; +0x53, 0x1007b2c43\njmp     rcx                                                            ; +0x54, 0x1007b2c44", "xrefs": [], "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"}