	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plugin_build_rate      ## -- Begin function snd_pcm_plugin_build_rate
	.p2align	4, 0x90
_snd_pcm_plugin_build_rate:             ## @snd_pcm_plugin_build_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%rcx, %rcx
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	$0, (%rbx)
	movl	(%r15), %eax
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	setne	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	setle	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	8(%r15), %rax
	movq	_SNDRV_PCM_FORMAT_S16@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setne	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setne	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	movl	16(%r15), %eax
	xorl	%edi, %edi
	cmpl	16(%r14), %eax
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_7
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %eax
	leal	40(,%rax,4), %r8d
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_snd_pcm_plugin_build
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi
	movq	16(%rdi), %r12
	movl	16(%r15), %eax
	movl	16(%r14), %esi
	cmpl	%esi, %eax
	movq	_SHIFT@GOTPCREL(%rip), %rcx
	movl	%esi, %edx
	cmovll	%eax, %edx
	cmovgl	%eax, %esi
	movq	_resample_shrink@GOTPCREL(%rip), %r8
	cmovlq	_resample_expand@GOTPCREL(%rip), %r8
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	%esi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%eax, (%r12)
	movl	(%r8), %eax
	movl	%eax, 32(%r12)
	movq	$0, 24(%r12)
	callq	_rate_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	_rate_transfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	movl	%eax, 12(%rcx)
	movq	_rate_src_frames@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_rate_dst_frames@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_rate_action@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	%rcx, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_PCM_FORMAT_S16,8,3       ## @SNDRV_PCM_FORMAT_S16
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rate conversion"

	.comm	_SHIFT,4,2                      ## @SHIFT
	.comm	_resample_expand,4,2            ## @resample_expand
	.comm	_resample_shrink,4,2            ## @resample_shrink
	.comm	_rate_transfer,4,2              ## @rate_transfer
	.comm	_rate_src_frames,4,2            ## @rate_src_frames
	.comm	_rate_dst_frames,4,2            ## @rate_dst_frames
	.comm	_rate_action,4,2                ## @rate_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plugin_build_rate      ; -- Begin function snd_pcm_plugin_build_rate
	.p2align	2
_snd_pcm_plugin_build_rate:             ; @snd_pcm_plugin_build_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x3, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_6
; %bb.1:
	str	xzr, [x19]
	ldr	w8, [x21]
	ldr	w9, [x20]
	cmp	w8, w9
	cset	w0, ne
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	cset	w0, lt
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x23, _SNDRV_PCM_FORMAT_S16@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SNDRV_PCM_FORMAT_S16@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, ne
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, ne
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x21, #16]
	ldr	w9, [x20, #16]
	cmp	w8, w9
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w4, w8, #40
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x5, sp, #8
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_snd_pcm_plugin_build
	tbnz	w0, #31, LBB0_7
; %bb.9:
	ldr	x0, [sp, #8]
	ldr	x22, [x0, #16]
	ldr	w8, [x21, #16]
	ldr	w9, [x20, #16]
Lloh7:
	adrp	x10, _SHIFT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w11, w8, w9, lt
	csel	w8, w8, w9, gt
	lsl	w9, w11, w10
	add	w9, w9, w8, asr #1
	sdiv	w8, w9, w8
	str	w8, [x22]
Lloh10:
	adrp	x8, _resample_expand@GOTPAGE
Lloh11:
	ldr	x8, [x8, _resample_expand@GOTPAGEOFF]
Lloh12:
	adrp	x9, _resample_shrink@GOTPAGE
Lloh13:
	ldr	x9, [x9, _resample_shrink@GOTPAGEOFF]
	csel	x8, x8, x9, lt
	ldr	w8, [x8]
	str	w8, [x22, #32]
	str	xzr, [x22, #24]
	bl	_rate_init
	mov	w0, #0
	stp	xzr, xzr, [x22, #8]
Lloh14:
	adrp	x8, _rate_transfer@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rate_transfer@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
Lloh17:
	adrp	x10, _rate_src_frames@GOTPAGE
Lloh18:
	ldr	x10, [x10, _rate_src_frames@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
Lloh20:
	adrp	x8, _rate_dst_frames@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rate_dst_frames@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x10, _rate_action@GOTPAGE
Lloh24:
	ldr	x10, [x10, _rate_action@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
	str	x9, [x19]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_PCM_FORMAT_S16,8,3       ; @SNDRV_PCM_FORMAT_S16
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rate conversion"

	.comm	_SHIFT,4,2                      ; @SHIFT
	.comm	_resample_expand,4,2            ; @resample_expand
	.comm	_resample_shrink,4,2            ; @resample_shrink
	.comm	_rate_transfer,4,2              ; @rate_transfer
	.comm	_rate_src_frames,4,2            ; @rate_src_frames
	.comm	_rate_dst_frames,4,2            ; @rate_dst_frames
	.comm	_rate_action,4,2                ; @rate_action
.subsections_via_symbols
