{"type": "func", "start": 5369526288, "end": 5369526336, "name": "SongSelectNode::audioPrevious", "pseudocode": "// \n// SongSelectNode::audioPrevious from 0x1400c7810 to 0x1400c7840 (48 bytes)\n// \n// 1 xrefs:\n// > SongSelectNode::init @ 0x1400c7090\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 SongSelectNode::audioPrevious(SongSelectNode *a1, cocos2d::CCObject *a2)\n{\n  int m_selectedSongID; // eax\n  int v3; // eax\n\n  m_selectedSongID = a1->m_selectedSongID;\n  if ( m_selectedSongID )\n  {\n    v3 = m_selectedSongID - 1;\n    a1->m_songChanged = 1;\n    if ( v3 > 21 )\n      v3 = 21;\n    if ( v3 < 0 )\n      v3 = 0;\n    a1->m_selectedSongID = v3;\n    SongSelectNode::updateAudioLabel(a1);\n  }\n}", "assembly": "; \n; SongSelectNode::audioPrevious from 0x1400c7810 to 0x1400c7840 (48 bytes)\n; \n; 1 xrefs:\n; > SongSelectNode::init @ 0x1400c7090\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\nmov     eax, [rcx+158h]                                                ; +0x0, 0x1400c7810\ntest    eax, eax                                                       ; +0x6, 0x1400c7816\njz      short locret_1400C783F                                         ; +0x8, 0x1400c7818\ndec     eax                                                            ; +0xa, 0x1400c781a\nmov     byte ptr [rcx+15Dh], 1                                         ; +0xc, 0x1400c781c\nmov     edx, 15h                                                       ; +0x13, 0x1400c7823\ncmp     eax, edx                                                       ; +0x18, 0x1400c7828\ncmovg   eax, edx                                                       ; +0x1a, 0x1400c782a\nxor     edx, edx                                                       ; +0x1d, 0x1400c782d\ntest    eax, eax                                                       ; +0x1f, 0x1400c782f\ncmovs   eax, edx                                                       ; +0x21, 0x1400c7831\nmov     [rcx+158h], eax                                                ; +0x24, 0x1400c7834\njmp     SongSelectNode__updateAudioLabel                               ; +0x2a, 0x1400c783a\nretn                                                                   ; +0x2f, 0x1400c783f", "xrefs": ["SongSelectNode::init @ 0x1400c7090"], "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"}