	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_rfregs_init
_ath5k_hw_rfregs_init:                  ## @ath5k_hw_rfregs_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
	subq	$56, %rsp
	.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	$6, %eax
	ja	LBB0_13
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	jmpq	*%rax
LBB0_7:
	movq	_rf_regs_5413@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	_rfb_5413@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movl	8(%r12), %eax
	movq	_AR5K_SREV_RAD_5112A@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
## %bb.4:
	movq	_rf_regs_5112@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	_rfgain_opt_5112@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_rfb_5112@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_rf_regs_5111@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	_rfgain_opt_5111@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_rfb_5111@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	_rf_regs_2425@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	16(%r12), %rax
	movq	_AR5K_SREV_AR2417@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_10
## %bb.11:
	movq	_rfb_2425@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_rf_regs_2413@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	_rfb_2413@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_rf_regs_2425@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	_rfb_2317@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_rf_regs_2316@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	_rfb_2316@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_rf_regs_5112a@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%r12)
	movq	_rfgain_opt_5112@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_rfb_5112a@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movq	_rfb_2417@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_16:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r12)
	movq	64(%r12), %r13
	testq	%r13, %r13
	je	LBB0_17
## %bb.19:
	testl	%eax, %eax
	jg	LBB0_20
	jmp	LBB0_26
LBB0_17:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, 64(%r12)
	testq	%rax, %rax
	je	LBB0_74
## %bb.18:
	movq	%rax, %r13
	movl	4(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_26
LBB0_20:
	movl	%r15d, %eax
	leaq	8(%r14), %rcx
	movl	$-1, %ebx
	xorl	%edx, %edx
	movq	_AR5K_MAX_RF_BANKS@GOTPCREL(%rip), %r8
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	(%rcx), %rsi
	movl	(%rsi,%rax,4), %esi
	movl	%esi, (%r13,%rdx,4)
	incq	%rdx
	movslq	4(%r12), %rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	jge	LBB0_26
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rcx), %edi
	cmpl	(%r8), %edi
	jge	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	%edi, %ebx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movslq	%edi, %rbx
	movq	24(%r12), %rsi
	movl	%edx, (%rsi,%rbx,4)
	movl	%edi, %ebx
	jmp	LBB0_25
LBB0_26:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_47
## %bb.27:
	movq	8(%rdx), %rax
	movq	_AR5K_MODE_11B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.29:
	movq	_AR5K_EEPROM_MODE_11B@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_47:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_50
## %bb.48:
	cmpl	$130, (%r12)
	jne	LBB0_49
LBB0_50:
	movq	_AR5K_EEPROM_MODE_11A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	16(%rdx), %ecx
	movq	_AR5K_RF_DB_5GHZ@GOTPCREL(%rip), %rdx
	movq	_AR5K_RF_OB_5GHZ@GOTPCREL(%rip), %rax
	movl	$3, %r15d
	cmpl	$5724, %ecx                     ## imm = 0x165C
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jg	LBB0_31
## %bb.51:
	movl	$2, %r15d
	cmpl	$5499, %ecx                     ## imm = 0x157B
	jg	LBB0_31
## %bb.52:
	movl	$1, %r15d
	cmpl	$5259, %ecx                     ## imm = 0x148B
	jg	LBB0_31
## %bb.53:
	xorl	%r15d, %r15d
	cmpl	$4000, %ecx                     ## imm = 0xFA0
	jg	LBB0_31
## %bb.54:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_73
LBB0_22:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_ATH5K_ERR
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_28:
	movq	_AR5K_EEPROM_MODE_11G@GOTPCREL(%rip), %rax
LBB0_30:
	movq	(%rax), %rsi
	movl	$-131, %eax
	addl	(%r12), %eax
	xorl	%r15d, %r15d
	cmpl	$-2, %eax
	setb	%r15b
	movq	_AR5K_RF_DB_2GHZ@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_AR5K_RF_OB_2GHZ@GOTPCREL(%rip), %rax
LBB0_31:
	movq	80(%r12), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movl	(%rcx,%r15,4), %edx
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rsi, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	88(%r12), %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%r15,4), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%rbx, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	-88(%rbp), %r13                 ## 8-byte Reload
LBB0_32:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	32(%r12), %rax
	movq	48(%r12), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_AR5K_BWMODE_40MHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.33:
	cmpl	$128, (%r12)
	je	LBB0_65
## %bb.34:
	movq	_AR5K_RF_TURBO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_ath5k_hw_rfb_op
LBB0_35:
	movl	(%r12), %eax
	cmpl	$130, %eax
	jne	LBB0_42
## %bb.36:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_AR5K_MODE_11B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
## %bb.37:
	movq	_AR5K_PHY_FRAME_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_PHY_FRAME_CTL_TX_CLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	4(%rax), %edx
	movq	_AR5K_RF_PWD_90@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	8(%rax), %edx
	movq	_AR5K_RF_PWD_84@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	12(%rax), %edx
	movq	_AR5K_RF_RFGAIN_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RFGAIN_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r12)
