	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb1_audio_set_speed
_sb1_audio_set_speed:                   ## @sb1_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
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rcx
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	_OPEN_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx), %eax
	movl	$23000, %eax                    ## imm = 0x59D8
	movl	$13000, %edx                    ## imm = 0x32C8
	cmovel	%eax, %edx
	cmpl	$4001, %esi                     ## imm = 0xFA1
	movl	$4000, %edi                     ## imm = 0xFA0
	cmovgel	%esi, %edi
	cmpl	%edx, %edi
	cmovael	%edx, %edi
	movl	%edi, %eax
	shrl	%eax
	addl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	divl	%edi
	negl	%eax
	movzbl	%al, %eax
	movl	%eax, 4(%rcx)
	movl	$256, %esi                      ## imm = 0x100
	subl	%eax, %esi
	movl	%esi, %eax
	shrl	%eax
	addl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, 8(%rcx)
	popq	%rbp
	retq
LBB0_1:
	movl	8(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_OPEN_READ,4,2                  ## @OPEN_READ
	.no_dead_strip	_sb1_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 sb1_audio_set_speed
_sb1_audio_set_speed:                   ; @sb1_audio_set_speed
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x8, [x8]
	cmp	w1, #0
	b.le	LBB0_2
; %bb.1:
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _OPEN_READ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OPEN_READ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #13000
	mov	w10, #23000
	csel	w9, w10, w9, eq
	mov	w10, #4000
	cmp	w1, #4000
	csel	w10, w1, w10, gt
	cmp	w10, w9
	csel	w9, w10, w9, lo
	mov	w10, #16960
	movk	w10, #15, lsl #16
	add	w11, w10, w9, lsr #1
	udiv	w9, w11, w9
	neg	w9, w9
	and	w9, w9, #0xff
	mov	w11, #256
	sub	w11, w11, w9
	add	w10, w10, w11, lsr #1
	udiv	w0, w10, w11
	stp	w9, w0, [x8, #4]
	ret
LBB0_2:
	ldr	w0, [x8, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_OPEN_READ,4,2                  ; @OPEN_READ
	.no_dead_strip	_sb1_audio_set_speed
.subsections_via_symbols
