{"type": "func", "start": 4301255952, "end": 4301256095, "name": "GJSongBrowser::setupPageInfo", "pseudocode": "// \n// GJSongBrowser::setupPageInfo from 0x1005ff510 to 0x1005ff59f (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 GJSongBrowser::setupPageInfo(GJSongBrowser *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_leftArrow->setVisible)(a1->m_leftArrow, a3 != 0);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_rightArrow->setVisible)(a1->m_rightArrow, 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_countText->setString)(a1->m_countText, CString);\n}", "assembly": "; \n; GJSongBrowser::setupPageInfo from 0x1005ff510 to 0x1005ff59f (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, 0x1005ff510\nmov     rbp, rsp                                                       ; +0x1, 0x1005ff511\npush    r15                                                            ; +0x4, 0x1005ff514\npush    r14                                                            ; +0x6, 0x1005ff516\npush    r12                                                            ; +0x8, 0x1005ff518\npush    rbx; char                                                      ; +0xa, 0x1005ff51a\nmov     r14d, ecx                                                      ; +0xb, 0x1005ff51b\nmov     r12d, edx                                                      ; +0xe, 0x1005ff51e\nmov     r15d, esi                                                      ; +0x11, 0x1005ff521\nmov     rbx, rdi                                                       ; +0x14, 0x1005ff524\nxor     esi, esi                                                       ; +0x17, 0x1005ff527\ntest    edx, edx                                                       ; +0x19, 0x1005ff529\nsetnz   sil                                                            ; +0x1b, 0x1005ff52b\nmov     rdi, [rdi+288h]                                                ; +0x1f, 0x1005ff52f\nmov     rax, [rdi]                                                     ; +0x26, 0x1005ff536\ncall    qword ptr [rax+148h]                                           ; +0x29, 0x1005ff539\nadd     r14d, r12d                                                     ; +0x2f, 0x1005ff53f\nmov     rdi, [rbx+280h]                                                ; +0x32, 0x1005ff542\nmov     rax, [rdi]                                                     ; +0x39, 0x1005ff549\nxor     esi, esi                                                       ; +0x3c, 0x1005ff54c\ncmp     r14d, r15d                                                     ; +0x3e, 0x1005ff54e\nsetl    sil                                                            ; +0x41, 0x1005ff551\ncmovge  r14d, r15d                                                     ; +0x45, 0x1005ff555\ncall    qword ptr [rax+148h]                                           ; +0x49, 0x1005ff559\ninc     r12d                                                           ; +0x4f, 0x1005ff55f\nlea     rdi, aIToIOfI; \"%i to %i of %i\"                                ; +0x52, 0x1005ff562\nmov     esi, r12d                                                      ; +0x59, 0x1005ff569\nmov     edx, r14d                                                      ; +0x5c, 0x1005ff56c\nmov     ecx, r15d                                                      ; +0x5f, 0x1005ff56f\nxor     eax, eax                                                       ; +0x62, 0x1005ff572\ncall    sub_1007AB580                                                  ; +0x64, 0x1005ff574\nmov     rdi, rax                                                       ; +0x69, 0x1005ff579\ncall    cocos2d__CCString__getCString                                  ; +0x6c, 0x1005ff57c\nmov     rdi, [rbx+290h]                                                ; +0x71, 0x1005ff581\nmov     rcx, [rdi]                                                     ; +0x78, 0x1005ff588\nmov     rcx, [rcx+390h]                                                ; +0x7b, 0x1005ff58b\nmov     rsi, rax                                                       ; +0x82, 0x1005ff592\npop     rbx                                                            ; +0x85, 0x1005ff595\npop     r12                                                            ; +0x86, 0x1005ff596\npop     r14                                                            ; +0x88, 0x1005ff598\npop     r15                                                            ; +0x8a, 0x1005ff59a\npop     rbp                                                            ; +0x8c, 0x1005ff59c\njmp     rcx                                                            ; +0x8d, 0x1005ff59d", "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"}