	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ess_audio_set_speed
_ess_audio_set_speed:                   ## @ess_audio_set_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, -12(%rbp)
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rbx)
	movl	$5000, %ecx                     ## imm = 0x1388
	movl	$6215, %eax                     ## imm = 0x1847
	cmovel	%ecx, %eax
	movl	$48000, %edx                    ## imm = 0xBB80
	movl	$44100, %ecx                    ## imm = 0xAC44
	cmovel	%edx, %ecx
	cmpl	%esi, %eax
	jbe	LBB0_4
## %bb.3:
	movl	%eax, -12(%rbp)
	jmp	LBB0_6
LBB0_1:
	movl	(%rbx), %eax
	jmp	LBB0_7
LBB0_4:
	cmpl	%esi, %ecx
	jae	LBB0_6
## %bb.5:
	movl	%ecx, -12(%rbp)
LBB0_6:
	leaq	-12(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ess_common_speed
	movl	-12(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.no_dead_strip	_ess_audio_set_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ess_audio_set_speed
_ess_audio_set_speed:                   ; @ess_audio_set_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
	str	w1, [sp, #12]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x19, [x8]
	cmp	w1, #0
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	mov	w8, #6215
	mov	w9, #5000
	csel	w9, w9, w8, eq
	mov	w8, #44100
	mov	w10, #48000
	csel	w8, w10, w8, eq
	cmp	w9, w1
	b.ls	LBB0_4
; %bb.2:
	str	w9, [sp, #12]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19]
	b	LBB0_7
LBB0_4:
	cmp	w8, w1
	b.hs	LBB0_6
; %bb.5:
	str	w8, [sp, #12]
LBB0_6:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_ess_common_speed
	ldr	w0, [sp, #12]
	str	w0, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.no_dead_strip	_ess_audio_set_speed
.subsections_via_symbols
