	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_src_frames
_rate_src_frames:                       ## @rate_src_frames
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_2:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rsi
	cmpq	(%rbx), %rax
	jge	LBB0_7
## %bb.6:
	movl	(%rsi), %ecx
	imull	%r14d, %ecx
	movq	_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	addl	%ecx, %eax
	movq	_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	jmp	LBB0_8
LBB0_4:
	xorl	%ecx, %ecx
	jmp	LBB0_2
LBB0_7:
	movq	_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %edx
	shll	%cl, %edx
	movl	(%rsi), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	%edx, %eax
	cltd
	idivl	%ecx
LBB0_8:
	movl	4(%rsi), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.9:
	movl	8(%rsi), %ecx
	movl	%r14d, %edi
	cmpl	%r14d, %edx
	jge	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	sarl	%edi
	addl	%ecx, %ecx
	cmpl	%edi, %edx
	jl	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	addl	%edi, %edi
	sarl	%ecx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, %edx
	jg	LBB0_11
## %bb.13:
	cmpl	%edi, %edx
	je	LBB0_2
LBB0_14:
	movl	%r14d, 4(%rsi)
	movl	%eax, 8(%rsi)
	movl	%eax, %ecx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_BITS,4,2                       ## @BITS
	.comm	_SHIFT,4,2                      ## @SHIFT
	.no_dead_strip	_rate_src_frames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_src_frames
_rate_src_frames:                       ; @rate_src_frames
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	w19, LBB0_6
; %bb.4:
	ldp	x9, x8, [x20, #8]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ge	LBB0_7
; %bb.5:
	ldr	w9, [x8]
	mul	w9, w9, w19
Lloh3:
	adrp	x10, _BITS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BITS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, #0
	cinc	w10, w10, lt
	add	w9, w9, w10, asr #1
Lloh6:
	adrp	x10, _SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	asr	w9, w9, w10
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_2
LBB0_7:
Lloh9:
	adrp	x9, _SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	ldr	w10, [x8]
	cmp	w10, #0
	cinc	w11, w10, lt
	add	w9, w9, w11, asr #1
	sdiv	w9, w9, w10
LBB0_8:
	ldr	w10, [x8, #4]
	cmp	w10, #1
	b.lt	LBB0_14
; %bb.9:
	ldr	w0, [x8, #8]
	mov	x11, x19
	cmp	w10, w19
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	asr	w11, w11, #1
	lsl	w0, w0, #1
	cmp	w10, w11
	b.lt	LBB0_10
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	lsl	w11, w11, #1
	asr	w0, w0, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	w10, w11
	b.gt	LBB0_11
; %bb.13:
	cmp	w10, w11
	b.eq	LBB0_2
LBB0_14:
	stp	w19, w9, [x8, #4]
	mov	x0, x9
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_BITS,4,2                       ; @BITS
	.comm	_SHIFT,4,2                      ; @SHIFT
	.no_dead_strip	_rate_src_frames
.subsections_via_symbols
