	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_process_ini
_ar9003_hw_process_ini:                 ## @ar9003_hw_process_ini
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_IS_CHAN_5GHZ
	movq	%rax, %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_IS_CHAN_HT40
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	%r15b
	movl	$2, %eax
	subl	%r15d, %eax
	addl	$3, %r15d
	testq	%r12, %r12
	cmovnel	%eax, %r15d
	movq	_ATH_INI_NUM_SPLIT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	leaq	48(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	_ATH_INI_POST@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_ATH_INI_NUM_SPLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$4, %r14
	cmpq	%rax, %r13
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	80(%rbx), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ar9003_hw_prog_ini
	movq	72(%rbx), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ar9003_hw_prog_ini
	movq	64(%rbx), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ar9003_hw_prog_ini
	movq	56(%rbx), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ar9003_hw_prog_ini
	movl	(%r12), %eax
	cmpq	%rax, %r13
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_AR_SREV_9462_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_ar9003_hw_prog_ini
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_ar9003_doubler_fix
	leaq	44(%rbx), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
	movq	%rbx, %rdi
	callq	_AR_SREV_9462_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rbx, %rdi
	callq	_ar9003_hw_get_rx_gain_idx
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.8:
	leaq	40(%rbx), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
	leaq	36(%rbx), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
LBB0_9:
	movq	%rbx, %rdi
	callq	_ar9003_hw_get_rx_gain_idx
	cmpl	$2, %eax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_ar9003_hw_get_rx_gain_idx
	cmpl	$3, %eax
	jne	LBB0_12
LBB0_11:
	leaq	28(%rbx), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
LBB0_12:
	movq	%rbx, %rdi
	callq	_AR_SREV_9550
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_AR_SREV_9561
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	leaq	32(%rbx), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
LBB0_15:
	movq	%rbx, %rdi
	callq	_AR_SREV_9561
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	callq	_ar9003_hw_get_rx_gain_idx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	leaq	28(%rbx), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
LBB0_18:
	movq	%rbx, %rdi
	callq	_AR_SREV_9550
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:
	movq	%rbx, %rdi
	callq	_AR_SREV_9531
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	_AR_SREV_9561
	movl	%r15d, %r12d
	testq	%rax, %rax
	je	LBB0_28
LBB0_21:
	movq	%rbx, %rdi
	callq	_AR_SREV_9550
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ar9550_hw_get_modes_txgain_index
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_22:
	movl	$1, %r12d
LBB0_24:
	movq	%rbx, %rdi
	callq	_AR_SREV_9561
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ar9561_hw_get_modes_txgain_index
	movl	%eax, %r12d
LBB0_26:
	testl	%r12d, %r12d
	js	LBB0_27
LBB0_28:
	leaq	24(%rbx), %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_IS_CHAN_A_FAST_CLOCK
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	leaq	20(%rbx), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
LBB0_30:
	leaq	16(%rbx), %rdi
	xorl	%r12d, %r12d
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE_ARRAY
	cmpl	$2484, (%r14)                   ## imm = 0x9B4
	jne	LBB0_33
## %bb.31:
	leaq	12(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_ar9003_hw_prog_ini
	movq	%rbx, %rdi
	callq	_AR_SREV_9531
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	_AR_PHY_FCAL_2_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_FLC_PWR_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
LBB0_33:
	movl	%r15d, (%rbx)
	movq	%rbx, %rdi
	callq	_ar9003_hw_override_ini
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ar9003_hw_set_channel_regs
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ar9003_hw_set_chain_masks
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ath9k_hw_apply_txpower
	jmp	LBB0_34
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_34:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_INI_NUM_SPLIT,4,2          ## @ATH_INI_NUM_SPLIT
	.comm	_ATH_INI_POST,4,2               ## @ATH_INI_POST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR_PHY_FCAL_2_0,4,2            ## @AR_PHY_FCAL_2_0
	.comm	_AR_PHY_FLC_PWR_THRESH,4,2      ## @AR_PHY_FLC_PWR_THRESH
	.no_dead_strip	_ar9003_hw_process_ini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_process_ini
_ar9003_hw_process_ini:                 ; @ar9003_hw_process_ini
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_IS_CHAN_5GHZ
	mov	x21, x0
	mov	x0, x19
	bl	_IS_CHAN_HT40
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, ne
	mov	w9, #3
	cinc	w9, w9, eq
	cmp	x21, #0
	csel	w21, w9, w8, eq
Lloh0:
	adrp	x23, _ATH_INI_NUM_SPLIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATH_INI_NUM_SPLIT@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	add	x22, x20, #48
Lloh2:
	adrp	x26, _ATH_INI_POST@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ATH_INI_POST@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	w8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #80]
	add	x1, x8, x24
	mov	x0, x20
	mov	x2, x21
	bl	_ar9003_hw_prog_ini
	ldr	x8, [x20, #72]
	add	x1, x8, x24
	mov	x0, x20
	mov	x2, x21
	bl	_ar9003_hw_prog_ini
	ldr	x8, [x20, #64]
	add	x1, x8, x24
	mov	x0, x20
	mov	x2, x21
	bl	_ar9003_hw_prog_ini
	ldr	x8, [x20, #56]
	add	x1, x8, x24
	mov	x0, x20
	mov	x2, x21
	bl	_ar9003_hw_prog_ini
	ldr	w8, [x26]
	cmp	x25, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_AR_SREV_9462_20_OR_LATER
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_ar9003_hw_prog_ini
	b	LBB0_2
LBB0_6:
	mov	x0, x20
	bl	_ar9003_doubler_fix
	add	x0, x20, #44
	mov	w1, #1
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
	mov	x0, x20
	bl	_AR_SREV_9462_20_OR_LATER
	cbz	x0, LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_ar9003_hw_get_rx_gain_idx
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.8:
	add	x0, x20, #40
	mov	w1, #1
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
	add	x0, x20, #36
	mov	x1, x21
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
LBB0_9:
	mov	x0, x20
	bl	_ar9003_hw_get_rx_gain_idx
	cmp	w0, #2
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_ar9003_hw_get_rx_gain_idx
	cmp	w0, #3
	b.ne	LBB0_12
LBB0_11:
	add	x0, x20, #28
	mov	x1, x21
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
LBB0_12:
	mov	x0, x20
	bl	_AR_SREV_9550
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_AR_SREV_9561
	cbz	x0, LBB0_15
LBB0_14:
	add	x0, x20, #32
	mov	x1, x21
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
LBB0_15:
	mov	x0, x20
	bl	_AR_SREV_9561
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_ar9003_hw_get_rx_gain_idx
	cbnz	w0, LBB0_18
; %bb.17:
	add	x0, x20, #28
	mov	x1, x21
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
LBB0_18:
	mov	x0, x20
	bl	_AR_SREV_9550
	cbnz	x0, LBB0_21
; %bb.19:
	mov	x0, x20
	bl	_AR_SREV_9531
	cbnz	x0, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_AR_SREV_9561
	mov	x22, x21
	cbz	x0, LBB0_27
LBB0_21:
	mov	x0, x20
	bl	_AR_SREV_9550
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x20
	mov	x1, x19
	bl	_ar9550_hw_get_modes_txgain_index
	mov	x22, x0
	b	LBB0_24
LBB0_23:
	mov	w22, #1
LBB0_24:
	mov	x0, x20
	bl	_AR_SREV_9561
	cbz	x0, LBB0_26
; %bb.25:
	mov	x0, x20
	mov	x1, x19
	bl	_ar9561_hw_get_modes_txgain_index
	mov	x22, x0
LBB0_26:
	tbnz	w22, #31, LBB0_33
LBB0_27:
	add	x0, x20, #24
	mov	x1, x22
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
	mov	x0, x20
	mov	x1, x19
	bl	_IS_CHAN_A_FAST_CLOCK
	cbz	x0, LBB0_29
; %bb.28:
	add	x0, x20, #20
	mov	x1, x21
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
LBB0_29:
	add	x0, x20, #16
	mov	w1, #1
	mov	w2, #0
	bl	_REG_WRITE_ARRAY
	ldr	w8, [x19]
	cmp	w8, #2484
	b.ne	LBB0_32
; %bb.30:
	add	x1, x20, #12
	mov	x0, x20
	mov	w2, #1
	bl	_ar9003_hw_prog_ini
	mov	x0, x20
	bl	_AR_SREV_9531
	cbz	x0, LBB0_32
; %bb.31:
Lloh4:
	adrp	x8, _AR_PHY_FCAL_2_0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR_PHY_FCAL_2_0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _AR_PHY_FLC_PWR_THRESH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR_PHY_FLC_PWR_THRESH@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_REG_RMW_FIELD
LBB0_32:
	str	w21, [x20]
	mov	x0, x20
	bl	_ar9003_hw_override_ini
	mov	x0, x20
	mov	x1, x19
	bl	_ar9003_hw_set_channel_regs
	ldp	w2, w1, [x20, #4]
	mov	x0, x20
	bl	_ar9003_hw_set_chain_masks
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_ath9k_hw_apply_txpower
	mov	w0, #0
	b	LBB0_34
LBB0_33:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_34:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_INI_NUM_SPLIT,4,2          ; @ATH_INI_NUM_SPLIT
	.comm	_ATH_INI_POST,4,2               ; @ATH_INI_POST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR_PHY_FCAL_2_0,4,2            ; @AR_PHY_FCAL_2_0
	.comm	_AR_PHY_FLC_PWR_THRESH,4,2      ; @AR_PHY_FLC_PWR_THRESH
	.no_dead_strip	_ar9003_hw_process_ini
.subsections_via_symbols
