	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_rfgain_init
_ath5k_hw_rfgain_init:                  ## @ath5k_hw_rfgain_init
	.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	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	jae	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	cltq
	leaq	l_switch.table.ath5k_hw_rfgain_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpl	%ebx, (%rcx)
	sete	%r13b
	movl	%eax, %r15d
	addq	$8, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR5K_REG_WAIT
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movl	-8(%r12), %edx
	movq	%r14, %rdi
	callq	_ath5k_hw_reg_write
	incq	%rbx
	addq	$16, %r12
	cmpq	%rbx, %r15
	jne	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rfgain_5111,8,3                ## @rfgain_5111
	.comm	_rfgain_5112,8,3                ## @rfgain_5112
	.comm	_rfgain_2413,8,3                ## @rfgain_2413
	.comm	_rfgain_2316,8,3                ## @rfgain_2316
	.comm	_rfgain_5413,8,3                ## @rfgain_5413
	.comm	_rfgain_2425,8,3                ## @rfgain_2425
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.no_dead_strip	_ath5k_hw_rfgain_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ath5k_hw_rfgain_init
l_switch.table.ath5k_hw_rfgain_init:
	.quad	_rfgain_5413
	.quad	_rfgain_5112
	.quad	_rfgain_5111
	.quad	_rfgain_2425
	.quad	_rfgain_2413
	.quad	_rfgain_2425
	.quad	_rfgain_2316

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_rfgain_init
_ath5k_hw_rfgain_init:                  ; @ath5k_hw_rfgain_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hs	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.ath5k_hw_rfgain_init@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ath5k_hw_rfgain_init@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.2:
	mov	x20, #0
Lloh2:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w21, eq
	mov	w23, w0
	add	x22, x22, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR5K_REG_WAIT
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	ldur	w2, [x22, #-8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	add	x20, x20, #1
	add	x22, x22, #16
	cmp	x23, x20
	b.ne	LBB0_3
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_rfgain_5111,8,3                ; @rfgain_5111
	.comm	_rfgain_5112,8,3                ; @rfgain_5112
	.comm	_rfgain_2413,8,3                ; @rfgain_2413
	.comm	_rfgain_2316,8,3                ; @rfgain_2316
	.comm	_rfgain_5413,8,3                ; @rfgain_5413
	.comm	_rfgain_2425,8,3                ; @rfgain_2425
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.no_dead_strip	_ath5k_hw_rfgain_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ath5k_hw_rfgain_init
l_switch.table.ath5k_hw_rfgain_init:
	.quad	_rfgain_5413
	.quad	_rfgain_5112
	.quad	_rfgain_5111
	.quad	_rfgain_2425
	.quad	_rfgain_2413
	.quad	_rfgain_2425
	.quad	_rfgain_2316

.subsections_via_symbols
