	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbpro_audio_set_speed
_sbpro_audio_set_speed:                 ## @sbpro_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
	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_2
## %bb.1:
	cmpl	$4001, %esi                     ## imm = 0xFA1
	movl	$4000, %eax                     ## imm = 0xFA0
	cmovgel	%esi, %eax
	cmpl	$44100, %eax                    ## imm = 0xAC44
	movl	$44100, %ecx                    ## imm = 0xAC44
	cmovbl	%eax, %ecx
	cmpl	$22051, %ecx                    ## imm = 0x5623
	movl	$22050, %esi                    ## imm = 0x5622
	cmovbl	%ecx, %esi
	cmpl	$2, (%rbx)
	cmovll	%ecx, %esi
	callq	_sb201_audio_set_speed
LBB0_2:
	movl	4(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.no_dead_strip	_sbpro_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 sbpro_audio_set_speed
_sbpro_audio_set_speed:                 ; @sbpro_audio_set_speed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x19, [x8]
	cmp	w1, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w8, #4000
	cmp	w1, #4000
	csel	w8, w1, w8, gt
	mov	w9, #44100
	cmp	w8, w9
	csel	w8, w8, w9, lo
	ldr	w9, [x19]
	mov	w10, #22050
	cmp	w8, w10
	ccmp	w9, #1, #4, hi
	csel	w1, w10, w8, gt
	bl	_sb201_audio_set_speed
LBB0_2:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.no_dead_strip	_sbpro_audio_set_speed
.subsections_via_symbols
