{"type": "func", "start": 4298586128, "end": 4298586271, "name": "AchievementsLayer::setupPageInfo", "pseudocode": "// \n// AchievementsLayer::setupPageInfo from 0x100373810 to 0x10037389f (143 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 AchievementsLayer::setupPageInfo(AchievementsLayer *a1, int a2, int a3, int a4)\n{\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  char v8; // [rsp+0h] [rbp-20h]\n\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevPageButton->setVisible)(a1->m_prevPageButton, a3 != 0);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextPageButton->setVisible)(\n    a1->m_nextPageButton,\n    a3 + a4 < a2);\n  v6 = (cocos2d::CCString *)sub_1007AB580(\"%i to %i of %i\", v8);\n  CString = cocos2d::CCString::getCString(v6);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_pageLabel->setString)(a1->m_pageLabel, CString);\n}", "assembly": "; \n; AchievementsLayer::setupPageInfo from 0x100373810 to 0x10037389f (143 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, 0x100373810\nmov     rbp, rsp                                                       ; +0x1, 0x100373811\npush    r15                                                            ; +0x4, 0x100373814\npush    r14                                                            ; +0x6, 0x100373816\npush    r12                                                            ; +0x8, 0x100373818\npush    rbx; char                                                      ; +0xa, 0x10037381a\nmov     r14d, ecx                                                      ; +0xb, 0x10037381b\nmov     r12d, edx                                                      ; +0xe, 0x10037381e\nmov     r15d, esi                                                      ; +0x11, 0x100373821\nmov     rbx, rdi                                                       ; +0x14, 0x100373824\nxor     esi, esi                                                       ; +0x17, 0x100373827\ntest    edx, edx                                                       ; +0x19, 0x100373829\nsetnz   sil                                                            ; +0x1b, 0x10037382b\nmov     rdi, [rdi+268h]                                                ; +0x1f, 0x10037382f\nmov     rax, [rdi]                                                     ; +0x26, 0x100373836\ncall    qword ptr [rax+148h]                                           ; +0x29, 0x100373839\nadd     r14d, r12d                                                     ; +0x2f, 0x10037383f\nmov     rdi, [rbx+260h]                                                ; +0x32, 0x100373842\nmov     rax, [rdi]                                                     ; +0x39, 0x100373849\nxor     esi, esi                                                       ; +0x3c, 0x10037384c\ncmp     r14d, r15d                                                     ; +0x3e, 0x10037384e\nsetl    sil                                                            ; +0x41, 0x100373851\ncmovge  r14d, r15d                                                     ; +0x45, 0x100373855\ncall    qword ptr [rax+148h]                                           ; +0x49, 0x100373859\ninc     r12d                                                           ; +0x4f, 0x10037385f\nlea     rdi, aIToIOfI; \"%i to %i of %i\"                                ; +0x52, 0x100373862\nmov     esi, r12d                                                      ; +0x59, 0x100373869\nmov     edx, r14d                                                      ; +0x5c, 0x10037386c\nmov     ecx, r15d                                                      ; +0x5f, 0x10037386f\nxor     eax, eax                                                       ; +0x62, 0x100373872\ncall    sub_1007AB580                                                  ; +0x64, 0x100373874\nmov     rdi, rax                                                       ; +0x69, 0x100373879\ncall    cocos2d__CCString__getCString                                  ; +0x6c, 0x10037387c\nmov     rdi, [rbx+270h]                                                ; +0x71, 0x100373881\nmov     rcx, [rdi]                                                     ; +0x78, 0x100373888\nmov     rcx, [rcx+390h]                                                ; +0x7b, 0x10037388b\nmov     rsi, rax                                                       ; +0x82, 0x100373892\npop     rbx                                                            ; +0x85, 0x100373895\npop     r12                                                            ; +0x86, 0x100373896\npop     r14                                                            ; +0x88, 0x100373898\npop     r15                                                            ; +0x8a, 0x10037389a\npop     rbp                                                            ; +0x8c, 0x10037389c\njmp     rcx                                                            ; +0x8d, 0x10037389d", "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"}