	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_aic_find_index
_ar9003_aic_find_index:                 ## @ar9003_aic_find_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	movq	$-1, %rax
	cmpl	$1, %edi
	jne	LBB0_11
## %bb.2:
	movq	_ATH_AIC_MAX_COM_ATT_DB_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_3
## %bb.6:
	movq	_com_att_db_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r8, %rdi
	negq	%rdi
	movq	$-1, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, 8(%rdx,%rcx,8)
	ja	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%rdi,%rcx), %rax
	incq	%rax
	incq	%rcx
	cmpq	$-1, %rax
	jne	LBB0_7
## %bb.9:
	movq	%r8, %rcx
	jmp	LBB0_10
LBB0_4:
	movq	_ATH_AIC_MAX_AIC_LIN_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_aic_lin_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rcx), %rax
	cmpq	%rsi, -8(%rdx,%rcx,8)
	movq	%rax, %rcx
	jb	LBB0_5
LBB0_11:
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
LBB0_10:
	cmpq	%r8, %rcx
	movq	$-1, %rax
	cmovbq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_AIC_MAX_AIC_LIN_TABLE,8,3  ## @ATH_AIC_MAX_AIC_LIN_TABLE
	.comm	_aic_lin_table,8,3              ## @aic_lin_table
	.comm	_ATH_AIC_MAX_COM_ATT_DB_TABLE,8,3 ## @ATH_AIC_MAX_COM_ATT_DB_TABLE
	.comm	_com_att_db_table,8,3           ## @com_att_db_table
	.no_dead_strip	_ar9003_aic_find_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_aic_find_index
_ar9003_aic_find_index:                 ; @ar9003_aic_find_index
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_7
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.2:
Lloh0:
	adrp	x8, _ATH_AIC_MAX_COM_ATT_DB_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_AIC_MAX_COM_ATT_DB_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.3:
	mov	x9, #0
Lloh3:
	adrp	x10, _com_att_db_table@GOTPAGE
Lloh4:
	ldr	x10, [x10, _com_att_db_table@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cmp	x11, x1
	b.hi	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.6:
	mov	x9, x8
	b	LBB0_13
LBB0_7:
Lloh6:
	adrp	x8, _ATH_AIC_MAX_AIC_LIN_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH_AIC_MAX_AIC_LIN_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _aic_lin_table@GOTPAGE
Lloh10:
	ldr	x9, [x9, _aic_lin_table@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	sub	x9, x9, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x8, #1
	ldr	x10, [x9, x8, lsl #3]
	mov	x8, x0
	cmp	x10, x1
	b.lo	LBB0_8
; %bb.9:
	ret
LBB0_10:
	mov	x0, #-1
	ret
LBB0_11:
	mov	x9, #0
	b	LBB0_13
LBB0_12:
	sub	x9, x9, #1
LBB0_13:
	cmp	x9, x8
	csinv	x0, x9, xzr, lo
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_AIC_MAX_AIC_LIN_TABLE,8,3  ; @ATH_AIC_MAX_AIC_LIN_TABLE
	.comm	_aic_lin_table,8,3              ; @aic_lin_table
	.comm	_ATH_AIC_MAX_COM_ATT_DB_TABLE,8,3 ; @ATH_AIC_MAX_COM_ATT_DB_TABLE
	.comm	_com_att_db_table,8,3           ; @com_att_db_table
	.no_dead_strip	_ar9003_aic_find_index
.subsections_via_symbols
