	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_sample_rate
_select_sample_rate:                    ## @select_sample_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	addq	$4, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %eax
	addq	$4, %rbx
	testl	%eax, %eax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$44100, %edi                    ## imm = 0xAC44
	subl	%eax, %edi
	callq	_abs
	movq	%rax, %r15
	movl	$44100, %edi                    ## imm = 0xAC44
	subl	%r14d, %edi
	callq	_abs
	cmpq	%rax, %r15
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-4(%rbx), %r14d
	jmp	LBB0_9
LBB0_1:
	movl	$44100, %r14d                   ## imm = 0xAC44
	jmp	LBB0_10
LBB0_3:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_select_sample_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_sample_rate
_select_sample_rate:                    ; @select_sample_rate
	.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
	ldr	x9, [x0]
	cbz	x9, LBB0_8
; %bb.1:
	ldr	w8, [x9]
	cbz	w8, LBB0_9
; %bb.2:
	mov	w19, #0
	add	x21, x9, #4
	mov	w22, #44100
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21], #4
	cbz	w8, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w19, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w0, w22, w8
	bl	_abs
	mov	x20, x0
	sub	w0, w22, w19
	bl	_abs
	cmp	x20, x0
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w19, [x21, #-4]
	b	LBB0_4
LBB0_8:
	mov	w19, #44100
	b	LBB0_10
LBB0_9:
	mov	w19, #0
LBB0_10:
	mov	x0, x19
	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	_select_sample_rate
.subsections_via_symbols
