	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_sample_rate_params
_set_sample_rate_params:                ## @set_sample_rate_params
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movslq	(%rdi), %rdi
	movl	$3, %r14d
	cmpq	$11025, %rdi                    ## imm = 0x2B11
	jl	LBB0_3
## %bb.1:
	movl	$2, %r14d
	cmpl	$22050, %edi                    ## imm = 0x5622
	jb	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$44100, %edi                    ## imm = 0xAC44
	setb	%r14b
LBB0_3:
	addq	$511, %rdi                      ## imm = 0x1FF
	sarq	$9, %rdi
	movl	$4, %esi
	callq	_FFALIGN
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%eax, (%r15)
	movslq	(%rbx), %rdi
	addq	$511, %rdi                      ## imm = 0x1FF
	sarq	$9, %rdi
	movl	$4, %esi
	callq	_FFALIGN
	addl	%eax, %eax
	movl	%eax, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_sample_rate_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_sample_rate_params
_set_sample_rate_params:                ; @set_sample_rate_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldrsw	x8, [x0]
	mov	w9, #3
	mov	w10, #11025
	mov	w11, #2
	mov	w12, #22050
	mov	w13, #44100
	cmp	w8, w13
	cset	w13, lo
	cmp	w8, w12
	csel	w11, w11, w13, lo
	cmp	w8, w10
	csel	w21, w9, w11, lt
	add	x8, x8, #511
	asr	x0, x8, #9
	mov	w1, #4
	bl	_FFALIGN
	lsl	w8, w0, w21
	str	w8, [x20]
	ldrsw	x8, [x19]
	add	x8, x8, #511
	asr	x0, x8, #9
	mov	w1, #4
	bl	_FFALIGN
	lsl	w8, w0, #1
	str	w8, [x20, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_sample_rate_params
.subsections_via_symbols
