{"type": "func", "start": 4295358296, "end": 4295358368, "name": "MoreSearchLayer::selectSong", "pseudocode": "// \n// MoreSearchLayer::selectSong from 0x10005f758 to 0x10005f7a0 (72 bytes)\n// \n// 2 xrefs:\n// > MoreSearchLayer::audioPrevious @ 0x10005f57c\n// > MoreSearchLayer::audioNext @ 0x10005f5c4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:57:49 +0000\n// \n\n__int64 __fastcall MoreSearchLayer::selectSong(__int64 a1, int a2)\n{\n  int v3; // w8\n  __int64 v4; // x20\n  __int64 v5; // x0\n\n  if ( a2 >= 22 )\n    v3 = 22;\n  else\n    v3 = a2;\n  if ( v3 <= 1 )\n    v4 = 1;\n  else\n    v4 = (unsigned int)v3;\n  v5 = GameLevelManager::sharedState(a1);\n  GameLevelManager::setIntForKey(v5, v4, \"song_filter\");\n  return MoreSearchLayer::updateAudioLabel(a1);\n}", "assembly": "; \n; MoreSearchLayer::selectSong from 0x10005f758 to 0x10005f7a0 (72 bytes)\n; \n; 2 xrefs:\n; > MoreSearchLayer::audioPrevious @ 0x10005f57c\n; > MoreSearchLayer::audioNext @ 0x10005f5c4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:57:49 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10005f758\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10005f75c\nADD             X29, SP, #0x10                                         ; +0x8, 0x10005f760\nMOV             X19, X0                                                ; +0xc, 0x10005f764\nCMP             W1, #0x16                                              ; +0x10, 0x10005f768\nMOV             W8, #0x16                                              ; +0x14, 0x10005f76c\nCSEL            W8, W1, W8, LT                                         ; +0x18, 0x10005f770\nCMP             W8, #1                                                 ; +0x1c, 0x10005f774\nCSINC           W20, W8, WZR, GT                                       ; +0x20, 0x10005f778\nBL              GameLevelManager__sharedState                          ; +0x24, 0x10005f77c\nADRL            X2, aSongFilter; \"song_filter\"                         ; +0x28, 0x10005f780\nMOV             X1, X20                                                ; +0x30, 0x10005f788\nBL              GameLevelManager__setIntForKey                         ; +0x34, 0x10005f78c\nMOV             X0, X19                                                ; +0x38, 0x10005f790\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x10005f794\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x40, 0x10005f798\nB               MoreSearchLayer__updateAudioLabel                      ; +0x44, 0x10005f79c", "xrefs": ["MoreSearchLayer::audioPrevious @ 0x10005f57c", "MoreSearchLayer::audioNext @ 0x10005f5c4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}