	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_rate
_find_rate:                             ## @find_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_SR_MULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_bosr_usb_divisor_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	imull	%r14d, %r15d
	imull	%r14d, %r12d
	movl	%r15d, %eax
	sarl	$5, %eax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	addl	%r15d, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r12d, %eax
	sarl	$5, %eax
	movl	%r12d, %ecx
	subl	%eax, %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	addl	%r12d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	_sr_adc_mult_table@GOTPCREL(%rip), %r13
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movq	_bosr_usb_divisor_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%rbx), %rcx
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	(%rcx,%r14,4)
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_sr_valid_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r14,4), %r15d
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_sr_adc_mult_table@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	sarl	%r15d
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %r15b
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r13), %rax
	movq	%r12, %r10
	movl	(%rax,%rbx,4), %r12d
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %r12d
	movq	_sr_dac_mult_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r13d
	imull	%ecx, %r13d
	movl	%r12d, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r10
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_get_score
	addq	$16, %rsp
	cmpl	%eax, -56(%rbp)                 ## 4-byte Folded Reload
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	sarl	%r12d
	sarl	%r13d
	movl	%r12d, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_get_score
	addq	$16, %rsp
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%eax, -56(%rbp)                 ## 4-byte Folded Reload
	movq	_sr_adc_mult_table@GOTPCREL(%rip), %r13
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
LBB0_1:
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_14:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	shll	$2, %edx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	_TLV320AIC23_CLKIN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	orl	%edx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_SR_MULT,4,2                    ## @SR_MULT
	.comm	_bosr_usb_divisor_table,8,3     ## @bosr_usb_divisor_table
	.comm	_sr_valid_mask,8,3              ## @sr_valid_mask
	.comm	_sr_adc_mult_table,8,3          ## @sr_adc_mult_table
	.comm	_sr_dac_mult_table,8,3          ## @sr_dac_mult_table
	.comm	_TLV320AIC23_CLKIN_SHIFT,4,2    ## @TLV320AIC23_CLKIN_SHIFT
	.no_dead_strip	_find_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_rate
_find_rate:                             ; @find_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	str	w0, [sp]                        ; 4-byte Folded Spill
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _SR_MULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SR_MULT@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x24, _bosr_usb_divisor_table@GOTPAGE
Lloh7:
	ldr	x24, [x24, _bosr_usb_divisor_table@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, #0
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
	mul	w9, w23, w22
	mul	w10, w23, w21
	asr	w8, w9, #5
	sub	w11, w9, w8
	stp	w10, w9, [sp, #20]              ; 8-byte Folded Spill
	add	w8, w8, w9
	stp	w8, w11, [sp, #12]              ; 8-byte Folded Spill
	asr	w8, w10, #5
	sub	w9, w10, w8
	add	w8, w8, w10
	stp	w8, w9, [sp, #4]                ; 8-byte Folded Spill
	mov	w8, #-1
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
Lloh8:
	adrp	x19, _sr_adc_mult_table@GOTPAGE
Lloh9:
	ldr	x19, [x19, _sr_adc_mult_table@GOTPAGEOFF]
	mov	w8, #-1
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	mov	w22, w11
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	mov	w21, w10
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	add	x20, x20, #1
Lloh10:
	adrp	x24, _bosr_usb_divisor_table@GOTPAGE
Lloh11:
	ldr	x24, [x24, _bosr_usb_divisor_table@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x24]
	lsl	x9, x20, #2
	ldr	w25, [x8, x9]
Lloh12:
	adrp	x8, _sr_valid_mask@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sr_valid_mask@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w23, [x8, x9]
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	sdiv	w8, w8, w25
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x24, x24, #1
	asr	w23, w23, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w23, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x19]
	lsl	x9, x24, #2
	ldr	w8, [x8, x9]
	ldp	w20, w10, [sp, #24]             ; 8-byte Folded Reload
	mul	w0, w8, w10
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
Lloh15:
	adrp	x8, _sr_dac_mult_table@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sr_dac_mult_table@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	mul	w27, w8, w10
	mov	x1, x22
	mov	x2, x28
	mov	x3, x20
	mov	x4, x27
	ldp	w19, w25, [sp, #4]              ; 8-byte Folded Reload
	mov	x5, x25
	mov	x6, x19
	mov	x7, x21
	bl	_get_score
	ldp	w26, w9, [sp, #48]              ; 8-byte Folded Reload
	cmp	w26, w0
	csel	w26, w26, w0, ls
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	csel	w10, w8, wzr, ls
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	csel	w8, w8, w24, ls
	stp	w8, w10, [sp, #56]              ; 8-byte Folded Spill
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	csel	w9, w9, w8, ls
	str	w9, [sp, #52]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	asr	w0, w8, #1
	asr	w4, w27, #1
	mov	x1, x22
	mov	x2, x28
	mov	x3, x20
	mov	x5, x25
	mov	x6, x19
Lloh18:
	adrp	x19, _sr_adc_mult_table@GOTPAGE
Lloh19:
	ldr	x19, [x19, _sr_adc_mult_table@GOTPAGEOFF]
	mov	x7, x21
	bl	_get_score
Lloh20:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	str	w26, [sp, #48]                  ; 4-byte Folded Spill
	ccmp	w26, w0, #0, ne
	b.lo	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w8, #1
	stp	w24, w8, [sp, #56]              ; 8-byte Folded Spill
	mov	x8, x24
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8
	stp	w0, w8, [sp, #48]               ; 8-byte Folded Spill
	b	LBB0_5
LBB0_9:
	mov	w8, #-1
	stp	w8, wzr, [sp, #56]              ; 8-byte Folded Spill
	mov	w8, #-1
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
LBB0_10:
	ldp	w9, w8, [sp, #52]               ; 8-byte Folded Reload
	orr	w8, w9, w8, lsl #2
Lloh23:
	adrp	x9, _TLV320AIC23_CLKIN_SHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TLV320AIC23_CLKIN_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	lsl	w9, w10, w9
	orr	w0, w8, w9
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_SR_MULT,4,2                    ; @SR_MULT
	.comm	_bosr_usb_divisor_table,8,3     ; @bosr_usb_divisor_table
	.comm	_sr_valid_mask,8,3              ; @sr_valid_mask
	.comm	_sr_adc_mult_table,8,3          ; @sr_adc_mult_table
	.comm	_sr_dac_mult_table,8,3          ; @sr_dac_mult_table
	.comm	_TLV320AIC23_CLKIN_SHIFT,4,2    ; @TLV320AIC23_CLKIN_SHIFT
	.no_dead_strip	_find_rate
.subsections_via_symbols
