	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_determine_vc_tbl_index
_da9052_determine_vc_tbl_index:         ## @da9052_determine_vc_tbl_index
	.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
	movl	%edi, %r13d
	movq	_vc_tbl_ref@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movb	(%rcx), %al
	cmpb	%r13b, %al
	jae	LBB0_13
## %bb.1:
	movq	_DA9052_VC_TBL_REF_SZ@GOTPCREL(%rip), %r12
	movslq	(%r12), %r14
	cmpb	%r13b, -1(%rcx,%r14)
	jae	LBB0_2
## %bb.15:
	decq	%r14
	jmp	LBB0_14
LBB0_2:
	cmpl	$2, %r14d
	jl	LBB0_12
## %bb.3:
	movl	$1, %ebx
	xorl	%r14d, %r14d
	cmpb	%r13b, %al
	jae	LBB0_7
	.p2align	4, 0x90
LBB0_5:
	movzbl	(%rcx,%rbx), %esi
	movzbl	%al, %edi
	callq	_DA9052_MEAN
	cmpb	%r13b, %al
	jae	LBB0_14
## %bb.6:
	movq	(%r15), %rcx
	movb	-1(%rcx,%rbx), %al
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rbx), %esi
	movzbl	%al, %edi
	callq	_DA9052_MEAN
	cmpb	%r13b, %al
	jae	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	cmpb	%r13b, -1(%rax,%rbx)
	jae	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r12), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rcx
	movzbl	(%rcx,%rbx), %eax
	incb	%r14b
	incq	%rbx
	cmpb	%r13b, %al
	jb	LBB0_5
	jmp	LBB0_7
LBB0_12:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movzbl	%r14b, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%ebx, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_vc_tbl_ref,8,3                 ## @vc_tbl_ref
	.comm	_DA9052_VC_TBL_REF_SZ,4,2       ## @DA9052_VC_TBL_REF_SZ
	.no_dead_strip	_da9052_determine_vc_tbl_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_determine_vc_tbl_index
_da9052_determine_vc_tbl_index:         ; @da9052_determine_vc_tbl_index
	.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
Lloh0:
	adrp	x20, _vc_tbl_ref@GOTPAGE
Lloh1:
	ldr	x20, [x20, _vc_tbl_ref@GOTPAGEOFF]
	ldr	x9, [x20]
	ldrb	w8, [x9]
	cmp	w8, w0
	b.hs	LBB0_11
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _DA9052_VC_TBL_REF_SZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DA9052_VC_TBL_REF_SZ@GOTPAGEOFF]
	ldrsw	x10, [x21]
	sub	x22, x10, #1
	ldrb	w11, [x9, x22]
	cmp	w11, w0
	b.lo	LBB0_12
; %bb.2:
	cmp	w10, #2
	b.lt	LBB0_10
; %bb.3:
	mov	x22, #0
	cmp	w8, w19
	b.hs	LBB0_6
LBB0_4:
	add	x9, x9, x22
	ldrb	w1, [x9, #1]
	and	w0, w8, #0xff
	bl	_DA9052_MEAN
	cmp	w0, w19
	b.hs	LBB0_13
; %bb.5:
	ldr	x9, [x20]
	ldrb	w8, [x9, x22]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x9, x22
	ldrb	w1, [x9, #1]
	and	w0, w8, #0xff
	bl	_DA9052_MEAN
	cmp	w0, w19
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldrb	w8, [x8, x22]
	cmp	w8, w19
	b.hs	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x22, #1
	ldrsw	x9, [x21]
	sub	x9, x9, #1
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x20]
	add	x8, x9, x22
	ldrb	w8, [x8, #1]
	add	x22, x22, #1
	cmp	w8, w19
	b.lo	LBB0_4
	b	LBB0_6
LBB0_10:
	mov	w0, #1
	bl	_WARN_ON
LBB0_11:
	mov	w22, #0
LBB0_12:
	and	w0, w22, #0xff
	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
LBB0_13:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_12
LBB0_14:
	add	w22, w22, #1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_vc_tbl_ref,8,3                 ; @vc_tbl_ref
	.comm	_DA9052_VC_TBL_REF_SZ,4,2       ; @DA9052_VC_TBL_REF_SZ
	.no_dead_strip	_da9052_determine_vc_tbl_index
.subsections_via_symbols