LBB0_38:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	96(%r12), %rax
	xorl	%edx, %edx
	movq	%r15, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, (%rax,%r15,4)
	sete	%dl
	movq	_AR5K_RF_PWD_XPD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	104(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movq	_AR5K_RF_XPD_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	112(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movq	_AR5K_RF_GAIN_I@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	96(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movq	_AR5K_RF_PLO_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	32(%r12), %rax
	movq	_AR5K_BWMODE_5MHZ@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_40
## %bb.39:
	movq	_AR5K_BWMODE_10MHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_41
LBB0_40:
	movq	_AR5K_RF_WAIT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$31, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	32(%r12), %rax
	cmpq	(%r15), %rax
	movl	$16, %edx
	movl	$31, %eax
	cmovel	%eax, %edx
	movq	_AR5K_RF_WAIT_I@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_MAX_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
LBB0_41:
	movl	(%r12), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_42:
	cmpl	$129, %eax
	jne	LBB0_64
## %bb.43:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_AR5K_MODE_11B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_45
## %bb.44:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	(%rax), %edx
	movq	_AR5K_RF_MIXGAIN_OVR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	4(%rax), %edx
	movq	_AR5K_RF_PWD_138@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	8(%rax), %edx
	movq	_AR5K_RF_PWD_137@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movl	12(%rax), %edx
	movq	_AR5K_RF_PWD_136@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%rbx,%r15,8), %rax
	movl	16(%rax), %edx
	movq	_AR5K_RF_PWD_132@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	(%rbx,%r15,8), %rax
	movl	20(%rax), %edx
	movq	_AR5K_RF_PWD_131@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	(%rbx,%r15,8), %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	24(%rax), %edx
	movq	_AR5K_RF_PWD_130@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RFGAIN_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r12)
LBB0_45:
	movq	96(%r12), %rax
	movq	%r15, %rsi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edx
	movq	_AR5K_RF_XPD_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rsi, %rbx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movl	8(%r12), %eax
	movq	_AR5K_SREV_RAD_5112A@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_55
## %bb.46:
	movq	104(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movq	_AR5K_RF_XPD_GAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_74:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_ATH5K_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_73
LBB0_55:
	movq	120(%r12), %rax
	movq	128(%r12), %rcx
	movq	(%rax,%r15,8), %r13
	xorl	%ebx, %ebx
	cmpl	$2, (%rcx,%r15,4)
	setge	%bl
	movl	(%r13), %edx
	movq	_AR5K_RF_PD_GAIN_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movl	(%r13,%rbx,8), %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_AR5K_RF_PD_GAIN_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	cmpl	$129, (%r12)
	jne	LBB0_58
## %bb.56:
	movq	_AR5K_SREV_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	jle	LBB0_58
## %bb.57:
	movq	_AR5K_RF_HIGH_VC_CP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_MID_VC_CP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_LOW_VC_CP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_PUSH_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
LBB0_58:
	movq	40(%r12), %rax
	movq	_AR5K_SREV_PHY_5212A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_61
## %bb.59:
	movq	_AR5K_RF_PAD2GND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_XB2_LVL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_XB5_LVL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_PWD_167@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rbx
	movq	%r15, %rsi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movl	$1, %edx
	movq	_AR5K_RF_PWD_166@GOTPCREL(%rip), %rax
LBB0_60:
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %r15
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
LBB0_61:
	movq	112(%r12), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movq	_AR5K_RF_GAIN_I@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	32(%r12), %rax
	movq	_AR5K_BWMODE_5MHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_63
## %bb.62:
	movq	_AR5K_BWMODE_10MHZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_64
LBB0_63:
	cmpq	%rcx, %rax
	movl	$15, %eax
	movl	$8, %edx
	cmovel	%eax, %edx
	movq	_AR5K_RF_PD_PERIOD_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	_AR5K_RF_PD_DELAY_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$15, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
LBB0_64:
	cmpl	$128, (%r12)
	jne	LBB0_69
LBB0_65:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_69
## %bb.66:
	movq	_AR5K_RF_DERBY_CHAN_SEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
	movq	16(%r12), %rax
	movq	_AR5K_SREV_AR5424@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_69
## %bb.67:
	movq	_AR5K_SREV_AR5413@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_69
## %bb.68:
	movl	$6, %edi
	movl	$3, %esi
	callq	_ath5k_hw_bitswap
	movq	_AR5K_RF_PWD_ICLOBUF_2G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	$1, %r8d
	callq	_ath5k_hw_rfb_op
LBB0_69:
	cmpl	$0, 4(%r12)
	jle	LBB0_70
## %bb.71:
	addq	$4, %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_72:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR5K_REG_WAIT
	movl	(%r13,%rbx,4), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_ath5k_hw_reg_write
	incq	%rbx
	movslq	4(%r12), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_72
	jmp	LBB0_73
LBB0_70:
	xorl	%r15d, %r15d
LBB0_73:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_rf_regs_5111,8,3               ## @rf_regs_5111
	.comm	_rfb_5111,8,3                   ## @rfb_5111
	.comm	_rfgain_opt_5111,8,3            ## @rfgain_opt_5111
	.comm	_AR5K_SREV_RAD_5112A,4,2        ## @AR5K_SREV_RAD_5112A
	.comm	_rf_regs_5112a,8,3              ## @rf_regs_5112a
	.comm	_rfb_5112a,8,3                  ## @rfb_5112a
	.comm	_rf_regs_5112,8,3               ## @rf_regs_5112
	.comm	_rfb_5112,8,3                   ## @rfb_5112
	.comm	_rfgain_opt_5112,8,3            ## @rfgain_opt_5112
	.comm	_rf_regs_2413,8,3               ## @rf_regs_2413
	.comm	_rfb_2413,8,3                   ## @rfb_2413
	.comm	_rf_regs_2316,8,3               ## @rf_regs_2316
	.comm	_rfb_2316,8,3                   ## @rfb_2316
	.comm	_rf_regs_5413,8,3               ## @rf_regs_5413
	.comm	_rfb_5413,8,3                   ## @rfb_5413
	.comm	_rf_regs_2425,8,3               ## @rf_regs_2425
	.comm	_rfb_2317,8,3                   ## @rfb_2317
	.comm	_AR5K_SREV_AR2417,8,3           ## @AR5K_SREV_AR2417
	.comm	_rfb_2425,8,3                   ## @rfb_2425
	.comm	_rfb_2417,8,3                   ## @rfb_2417
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AR5K_MAX_RF_BANKS,4,2          ## @AR5K_MAX_RF_BANKS
L_.str.1:                               ## @.str.1
	.asciz	"invalid bank\n"

	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_AR5K_MODE_11B,8,3              ## @AR5K_MODE_11B
	.comm	_AR5K_EEPROM_MODE_11B,8,3       ## @AR5K_EEPROM_MODE_11B
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ## @AR5K_EEPROM_MODE_11G
	.comm	_AR5K_RF_OB_2GHZ,4,2            ## @AR5K_RF_OB_2GHZ
	.comm	_AR5K_RF_DB_2GHZ,4,2            ## @AR5K_RF_DB_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_AR5K_EEPROM_MODE_11A,8,3       ## @AR5K_EEPROM_MODE_11A
	.comm	_AR5K_RF_OB_5GHZ,4,2            ## @AR5K_RF_OB_5GHZ
	.comm	_AR5K_RF_DB_5GHZ,4,2            ## @AR5K_RF_DB_5GHZ
	.comm	_AR5K_BWMODE_40MHZ,8,3          ## @AR5K_BWMODE_40MHZ
	.comm	_AR5K_RF_TURBO,4,2              ## @AR5K_RF_TURBO
	.comm	_AR5K_PHY_FRAME_CTL,4,2         ## @AR5K_PHY_FRAME_CTL
	.comm	_AR5K_PHY_FRAME_CTL_TX_CLIP,4,2 ## @AR5K_PHY_FRAME_CTL_TX_CLIP
	.comm	_AR5K_RF_PWD_90,4,2             ## @AR5K_RF_PWD_90
	.comm	_AR5K_RF_PWD_84,4,2             ## @AR5K_RF_PWD_84
	.comm	_AR5K_RF_RFGAIN_SEL,4,2         ## @AR5K_RF_RFGAIN_SEL
	.comm	_AR5K_RFGAIN_ACTIVE,8,3         ## @AR5K_RFGAIN_ACTIVE
	.comm	_AR5K_RF_PWD_XPD,4,2            ## @AR5K_RF_PWD_XPD
	.comm	_AR5K_RF_XPD_GAIN,4,2           ## @AR5K_RF_XPD_GAIN
	.comm	_AR5K_RF_GAIN_I,4,2             ## @AR5K_RF_GAIN_I
	.comm	_AR5K_RF_PLO_SEL,4,2            ## @AR5K_RF_PLO_SEL
	.comm	_AR5K_BWMODE_5MHZ,8,3           ## @AR5K_BWMODE_5MHZ
	.comm	_AR5K_BWMODE_10MHZ,8,3          ## @AR5K_BWMODE_10MHZ
	.comm	_AR5K_RF_WAIT_S,4,2             ## @AR5K_RF_WAIT_S
	.comm	_AR5K_RF_WAIT_I,4,2             ## @AR5K_RF_WAIT_I
	.comm	_AR5K_RF_MAX_TIME,4,2           ## @AR5K_RF_MAX_TIME
	.comm	_AR5K_RF_MIXGAIN_OVR,4,2        ## @AR5K_RF_MIXGAIN_OVR
	.comm	_AR5K_RF_PWD_138,4,2            ## @AR5K_RF_PWD_138
	.comm	_AR5K_RF_PWD_137,4,2            ## @AR5K_RF_PWD_137
	.comm	_AR5K_RF_PWD_136,4,2            ## @AR5K_RF_PWD_136
	.comm	_AR5K_RF_PWD_132,4,2            ## @AR5K_RF_PWD_132
	.comm	_AR5K_RF_PWD_131,4,2            ## @AR5K_RF_PWD_131
	.comm	_AR5K_RF_PWD_130,4,2            ## @AR5K_RF_PWD_130
	.comm	_AR5K_RF_XPD_SEL,4,2            ## @AR5K_RF_XPD_SEL
	.comm	_AR5K_RF_PD_GAIN_LO,4,2         ## @AR5K_RF_PD_GAIN_LO
	.comm	_AR5K_RF_PD_GAIN_HI,4,2         ## @AR5K_RF_PD_GAIN_HI
	.comm	_AR5K_SREV_REV,4,2              ## @AR5K_SREV_REV
	.comm	_AR5K_RF_HIGH_VC_CP,4,2         ## @AR5K_RF_HIGH_VC_CP
	.comm	_AR5K_RF_MID_VC_CP,4,2          ## @AR5K_RF_MID_VC_CP
	.comm	_AR5K_RF_LOW_VC_CP,4,2          ## @AR5K_RF_LOW_VC_CP
	.comm	_AR5K_RF_PUSH_UP,4,2            ## @AR5K_RF_PUSH_UP
	.comm	_AR5K_SREV_PHY_5212A,8,3        ## @AR5K_SREV_PHY_5212A
	.comm	_AR5K_RF_PAD2GND,4,2            ## @AR5K_RF_PAD2GND
	.comm	_AR5K_RF_XB2_LVL,4,2            ## @AR5K_RF_XB2_LVL
	.comm	_AR5K_RF_XB5_LVL,4,2            ## @AR5K_RF_XB5_LVL
	.comm	_AR5K_RF_PWD_167,4,2            ## @AR5K_RF_PWD_167
	.comm	_AR5K_RF_PWD_166,4,2            ## @AR5K_RF_PWD_166
	.comm	_AR5K_RF_PD_PERIOD_A,4,2        ## @AR5K_RF_PD_PERIOD_A
	.comm	_AR5K_RF_PD_DELAY_A,4,2         ## @AR5K_RF_PD_DELAY_A
	.comm	_AR5K_RF_DERBY_CHAN_SEL_MODE,4,2 ## @AR5K_RF_DERBY_CHAN_SEL_MODE
	.comm	_AR5K_SREV_AR5424,8,3           ## @AR5K_SREV_AR5424
	.comm	_AR5K_SREV_AR5413,8,3           ## @AR5K_SREV_AR5413
	.comm	_AR5K_RF_PWD_ICLOBUF_2G,4,2     ## @AR5K_RF_PWD_ICLOBUF_2G
	.no_dead_strip	_ath5k_hw_rfregs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_rfregs_init
_ath5k_hw_rfregs_init:                  ; @ath5k_hw_rfregs_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_27
; %bb.1:
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _rf_regs_5413@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rf_regs_5413@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x27, #0
	str	x0, [x19, #72]
Lloh5:
	adrp	x8, _rfb_5413@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rfb_5413@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	ldr	w8, [x19, #8]
Lloh7:
	adrp	x9, _AR5K_SREV_RAD_5112A@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AR5K_SREV_RAD_5112A@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.4:
Lloh10:
	adrp	x8, _rf_regs_5112@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rf_regs_5112@GOTPAGEOFF]
Lloh12:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	str	x0, [x19, #72]
Lloh13:
	adrp	x27, _rfgain_opt_5112@GOTPAGE
Lloh14:
	ldr	x27, [x27, _rfgain_opt_5112@GOTPAGEOFF]
Lloh15:
	adrp	x8, _rfb_5112@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rfb_5112@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh17:
	adrp	x8, _rf_regs_5111@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rf_regs_5111@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	str	x0, [x19, #72]
Lloh20:
	adrp	x27, _rfgain_opt_5111@GOTPAGE
Lloh21:
	ldr	x27, [x27, _rfgain_opt_5111@GOTPAGEOFF]
Lloh22:
	adrp	x8, _rfb_5111@GOTPAGE
Lloh23:
	ldr	x8, [x8, _rfb_5111@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh24:
	adrp	x8, _rf_regs_2425@GOTPAGE
Lloh25:
	ldr	x8, [x8, _rf_regs_2425@GOTPAGEOFF]
Lloh26:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x27, #0
	str	x0, [x19, #72]
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _AR5K_SREV_AR2417@GOTPAGE
Lloh28:
	ldr	x9, [x9, _AR5K_SREV_AR2417@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
Lloh30:
	adrp	x10, _rfb_2417@GOTPAGE
Lloh31:
	ldr	x10, [x10, _rfb_2417@GOTPAGEOFF]
Lloh32:
	adrp	x11, _rfb_2425@GOTPAGE
Lloh33:
	ldr	x11, [x11, _rfb_2425@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, lt
	b	LBB0_11
LBB0_7:
Lloh34:
	adrp	x8, _rf_regs_2413@GOTPAGE
Lloh35:
	ldr	x8, [x8, _rf_regs_2413@GOTPAGEOFF]
Lloh36:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x27, #0
	str	x0, [x19, #72]
Lloh37:
	adrp	x8, _rfb_2413@GOTPAGE
Lloh38:
	ldr	x8, [x8, _rfb_2413@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh39:
	adrp	x8, _rf_regs_2425@GOTPAGE
Lloh40:
	ldr	x8, [x8, _rf_regs_2425@GOTPAGEOFF]
Lloh41:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x27, #0
	str	x0, [x19, #72]
Lloh42:
	adrp	x8, _rfb_2317@GOTPAGE
Lloh43:
	ldr	x8, [x8, _rfb_2317@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh44:
	adrp	x8, _rf_regs_2316@GOTPAGE
Lloh45:
	ldr	x8, [x8, _rf_regs_2316@GOTPAGEOFF]
Lloh46:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x27, #0
	str	x0, [x19, #72]
Lloh47:
	adrp	x8, _rfb_2316@GOTPAGE
Lloh48:
	ldr	x8, [x8, _rfb_2316@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh49:
	adrp	x8, _rf_regs_5112a@GOTPAGE
Lloh50:
	ldr	x8, [x8, _rf_regs_5112a@GOTPAGEOFF]
Lloh51:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	str	x0, [x19, #72]
Lloh52:
	adrp	x27, _rfgain_opt_5112@GOTPAGE
Lloh53:
	ldr	x27, [x27, _rfgain_opt_5112@GOTPAGEOFF]
Lloh54:
	adrp	x8, _rfb_5112a@GOTPAGE
Lloh55:
	ldr	x8, [x8, _rfb_5112a@GOTPAGEOFF]
LBB0_11:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	str	w0, [x19, #4]
	ldr	x22, [x19, #64]
	cbz	x22, LBB0_13
; %bb.12:
	cmp	w0, #1
	b.ge	LBB0_15
	b	LBB0_20
LBB0_13:
Lloh56:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x19, #64]
	cbz	x0, LBB0_28
; %bb.14:
	mov	x22, x0
	ldr	w0, [x19, #4]
	cmp	w0, #1
	b.lt	LBB0_20
LBB0_15:
	mov	x8, #0
	add	x9, x23, #8
	mov	w12, #-1
Lloh59:
	adrp	x10, _AR5K_MAX_RF_BANKS@GOTPAGE
Lloh60:
	ldr	x10, [x10, _AR5K_MAX_RF_BANKS@GOTPAGEOFF]
	mov	w11, w24
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x13, [x9], #16
	ldr	w13, [x13, x11, lsl #2]
	str	w13, [x22, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x13, [x19, #4]
	cmp	x8, x13
	b.ge	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x9, #-8]
	ldr	w14, [x10]
	cmp	w13, w14
	b.ge	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w12, w13
	b.eq	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	sxtw	x12, w13
	ldr	x14, [x19, #24]
	str	w8, [x14, x12, lsl #2]
	mov	x12, x13
	b	LBB0_16
LBB0_20:
	ldr	x8, [x21]
Lloh61:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh62:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	ldr	x8, [x21, #8]
Lloh64:
	adrp	x9, _AR5K_MODE_11B@GOTPAGE
Lloh65:
	ldr	x9, [x9, _AR5K_MODE_11B@GOTPAGEOFF]
Lloh66:
	adrp	x10, _AR5K_EEPROM_MODE_11B@GOTPAGE
Lloh67:
	ldr	x10, [x10, _AR5K_EEPROM_MODE_11B@GOTPAGEOFF]
Lloh68:
	adrp	x11, _AR5K_EEPROM_MODE_11G@GOTPAGE
Lloh69:
	ldr	x11, [x11, _AR5K_EEPROM_MODE_11G@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x26, [x8]
	ldr	w8, [x19]
	sub	w8, w8, #131
	cmn	w8, #2
	cset	w9, lo
Lloh71:
	adrp	x24, _AR5K_RF_DB_2GHZ@GOTPAGE
Lloh72:
	ldr	x24, [x24, _AR5K_RF_DB_2GHZ@GOTPAGEOFF]
Lloh73:
	adrp	x8, _AR5K_RF_OB_2GHZ@GOTPAGE
Lloh74:
	ldr	x8, [x8, _AR5K_RF_OB_2GHZ@GOTPAGEOFF]
	b	LBB0_37
LBB0_22:
Lloh75:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh76:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.23:
	ldr	w8, [x19]
	cmp	w8, #130
	b.ne	LBB0_32
LBB0_24:
Lloh78:
	adrp	x8, _AR5K_EEPROM_MODE_11A@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AR5K_EEPROM_MODE_11A@GOTPAGEOFF]
Lloh80:
	ldr	x26, [x8]
	ldr	w8, [x21, #16]
	mov	w9, #5724
	cmp	w8, w9
	b.le	LBB0_30
; %bb.25:
Lloh81:
	adrp	x24, _AR5K_RF_DB_5GHZ@GOTPAGE
Lloh82:
	ldr	x24, [x24, _AR5K_RF_DB_5GHZ@GOTPAGEOFF]
Lloh83:
	adrp	x8, _AR5K_RF_OB_5GHZ@GOTPAGE
Lloh84:
	ldr	x8, [x8, _AR5K_RF_OB_5GHZ@GOTPAGEOFF]
	mov	w9, #3
	b	LBB0_37
LBB0_26:
Lloh85:
	adrp	x1, l_.str.1@PAGE
Lloh86:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_ERR
LBB0_27:
Lloh87:
	adrp	x8, _EINVAL@GOTPAGE
Lloh88:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_29
LBB0_28:
Lloh89:
	adrp	x1, l_.str@PAGE
Lloh90:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_ERR
Lloh91:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh92:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_71
LBB0_30:
	mov	w9, #5499
	cmp	w8, w9
	b.le	LBB0_33
; %bb.31:
Lloh93:
	adrp	x24, _AR5K_RF_DB_5GHZ@GOTPAGE
Lloh94:
	ldr	x24, [x24, _AR5K_RF_DB_5GHZ@GOTPAGEOFF]
Lloh95:
	adrp	x8, _AR5K_RF_OB_5GHZ@GOTPAGE
Lloh96:
	ldr	x8, [x8, _AR5K_RF_OB_5GHZ@GOTPAGEOFF]
	mov	w9, #2
	b	LBB0_37
LBB0_32:
	mov	x26, #0
	b	LBB0_38
LBB0_33:
	mov	w9, #5259
	cmp	w8, w9
	b.le	LBB0_35
; %bb.34:
Lloh97:
	adrp	x24, _AR5K_RF_DB_5GHZ@GOTPAGE
Lloh98:
	ldr	x24, [x24, _AR5K_RF_DB_5GHZ@GOTPAGEOFF]
Lloh99:
	adrp	x8, _AR5K_RF_OB_5GHZ@GOTPAGE
Lloh100:
	ldr	x8, [x8, _AR5K_RF_OB_5GHZ@GOTPAGEOFF]
	mov	w9, #1
	b	LBB0_37
LBB0_35:
	cmp	w8, #4000
	b.le	LBB0_27
; %bb.36:
	mov	x9, #0
Lloh101:
	adrp	x24, _AR5K_RF_DB_5GHZ@GOTPAGE
Lloh102:
	ldr	x24, [x24, _AR5K_RF_DB_5GHZ@GOTPAGEOFF]
Lloh103:
	adrp	x8, _AR5K_RF_OB_5GHZ@GOTPAGE
Lloh104:
	ldr	x8, [x8, _AR5K_RF_OB_5GHZ@GOTPAGEOFF]
LBB0_37:
	ldr	x10, [x19, #80]
	lsl	x28, x26, #3
	ldr	x10, [x10, x28]
	lsl	x25, x9, #2
	ldr	w2, [x10, x25]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #88]
	ldr	x8, [x8, x28]
	ldr	w2, [x8, x25]
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
LBB0_38:
	ldr	x24, [x27]
	ldr	x27, [x19, #48]
	ldr	x8, [x19, #32]
Lloh105:
	adrp	x9, _AR5K_BWMODE_40MHZ@GOTPAGE
Lloh106:
	ldr	x9, [x9, _AR5K_BWMODE_40MHZ@GOTPAGEOFF]
Lloh107:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_41
; %bb.39:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_63
; %bb.40:
Lloh108:
	adrp	x8, _AR5K_RF_TURBO@GOTPAGE
Lloh109:
	ldr	x8, [x8, _AR5K_RF_TURBO@GOTPAGEOFF]
Lloh110:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w4, #0
	bl	_ath5k_hw_rfb_op
LBB0_41:
	ldr	w8, [x19]
	cmp	w8, #130
	b.ne	LBB0_48
; %bb.42:
	ldr	x8, [x21, #8]
Lloh111:
	adrp	x9, _AR5K_MODE_11B@GOTPAGE
Lloh112:
	ldr	x9, [x9, _AR5K_MODE_11B@GOTPAGEOFF]
Lloh113:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_44
; %bb.43:
Lloh114:
	adrp	x8, _AR5K_PHY_FRAME_CTL@GOTPAGE
Lloh115:
	ldr	x8, [x8, _AR5K_PHY_FRAME_CTL@GOTPAGEOFF]
Lloh116:
	adrp	x9, _AR5K_PHY_FRAME_CTL_TX_CLIP@GOTPAGE
Lloh117:
	ldr	x9, [x9, _AR5K_PHY_FRAME_CTL_TX_CLIP@GOTPAGEOFF]
Lloh118:
	ldr	w1, [x8]
Lloh119:
	ldr	w2, [x9]
	lsl	x25, x27, #3
	ldr	x8, [x24, x25]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
	ldr	x8, [x24, x25]
	ldr	w2, [x8, #4]
Lloh120:
	adrp	x8, _AR5K_RF_PWD_90@GOTPAGE
Lloh121:
	ldr	x8, [x8, _AR5K_RF_PWD_90@GOTPAGEOFF]
Lloh122:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x25]
	ldr	w2, [x8, #8]
Lloh123:
	adrp	x8, _AR5K_RF_PWD_84@GOTPAGE
Lloh124:
	ldr	x8, [x8, _AR5K_RF_PWD_84@GOTPAGEOFF]
Lloh125:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x25]
	ldr	w2, [x8, #12]
Lloh126:
	adrp	x8, _AR5K_RF_RFGAIN_SEL@GOTPAGE
Lloh127:
	ldr	x8, [x8, _AR5K_RF_RFGAIN_SEL@GOTPAGEOFF]
Lloh128:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh129:
	adrp	x8, _AR5K_RFGAIN_ACTIVE@GOTPAGE
Lloh130:
	ldr	x8, [x8, _AR5K_RFGAIN_ACTIVE@GOTPAGEOFF]
Lloh131:
	ldr	x8, [x8]
	str	x8, [x19, #56]
LBB0_44:
	ldr	x8, [x19, #96]
	lsl	x25, x26, #2
	ldr	w8, [x8, x25]
	cmp	w8, #0
	cset	w2, eq
Lloh132:
	adrp	x8, _AR5K_RF_PWD_XPD@GOTPAGE
Lloh133:
	ldr	x8, [x8, _AR5K_RF_PWD_XPD@GOTPAGEOFF]
Lloh134:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #104]
	ldr	w2, [x8, x25]
Lloh135:
	adrp	x8, _AR5K_RF_XPD_GAIN@GOTPAGE
Lloh136:
	ldr	x8, [x8, _AR5K_RF_XPD_GAIN@GOTPAGEOFF]
Lloh137:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #112]
	ldr	w2, [x8, x25]
Lloh138:
	adrp	x8, _AR5K_RF_GAIN_I@GOTPAGE
Lloh139:
	ldr	x8, [x8, _AR5K_RF_GAIN_I@GOTPAGEOFF]
Lloh140:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #96]
	ldr	w2, [x8, x25]
Lloh141:
	adrp	x8, _AR5K_RF_PLO_SEL@GOTPAGE
Lloh142:
	ldr	x8, [x8, _AR5K_RF_PLO_SEL@GOTPAGEOFF]
Lloh143:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #32]
Lloh144:
	adrp	x28, _AR5K_BWMODE_5MHZ@GOTPAGE
Lloh145:
	ldr	x28, [x28, _AR5K_BWMODE_5MHZ@GOTPAGEOFF]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_46
; %bb.45:
Lloh146:
	adrp	x9, _AR5K_BWMODE_10MHZ@GOTPAGE
Lloh147:
	ldr	x9, [x9, _AR5K_BWMODE_10MHZ@GOTPAGEOFF]
Lloh148:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_47
LBB0_46:
Lloh149:
	adrp	x8, _AR5K_RF_WAIT_S@GOTPAGE
Lloh150:
	ldr	x8, [x8, _AR5K_RF_WAIT_S@GOTPAGEOFF]
Lloh151:
	ldr	w3, [x8]
	mov	w25, #31
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #32]
	ldr	x9, [x28]
	cmp	x8, x9
	mov	w8, #16
	csel	w2, w25, w8, eq
Lloh152:
	adrp	x8, _AR5K_RF_WAIT_I@GOTPAGE
Lloh153:
	ldr	x8, [x8, _AR5K_RF_WAIT_I@GOTPAGEOFF]
Lloh154:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh155:
	adrp	x8, _AR5K_RF_MAX_TIME@GOTPAGE
Lloh156:
	ldr	x8, [x8, _AR5K_RF_MAX_TIME@GOTPAGEOFF]
Lloh157:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #3
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
LBB0_47:
	ldr	w8, [x19]
LBB0_48:
	cmp	w8, #129
	b.ne	LBB0_62
; %bb.49:
	ldr	x8, [x21, #8]
Lloh158:
	adrp	x9, _AR5K_MODE_11B@GOTPAGE
Lloh159:
	ldr	x9, [x9, _AR5K_MODE_11B@GOTPAGEOFF]
Lloh160:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_51
; %bb.50:
	lsl	x27, x27, #3
	ldr	x8, [x24, x27]
	ldr	w2, [x8]
Lloh161:
	adrp	x8, _AR5K_RF_MIXGAIN_OVR@GOTPAGE
Lloh162:
	ldr	x8, [x8, _AR5K_RF_MIXGAIN_OVR@GOTPAGEOFF]
Lloh163:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x27]
	ldr	w2, [x8, #4]
Lloh164:
	adrp	x8, _AR5K_RF_PWD_138@GOTPAGE
Lloh165:
	ldr	x8, [x8, _AR5K_RF_PWD_138@GOTPAGEOFF]
Lloh166:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x27]
	ldr	w2, [x8, #8]
Lloh167:
	adrp	x8, _AR5K_RF_PWD_137@GOTPAGE
Lloh168:
	ldr	x8, [x8, _AR5K_RF_PWD_137@GOTPAGEOFF]
Lloh169:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x27]
	ldr	w2, [x8, #12]
Lloh170:
	adrp	x8, _AR5K_RF_PWD_136@GOTPAGE
Lloh171:
	ldr	x8, [x8, _AR5K_RF_PWD_136@GOTPAGEOFF]
Lloh172:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x27]
	ldr	w2, [x8, #16]
Lloh173:
	adrp	x8, _AR5K_RF_PWD_132@GOTPAGE
Lloh174:
	ldr	x8, [x8, _AR5K_RF_PWD_132@GOTPAGEOFF]
Lloh175:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x27]
	ldr	w2, [x8, #20]
Lloh176:
	adrp	x8, _AR5K_RF_PWD_131@GOTPAGE
Lloh177:
	ldr	x8, [x8, _AR5K_RF_PWD_131@GOTPAGEOFF]
Lloh178:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x24, x27]
	ldr	w2, [x8, #24]
Lloh179:
	adrp	x8, _AR5K_RF_PWD_130@GOTPAGE
Lloh180:
	ldr	x8, [x8, _AR5K_RF_PWD_130@GOTPAGEOFF]
Lloh181:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh182:
	adrp	x8, _AR5K_RFGAIN_ACTIVE@GOTPAGE
Lloh183:
	ldr	x8, [x8, _AR5K_RFGAIN_ACTIVE@GOTPAGEOFF]
Lloh184:
	ldr	x8, [x8]
	str	x8, [x19, #56]
LBB0_51:
	ldr	x8, [x19, #96]
	ldr	w2, [x8, x26, lsl #2]
Lloh185:
	adrp	x8, _AR5K_RF_XPD_SEL@GOTPAGE
Lloh186:
	ldr	x8, [x8, _AR5K_RF_XPD_SEL@GOTPAGEOFF]
Lloh187:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	w8, [x19, #8]
Lloh188:
	adrp	x9, _AR5K_SREV_RAD_5112A@GOTPAGE
Lloh189:
	ldr	x9, [x9, _AR5K_SREV_RAD_5112A@GOTPAGEOFF]
Lloh190:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_53
; %bb.52:
	ldr	x8, [x19, #104]
	ldr	w24, [x8, x26, lsl #2]
Lloh191:
	adrp	x8, _AR5K_RF_XPD_GAIN@GOTPAGE
Lloh192:
	ldr	x8, [x8, _AR5K_RF_XPD_GAIN@GOTPAGEOFF]
	b	LBB0_58
LBB0_53:
	ldp	x8, x9, [x19, #120]
	ldr	x24, [x8, x26, lsl #3]
	ldr	w8, [x9, x26, lsl #2]
	cmp	w8, #1
	cset	w25, gt
	ldr	w2, [x24]
Lloh193:
	adrp	x8, _AR5K_RF_PD_GAIN_LO@GOTPAGE
Lloh194:
	ldr	x8, [x8, _AR5K_RF_PD_GAIN_LO@GOTPAGEOFF]
Lloh195:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x2, [x24, w25, uxtw #3]
Lloh196:
	adrp	x8, _AR5K_RF_PD_GAIN_HI@GOTPAGE
Lloh197:
	ldr	x8, [x8, _AR5K_RF_PD_GAIN_HI@GOTPAGEOFF]
Lloh198:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_56
; %bb.54:
	ldr	w8, [x19, #8]
Lloh199:
	adrp	x9, _AR5K_SREV_REV@GOTPAGE
Lloh200:
	ldr	x9, [x9, _AR5K_SREV_REV@GOTPAGEOFF]
Lloh201:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_56
; %bb.55:
Lloh202:
	adrp	x8, _AR5K_RF_HIGH_VC_CP@GOTPAGE
Lloh203:
	ldr	x8, [x8, _AR5K_RF_HIGH_VC_CP@GOTPAGEOFF]
Lloh204:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh205:
	adrp	x8, _AR5K_RF_MID_VC_CP@GOTPAGE
Lloh206:
	ldr	x8, [x8, _AR5K_RF_MID_VC_CP@GOTPAGEOFF]
Lloh207:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh208:
	adrp	x8, _AR5K_RF_LOW_VC_CP@GOTPAGE
Lloh209:
	ldr	x8, [x8, _AR5K_RF_LOW_VC_CP@GOTPAGEOFF]
Lloh210:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh211:
	adrp	x8, _AR5K_RF_PUSH_UP@GOTPAGE
Lloh212:
	ldr	x8, [x8, _AR5K_RF_PUSH_UP@GOTPAGEOFF]
Lloh213:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
LBB0_56:
	ldr	x8, [x19, #40]
Lloh214:
	adrp	x9, _AR5K_SREV_PHY_5212A@GOTPAGE
Lloh215:
	ldr	x9, [x9, _AR5K_SREV_PHY_5212A@GOTPAGEOFF]
Lloh216:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_59
; %bb.57:
Lloh217:
	adrp	x8, _AR5K_RF_PAD2GND@GOTPAGE
Lloh218:
	ldr	x8, [x8, _AR5K_RF_PAD2GND@GOTPAGEOFF]
Lloh219:
	ldr	w3, [x8]
	mov	w24, #1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh220:
	adrp	x8, _AR5K_RF_XB2_LVL@GOTPAGE
Lloh221:
	ldr	x8, [x8, _AR5K_RF_XB2_LVL@GOTPAGEOFF]
Lloh222:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh223:
	adrp	x8, _AR5K_RF_XB5_LVL@GOTPAGE
Lloh224:
	ldr	x8, [x8, _AR5K_RF_XB5_LVL@GOTPAGEOFF]
Lloh225:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh226:
	adrp	x8, _AR5K_RF_PWD_167@GOTPAGE
Lloh227:
	ldr	x8, [x8, _AR5K_RF_PWD_167@GOTPAGEOFF]
Lloh228:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh229:
	adrp	x8, _AR5K_RF_PWD_166@GOTPAGE
Lloh230:
	ldr	x8, [x8, _AR5K_RF_PWD_166@GOTPAGEOFF]
LBB0_58:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
LBB0_59:
	ldr	x8, [x19, #112]
	ldr	w2, [x8, x26, lsl #2]
Lloh231:
	adrp	x8, _AR5K_RF_GAIN_I@GOTPAGE
Lloh232:
	ldr	x8, [x8, _AR5K_RF_GAIN_I@GOTPAGEOFF]
Lloh233:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #32]
Lloh234:
	adrp	x9, _AR5K_BWMODE_5MHZ@GOTPAGE
Lloh235:
	ldr	x9, [x9, _AR5K_BWMODE_5MHZ@GOTPAGEOFF]
Lloh236:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_61
; %bb.60:
Lloh237:
	adrp	x10, _AR5K_BWMODE_10MHZ@GOTPAGE
Lloh238:
	ldr	x10, [x10, _AR5K_BWMODE_10MHZ@GOTPAGEOFF]
Lloh239:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_62
LBB0_61:
	cmp	x8, x9
	mov	w8, #8
	mov	w9, #15
	csel	w2, w9, w8, eq
Lloh240:
	adrp	x8, _AR5K_RF_PD_PERIOD_A@GOTPAGE
Lloh241:
	ldr	x8, [x8, _AR5K_RF_PD_PERIOD_A@GOTPAGEOFF]
Lloh242:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
Lloh243:
	adrp	x8, _AR5K_RF_PD_DELAY_A@GOTPAGE
Lloh244:
	ldr	x8, [x8, _AR5K_RF_PD_DELAY_A@GOTPAGEOFF]
Lloh245:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #15
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
LBB0_62:
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_67
LBB0_63:
	ldr	x8, [x21]
Lloh246:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh247:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh248:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_67
; %bb.64:
Lloh249:
	adrp	x8, _AR5K_RF_DERBY_CHAN_SEL_MODE@GOTPAGE
Lloh250:
	ldr	x8, [x8, _AR5K_RF_DERBY_CHAN_SEL_MODE@GOTPAGEOFF]
Lloh251:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
	ldr	x8, [x19, #16]
Lloh252:
	adrp	x9, _AR5K_SREV_AR5424@GOTPAGE
Lloh253:
	ldr	x9, [x9, _AR5K_SREV_AR5424@GOTPAGEOFF]
Lloh254:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_67
; %bb.65:
Lloh255:
	adrp	x9, _AR5K_SREV_AR5413@GOTPAGE
Lloh256:
	ldr	x9, [x9, _AR5K_SREV_AR5413@GOTPAGEOFF]
Lloh257:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_67
; %bb.66:
	mov	w0, #6
	mov	w1, #3
	bl	_ath5k_hw_bitswap
	mov	x2, x0
Lloh258:
	adrp	x8, _AR5K_RF_PWD_ICLOBUF_2G@GOTPAGE
Lloh259:
	ldr	x8, [x8, _AR5K_RF_PWD_ICLOBUF_2G@GOTPAGEOFF]
Lloh260:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ath5k_hw_rfb_op
LBB0_67:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_70
; %bb.68:
	mov	x20, #0
	add	x21, x23, #4
LBB0_69:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR5K_REG_WAIT
	ldr	w1, [x22, x20, lsl #2]
	ldr	w2, [x21], #16
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_69
LBB0_70:
	mov	w0, #0
LBB0_71:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh70
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh118
	.loh AdrpLdrGot	Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh182, Lloh183, Lloh184
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh181
	.loh AdrpLdrGotLdr	Lloh176, Lloh177, Lloh178
	.loh AdrpLdrGotLdr	Lloh173, Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpLdrGotLdr	Lloh167, Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh164, Lloh165, Lloh166
	.loh AdrpLdrGotLdr	Lloh161, Lloh162, Lloh163
	.loh AdrpLdrGotLdr	Lloh188, Lloh189, Lloh190
	.loh AdrpLdrGotLdr	Lloh185, Lloh186, Lloh187
	.loh AdrpLdrGot	Lloh191, Lloh192
	.loh AdrpLdrGotLdr	Lloh196, Lloh197, Lloh198
	.loh AdrpLdrGotLdr	Lloh193, Lloh194, Lloh195
	.loh AdrpLdrGotLdr	Lloh199, Lloh200, Lloh201
	.loh AdrpLdrGotLdr	Lloh211, Lloh212, Lloh213
	.loh AdrpLdrGotLdr	Lloh208, Lloh209, Lloh210
	.loh AdrpLdrGotLdr	Lloh205, Lloh206, Lloh207
	.loh AdrpLdrGotLdr	Lloh202, Lloh203, Lloh204
	.loh AdrpLdrGotLdr	Lloh214, Lloh215, Lloh216
	.loh AdrpLdrGot	Lloh229, Lloh230
	.loh AdrpLdrGotLdr	Lloh226, Lloh227, Lloh228
	.loh AdrpLdrGotLdr	Lloh223, Lloh224, Lloh225
	.loh AdrpLdrGotLdr	Lloh220, Lloh221, Lloh222
	.loh AdrpLdrGotLdr	Lloh217, Lloh218, Lloh219
	.loh AdrpLdrGotLdr	Lloh234, Lloh235, Lloh236
	.loh AdrpLdrGotLdr	Lloh231, Lloh232, Lloh233
	.loh AdrpLdrGotLdr	Lloh237, Lloh238, Lloh239
	.loh AdrpLdrGotLdr	Lloh243, Lloh244, Lloh245
	.loh AdrpLdrGotLdr	Lloh240, Lloh241, Lloh242
	.loh AdrpLdrGotLdr	Lloh246, Lloh247, Lloh248
	.loh AdrpLdrGotLdr	Lloh252, Lloh253, Lloh254
	.loh AdrpLdrGotLdr	Lloh249, Lloh250, Lloh251
	.loh AdrpLdrGotLdr	Lloh255, Lloh256, Lloh257
	.loh AdrpLdrGotLdr	Lloh258, Lloh259, Lloh260
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_rf_regs_5111,8,3               ; @rf_regs_5111
	.comm	_rfb_5111,8,3                   ; @rfb_5111
	.comm	_rfgain_opt_5111,8,3            ; @rfgain_opt_5111
	.comm	_AR5K_SREV_RAD_5112A,4,2        ; @AR5K_SREV_RAD_5112A
	.comm	_rf_regs_5112a,8,3              ; @rf_regs_5112a
	.comm	_rfb_5112a,8,3                  ; @rfb_5112a
	.comm	_rf_regs_5112,8,3               ; @rf_regs_5112
	.comm	_rfb_5112,8,3                   ; @rfb_5112
	.comm	_rfgain_opt_5112,8,3            ; @rfgain_opt_5112
	.comm	_rf_regs_2413,8,3               ; @rf_regs_2413
	.comm	_rfb_2413,8,3                   ; @rfb_2413
	.comm	_rf_regs_2316,8,3               ; @rf_regs_2316
	.comm	_rfb_2316,8,3                   ; @rfb_2316
	.comm	_rf_regs_5413,8,3               ; @rf_regs_5413
	.comm	_rfb_5413,8,3                   ; @rfb_5413
	.comm	_rf_regs_2425,8,3               ; @rf_regs_2425
	.comm	_rfb_2317,8,3                   ; @rfb_2317
	.comm	_AR5K_SREV_AR2417,8,3           ; @AR5K_SREV_AR2417
	.comm	_rfb_2425,8,3                   ; @rfb_2425
	.comm	_rfb_2417,8,3                   ; @rfb_2417
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AR5K_MAX_RF_BANKS,4,2          ; @AR5K_MAX_RF_BANKS
l_.str.1:                               ; @.str.1
	.asciz	"invalid bank\n"

	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_AR5K_MODE_11B,8,3              ; @AR5K_MODE_11B
	.comm	_AR5K_EEPROM_MODE_11B,8,3       ; @AR5K_EEPROM_MODE_11B
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ; @AR5K_EEPROM_MODE_11G
	.comm	_AR5K_RF_OB_2GHZ,4,2            ; @AR5K_RF_OB_2GHZ
	.comm	_AR5K_RF_DB_2GHZ,4,2            ; @AR5K_RF_DB_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_AR5K_EEPROM_MODE_11A,8,3       ; @AR5K_EEPROM_MODE_11A
	.comm	_AR5K_RF_OB_5GHZ,4,2            ; @AR5K_RF_OB_5GHZ
	.comm	_AR5K_RF_DB_5GHZ,4,2            ; @AR5K_RF_DB_5GHZ
	.comm	_AR5K_BWMODE_40MHZ,8,3          ; @AR5K_BWMODE_40MHZ
	.comm	_AR5K_RF_TURBO,4,2              ; @AR5K_RF_TURBO
	.comm	_AR5K_PHY_FRAME_CTL,4,2         ; @AR5K_PHY_FRAME_CTL
	.comm	_AR5K_PHY_FRAME_CTL_TX_CLIP,4,2 ; @AR5K_PHY_FRAME_CTL_TX_CLIP
	.comm	_AR5K_RF_PWD_90,4,2             ; @AR5K_RF_PWD_90
	.comm	_AR5K_RF_PWD_84,4,2             ; @AR5K_RF_PWD_84
	.comm	_AR5K_RF_RFGAIN_SEL,4,2         ; @AR5K_RF_RFGAIN_SEL
	.comm	_AR5K_RFGAIN_ACTIVE,8,3         ; @AR5K_RFGAIN_ACTIVE
	.comm	_AR5K_RF_PWD_XPD,4,2            ; @AR5K_RF_PWD_XPD
	.comm	_AR5K_RF_XPD_GAIN,4,2           ; @AR5K_RF_XPD_GAIN
	.comm	_AR5K_RF_GAIN_I,4,2             ; @AR5K_RF_GAIN_I
	.comm	_AR5K_RF_PLO_SEL,4,2            ; @AR5K_RF_PLO_SEL
	.comm	_AR5K_BWMODE_5MHZ,8,3           ; @AR5K_BWMODE_5MHZ
	.comm	_AR5K_BWMODE_10MHZ,8,3          ; @AR5K_BWMODE_10MHZ
	.comm	_AR5K_RF_WAIT_S,4,2             ; @AR5K_RF_WAIT_S
	.comm	_AR5K_RF_WAIT_I,4,2             ; @AR5K_RF_WAIT_I
	.comm	_AR5K_RF_MAX_TIME,4,2           ; @AR5K_RF_MAX_TIME
	.comm	_AR5K_RF_MIXGAIN_OVR,4,2        ; @AR5K_RF_MIXGAIN_OVR
	.comm	_AR5K_RF_PWD_138,4,2            ; @AR5K_RF_PWD_138
	.comm	_AR5K_RF_PWD_137,4,2            ; @AR5K_RF_PWD_137
	.comm	_AR5K_RF_PWD_136,4,2            ; @AR5K_RF_PWD_136
	.comm	_AR5K_RF_PWD_132,4,2            ; @AR5K_RF_PWD_132
	.comm	_AR5K_RF_PWD_131,4,2            ; @AR5K_RF_PWD_131
	.comm	_AR5K_RF_PWD_130,4,2            ; @AR5K_RF_PWD_130
	.comm	_AR5K_RF_XPD_SEL,4,2            ; @AR5K_RF_XPD_SEL
	.comm	_AR5K_RF_PD_GAIN_LO,4,2         ; @AR5K_RF_PD_GAIN_LO
	.comm	_AR5K_RF_PD_GAIN_HI,4,2         ; @AR5K_RF_PD_GAIN_HI
	.comm	_AR5K_SREV_REV,4,2              ; @AR5K_SREV_REV
	.comm	_AR5K_RF_HIGH_VC_CP,4,2         ; @AR5K_RF_HIGH_VC_CP
	.comm	_AR5K_RF_MID_VC_CP,4,2          ; @AR5K_RF_MID_VC_CP
	.comm	_AR5K_RF_LOW_VC_CP,4,2          ; @AR5K_RF_LOW_VC_CP
	.comm	_AR5K_RF_PUSH_UP,4,2            ; @AR5K_RF_PUSH_UP
	.comm	_AR5K_SREV_PHY_5212A,8,3        ; @AR5K_SREV_PHY_5212A
	.comm	_AR5K_RF_PAD2GND,4,2            ; @AR5K_RF_PAD2GND
	.comm	_AR5K_RF_XB2_LVL,4,2            ; @AR5K_RF_XB2_LVL
	.comm	_AR5K_RF_XB5_LVL,4,2            ; @AR5K_RF_XB5_LVL
	.comm	_AR5K_RF_PWD_167,4,2            ; @AR5K_RF_PWD_167
	.comm	_AR5K_RF_PWD_166,4,2            ; @AR5K_RF_PWD_166
	.comm	_AR5K_RF_PD_PERIOD_A,4,2        ; @AR5K_RF_PD_PERIOD_A
	.comm	_AR5K_RF_PD_DELAY_A,4,2         ; @AR5K_RF_PD_DELAY_A
	.comm	_AR5K_RF_DERBY_CHAN_SEL_MODE,4,2 ; @AR5K_RF_DERBY_CHAN_SEL_MODE
	.comm	_AR5K_SREV_AR5424,8,3           ; @AR5K_SREV_AR5424
	.comm	_AR5K_SREV_AR5413,8,3           ; @AR5K_SREV_AR5413
	.comm	_AR5K_RF_PWD_ICLOBUF_2G,4,2     ; @AR5K_RF_PWD_ICLOBUF_2G
	.no_dead_strip	_ath5k_hw_rfregs_init
.subsections_via_symbols
