{"type": "func", "start": 4297482220, "end": 4297482376, "name": "GJSongBrowser::setupPageInfo", "pseudocode": "// \n// GJSongBrowser::setupPageInfo from 0x100265fec to 0x100266088 (156 bytes)\n// \n// 1 xrefs:\n// > GJSongBrowser::loadPage @ 0x100265b00\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  int v8; // w8\n  int v9; // w19\n  int v10; // w20\n  cocos2d::CCString *v11; // x0\n  const char *CString; // x1\n\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_leftArrow->setVisible)(a1->m_leftArrow, a3 != 0);\n  v8 = a4 + a3;\n  v9 = a3 + 1;\n  if ( v8 >= a2 )\n    v10 = a2;\n  else\n    v10 = v8;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_rightArrow->setVisible)(a1->m_rightArrow, v8 < a2);\n  v11 = (cocos2d::CCString *)sub_100268F4C(\"%i to %i of %i\", v9, v10, a2);\n  CString = cocos2d::CCString::getCString(v11);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_countText->setString)(a1->m_countText, CString);\n}", "assembly": "; \n; GJSongBrowser::setupPageInfo from 0x100265fec to 0x100266088 (156 bytes)\n; \n; 1 xrefs:\n; > GJSongBrowser::loadPage @ 0x100265b00\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, #0x50                                          ; +0x0, 0x100265fec\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100265ff0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100265ff4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100265ff8\nADD             X29, SP, #0x40                                         ; +0x10, 0x100265ffc\nMOV             X19, X3                                                ; +0x14, 0x100266000\nMOV             X20, X2                                                ; +0x18, 0x100266004\nMOV             X21, X1                                                ; +0x1c, 0x100266008\nMOV             X22, X0                                                ; +0x20, 0x10026600c\nCMP             W2, #0                                                 ; +0x24, 0x100266010\nCSET            W1, NE                                                 ; +0x28, 0x100266014\nLDR             X0, [X0,#0x288]                                        ; +0x2c, 0x100266018\nLDR             X8, [X0]                                               ; +0x30, 0x10026601c\nLDR             X8, [X8,#0x148]                                        ; +0x34, 0x100266020\nBLR             X8                                                     ; +0x38, 0x100266024\nADD             W8, W19, W20                                           ; +0x3c, 0x100266028\nCMP             W8, W21                                                ; +0x40, 0x10026602c\nCSET            W1, LT                                                 ; +0x44, 0x100266030\nLDR             X0, [X22,#0x280]                                       ; +0x48, 0x100266034\nLDR             X9, [X0]                                               ; +0x4c, 0x100266038\nLDR             X9, [X9,#0x148]                                        ; +0x50, 0x10026603c\nADD             W19, W20, #1                                           ; +0x54, 0x100266040\nCSEL            W20, W8, W21, LT                                       ; +0x58, 0x100266044\nBLR             X9                                                     ; +0x5c, 0x100266048\nSTP             X20, X21, [SP,#0x40+var_38]                            ; +0x60, 0x10026604c\nSTR             X19, [SP,#0x40+var_40]                                 ; +0x64, 0x100266050\nADRL            X0, aIToIOfI; \"%i to %i of %i\"                         ; +0x68, 0x100266054\nBL              sub_100268F4C                                          ; +0x70, 0x10026605c\nBL              cocos2d__CCString__getCString                          ; +0x74, 0x100266060\nMOV             X1, X0                                                 ; +0x78, 0x100266064\nLDR             X0, [X22,#0x290]                                       ; +0x7c, 0x100266068\nLDR             X8, [X0]                                               ; +0x80, 0x10026606c\nLDR             X2, [X8,#0x390]                                        ; +0x84, 0x100266070\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x88, 0x100266074\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x8c, 0x100266078\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x90, 0x10026607c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x94, 0x100266080\nBR              X2                                                     ; +0x98, 0x100266084", "xrefs": ["GJSongBrowser::loadPage @ 0x100265b00"], "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"}