	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_aic_start_normal        ## -- Begin function ar9003_aic_start_normal
	.p2align	4, 0x90
_ar9003_aic_start_normal:               ## @ar9003_aic_start_normal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	_AIC_CAL_STATE_DONE@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	callq	_ar9003_aic_gain_table
	movq	_AR_PHY_AIC_SRAM_ADDR_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATH_AIC_SRAM_AUTO_INCREMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	_ATH_AIC_MAX_BT_CHANNEL@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_AR_PHY_AIC_SRAM_DATA_B1@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	movl	$42672, %esi                    ## imm = 0xA6B0
	movl	$128, %edx
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	$42676, %esi                    ## imm = 0xA6B4
	movl	$5975536, %edx                  ## imm = 0x5B2DF0
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	$42680, %esi                    ## imm = 0xA6B8
	movl	$276180168, %edx                ## imm = 0x10762CC8
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	$42684, %esi                    ## imm = 0xA6BC
	movl	$18979403, %edx                 ## imm = 0x1219A4B
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	$42688, %esi                    ## imm = 0xA6C0
	movl	$7681, %edx                     ## imm = 0x1E01
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	$46772, %esi                    ## imm = 0xB6B4
	movl	$240, %edx
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	$46784, %esi                    ## imm = 0xB6C0
	movl	$7681, %edx                     ## imm = 0x1E01
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	$46768, %esi                    ## imm = 0xB6B0
	movl	$129, %edx
	callq	_REG_WRITE
	movq	_AR_PHY_65NM_CH1_RXTX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1073741824, %edx               ## imm = 0x40000000
	callq	_REG_WRITE
	movl	$1, 16(%r15)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AIC_CAL_STATE_DONE,8,3         ## @AIC_CAL_STATE_DONE
	.comm	_AR_PHY_AIC_SRAM_ADDR_B1,4,2    ## @AR_PHY_AIC_SRAM_ADDR_B1
	.comm	_ATH_AIC_SRAM_AUTO_INCREMENT,4,2 ## @ATH_AIC_SRAM_AUTO_INCREMENT
	.comm	_ATH_AIC_MAX_BT_CHANNEL,8,3     ## @ATH_AIC_MAX_BT_CHANNEL
	.comm	_AR_PHY_AIC_SRAM_DATA_B1,4,2    ## @AR_PHY_AIC_SRAM_DATA_B1
	.comm	_AR_PHY_65NM_CH1_RXTX4,4,2      ## @AR_PHY_65NM_CH1_RXTX4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_aic_start_normal        ; -- Begin function ar9003_aic_start_normal
	.p2align	2
_ar9003_aic_start_normal:               ; @ar9003_aic_start_normal
	.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	x8, [x0]
Lloh0:
	adrp	x9, _AIC_CAL_STATE_DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AIC_CAL_STATE_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_ar9003_aic_gain_table
Lloh3:
	adrp	x8, _AR_PHY_AIC_SRAM_ADDR_B1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_PHY_AIC_SRAM_ADDR_B1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ATH_AIC_SRAM_AUTO_INCREMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH_AIC_SRAM_AUTO_INCREMENT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
Lloh9:
	adrp	x20, _ATH_AIC_MAX_BT_CHANNEL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ATH_AIC_MAX_BT_CHANNEL@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x21, #0
Lloh11:
	adrp	x22, _AR_PHY_AIC_SRAM_DATA_B1@GOTPAGE
Lloh12:
	ldr	x22, [x22, _AR_PHY_AIC_SRAM_DATA_B1@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_REG_WRITE
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_4:
	mov	x0, x19
	mov	w1, #42672
	mov	w2, #128
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #42676
	mov	w2, #11760
	movk	w2, #91, lsl #16
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #42680
	mov	w2, #11464
	movk	w2, #4214, lsl #16
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #42684
	mov	w2, #39499
	movk	w2, #289, lsl #16
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #42688
	mov	w2, #7681
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #46772
	mov	w2, #240
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #46784
	mov	w2, #7681
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #46768
	mov	w2, #129
	bl	_REG_WRITE
Lloh13:
	adrp	x8, _AR_PHY_65NM_CH1_RXTX4@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_PHY_65NM_CH1_RXTX4@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1073741824
	bl	_REG_WRITE
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AIC_CAL_STATE_DONE,8,3         ; @AIC_CAL_STATE_DONE
	.comm	_AR_PHY_AIC_SRAM_ADDR_B1,4,2    ; @AR_PHY_AIC_SRAM_ADDR_B1
	.comm	_ATH_AIC_SRAM_AUTO_INCREMENT,4,2 ; @ATH_AIC_SRAM_AUTO_INCREMENT
	.comm	_ATH_AIC_MAX_BT_CHANNEL,8,3     ; @ATH_AIC_MAX_BT_CHANNEL
	.comm	_AR_PHY_AIC_SRAM_DATA_B1,4,2    ; @AR_PHY_AIC_SRAM_DATA_B1
	.comm	_AR_PHY_65NM_CH1_RXTX4,4,2      ; @AR_PHY_65NM_CH1_RXTX4
.subsections_via_symbols
