	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sndrate_prevnext
_sndrate_prevnext:                      ## @sndrate_prevnext
	.cfi_startproc
## %bb.0:
	cmpl	$15999, %edi                    ## imm = 0x3E7F
	jle	LBB0_5
## %bb.1:
	cmpl	$16000, %edi                    ## imm = 0x3E80
	je	LBB0_8
## %bb.2:
	cmpl	$22050, %edi                    ## imm = 0x5622
	je	LBB0_9
## %bb.3:
	cmpl	$44100, %edi                    ## imm = 0xAC44
	jne	LBB0_10
## %bb.4:
	movl	$4, %eax
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
	cmpl	$8000, %edi                     ## imm = 0x1F40
	je	LBB0_11
## %bb.6:
	cmpl	$11025, %edi                    ## imm = 0x2B11
	jne	LBB0_10
## %bb.7:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_8:
	movl	$2, %eax
	jmp	LBB0_11
LBB0_9:
	movl	$3, %eax
	jmp	LBB0_11
LBB0_10:
	movl	$5, %eax
LBB0_11:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%ecx, %ecx
	cmpl	$1, %esi
	sbbl	%ecx, %ecx
	orl	$1, %ecx
	addl	%eax, %ecx
	cmpl	$5, %ecx
	jl	LBB0_14
## %bb.12:
	movq	_PicoOpt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_POPT_EN_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$44100, %eax                    ## imm = 0xAC44
	testl	%edx, %esi
	je	LBB0_16
## %bb.13:
	popq	%rbp
	retq
LBB0_14:
	testl	%ecx, %ecx
	js	LBB0_17
## %bb.15:
	movl	%ecx, %eax
	leaq	_sndrate_prevnext.rates(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_16:
	orl	%edx, %esi
	movl	%esi, (%rcx)
	jmp	LBB0_19
LBB0_17:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_POPT_EN_STEREO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_19
## %bb.18:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
	movl	$44100, %eax                    ## imm = 0xAC44
	popq	%rbp
	retq
LBB0_19:
	movl	$8000, %eax                     ## imm = 0x1F40
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @sndrate_prevnext.rates
_sndrate_prevnext.rates:
	.long	8000                            ## 0x1f40
	.long	11025                           ## 0x2b11
	.long	16000                           ## 0x3e80
	.long	22050                           ## 0x5622
	.long	44100                           ## 0xac44

	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_STEREO,4,2             ## @POPT_EN_STEREO
	.no_dead_strip	_sndrate_prevnext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sndrate_prevnext
_sndrate_prevnext:                      ; @sndrate_prevnext
	.cfi_startproc
; %bb.0:
	mov	w8, #15999
	cmp	w0, w8
	b.le	LBB0_5
; %bb.1:
	mov	w8, #16000
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.2:
	mov	w8, #22050
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.3:
	mov	w8, #44100
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.4:
	mov	w8, #4
	b	LBB0_12
LBB0_5:
	mov	w8, #8000
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.6:
	mov	w8, #11025
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.7:
	mov	w8, #1
	b	LBB0_12
LBB0_8:
	mov	w8, #2
	b	LBB0_12
LBB0_9:
	mov	w8, #3
	b	LBB0_12
LBB0_10:
	mov	w8, #0
	b	LBB0_12
LBB0_11:
	mov	w8, #5
LBB0_12:
	sub	w9, w8, #1
	cmp	w1, #0
	csinc	w8, w9, w8, eq
	cmp	w8, #5
	b.lt	LBB0_15
; %bb.13:
Lloh0:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _POPT_EN_STEREO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _POPT_EN_STEREO@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.14:
	mov	w0, #44100
	ret
LBB0_15:
	tbnz	w8, #31, LBB0_18
; %bb.16:
Lloh5:
	adrp	x9, _sndrate_prevnext.rates@PAGE
Lloh6:
	add	x9, x9, _sndrate_prevnext.rates@PAGEOFF
	ldr	w0, [x9, w8, uxtw #2]
	ret
LBB0_17:
	orr	w9, w10, w9
	str	w9, [x8]
	mov	w0, #8000
	ret
LBB0_18:
Lloh7:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh9:
	adrp	x10, _POPT_EN_STEREO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _POPT_EN_STEREO@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_20
; %bb.19:
	bic	w9, w9, w10
	str	w9, [x8]
	mov	w0, #44100
	ret
LBB0_20:
	mov	w0, #8000
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @sndrate_prevnext.rates
_sndrate_prevnext.rates:
	.long	8000                            ; 0x1f40
	.long	11025                           ; 0x2b11
	.long	16000                           ; 0x3e80
	.long	22050                           ; 0x5622
	.long	44100                           ; 0xac44

	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_STEREO,4,2             ; @POPT_EN_STEREO
	.no_dead_strip	_sndrate_prevnext
.subsections_via_symbols
