	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9002_hw_init_mode_gain_regs
_ar9002_hw_init_mode_gain_regs:         ## @ar9002_hw_init_mode_gain_regs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_EEP_TXGAIN_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_AR_SREV_9287_11_OR_LATER
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdi
	movq	_ar9287Modes_rx_gain_9287_1_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_INI_ARRAY
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_AR_SREV_9280_20
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ar9280_20_hw_init_rxgain_ini
LBB0_4:
	movq	%rbx, %rdi
	callq	_AR_SREV_9271
	testq	%rax, %rax
	je	LBB0_5
## %bb.18:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar9271_hw_init_txgain_ini      ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	callq	_AR_SREV_9287_11_OR_LATER
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_ar9287Modes_tx_gain_9287_1_1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_INIT_INI_ARRAY                 ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	callq	_AR_SREV_9280_20
	testq	%rax, %rax
	je	LBB0_9
## %bb.19:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar9280_20_hw_init_txgain_ini   ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	callq	_AR_SREV_9285_12_OR_LATER
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	_AR5416_EEP_TXGAIN_HIGH_POWER@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_AR_SREV_9285E_20
	cmpq	%r15, %r14
	jne	LBB0_14
## %bb.11:
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ar9285Modes_XE2_0_high_power@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_ar9285Modes_XE2_0_normal_power@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	movq	_ar9285Modes_high_power_tx_gain_9285_1_2@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_16:
	movq	_ar9285Modes_original_tx_gain_9285_1_2@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EEP_TXGAIN_TYPE,4,2            ## @EEP_TXGAIN_TYPE
	.comm	_ar9287Modes_rx_gain_9287_1_1,4,2 ## @ar9287Modes_rx_gain_9287_1_1
	.comm	_ar9287Modes_tx_gain_9287_1_1,4,2 ## @ar9287Modes_tx_gain_9287_1_1
	.comm	_AR5416_EEP_TXGAIN_HIGH_POWER,8,3 ## @AR5416_EEP_TXGAIN_HIGH_POWER
	.comm	_ar9285Modes_XE2_0_high_power,4,2 ## @ar9285Modes_XE2_0_high_power
	.comm	_ar9285Modes_high_power_tx_gain_9285_1_2,4,2 ## @ar9285Modes_high_power_tx_gain_9285_1_2
	.comm	_ar9285Modes_XE2_0_normal_power,4,2 ## @ar9285Modes_XE2_0_normal_power
	.comm	_ar9285Modes_original_tx_gain_9285_1_2,4,2 ## @ar9285Modes_original_tx_gain_9285_1_2
	.no_dead_strip	_ar9002_hw_init_mode_gain_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9002_hw_init_mode_gain_regs
_ar9002_hw_init_mode_gain_regs:         ; @ar9002_hw_init_mode_gain_regs
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _EEP_TXGAIN_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EEP_TXGAIN_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_AR_SREV_9287_11_OR_LATER
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #4
Lloh3:
	adrp	x8, _ar9287Modes_rx_gain_9287_1_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ar9287Modes_rx_gain_9287_1_1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_INI_ARRAY
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_AR_SREV_9280_20
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_ar9280_20_hw_init_rxgain_ini
LBB0_4:
	mov	x0, x19
	bl	_AR_SREV_9271
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	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
	b	_ar9271_hw_init_txgain_ini
LBB0_6:
	mov	x0, x19
	bl	_AR_SREV_9287_11_OR_LATER
	cbz	x0, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _ar9287Modes_tx_gain_9287_1_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ar9287Modes_tx_gain_9287_1_1@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_INIT_INI_ARRAY
LBB0_9:
	mov	x0, x19
	bl	_AR_SREV_9280_20
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	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
	b	_ar9280_20_hw_init_txgain_ini
LBB0_11:
	mov	x0, x19
	bl	_AR_SREV_9285_12_OR_LATER
	cbz	x0, LBB0_15
; %bb.12:
Lloh8:
	adrp	x8, _AR5416_EEP_TXGAIN_HIGH_POWER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR5416_EEP_TXGAIN_HIGH_POWER@GOTPAGEOFF]
Lloh10:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_AR_SREV_9285E_20
	cmp	x20, x21
	b.ne	LBB0_16
; %bb.13:
	cbz	x0, LBB0_18
; %bb.14:
Lloh11:
	adrp	x8, _ar9285Modes_XE2_0_high_power@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ar9285Modes_XE2_0_high_power@GOTPAGEOFF]
	b	LBB0_8
LBB0_15:
	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_16:
	cbz	x0, LBB0_19
; %bb.17:
Lloh13:
	adrp	x8, _ar9285Modes_XE2_0_normal_power@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ar9285Modes_XE2_0_normal_power@GOTPAGEOFF]
	b	LBB0_8
LBB0_18:
Lloh15:
	adrp	x8, _ar9285Modes_high_power_tx_gain_9285_1_2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ar9285Modes_high_power_tx_gain_9285_1_2@GOTPAGEOFF]
	b	LBB0_8
LBB0_19:
Lloh17:
	adrp	x8, _ar9285Modes_original_tx_gain_9285_1_2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ar9285Modes_original_tx_gain_9285_1_2@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EEP_TXGAIN_TYPE,4,2            ; @EEP_TXGAIN_TYPE
	.comm	_ar9287Modes_rx_gain_9287_1_1,4,2 ; @ar9287Modes_rx_gain_9287_1_1
	.comm	_ar9287Modes_tx_gain_9287_1_1,4,2 ; @ar9287Modes_tx_gain_9287_1_1
	.comm	_AR5416_EEP_TXGAIN_HIGH_POWER,8,3 ; @AR5416_EEP_TXGAIN_HIGH_POWER
	.comm	_ar9285Modes_XE2_0_high_power,4,2 ; @ar9285Modes_XE2_0_high_power
	.comm	_ar9285Modes_high_power_tx_gain_9285_1_2,4,2 ; @ar9285Modes_high_power_tx_gain_9285_1_2
	.comm	_ar9285Modes_XE2_0_normal_power,4,2 ; @ar9285Modes_XE2_0_normal_power
	.comm	_ar9285Modes_original_tx_gain_9285_1_2,4,2 ; @ar9285Modes_original_tx_gain_9285_1_2
	.no_dead_strip	_ar9002_hw_init_mode_gain_regs
.subsections_via_symbols
