	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5008_hw_set_rf_regs
_ar5008_hw_set_rf_regs:                 ## @ar5008_hw_set_rf_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	%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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	callq	_AR_SREV_9280_20_OR_LATER
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	8(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, 16(%r13)
	jle	LBB0_4
## %bb.2:
	leaq	16(%r13), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_INI_RA
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movslq	16(%r13), %rax
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_4:
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_IS_CHAN_2GHZ
	movq	8(%r13), %rcx
	movq	8(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EEP_OB_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*%rcx
	movl	%eax, %ebx
	movq	8(%r13), %rax
	movq	_EEP_DB_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	callq	*8(%rax)
	movl	%eax, %r15d
	movq	(%r13), %rdi
	movl	%ebx, %esi
	movl	$3, %edx
	movl	$197, %ecx
	xorl	%r8d, %r8d
	callq	_ar5008_hw_phy_modify_rx_buffer
	movq	(%r13), %rdi
	movl	%r15d, %esi
	movl	$3, %edx
	movl	$194, %ecx
	jmp	LBB0_8
LBB0_7:
	movq	_EEP_OB_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*%rcx
	movl	%eax, %ebx
	movq	8(%r13), %rax
	movq	_EEP_DB_5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	callq	*8(%rax)
	movl	%eax, %r15d
	movq	(%r13), %rdi
	movl	%ebx, %esi
	movl	$3, %edx
	movl	$203, %ecx
	xorl	%r8d, %r8d
	callq	_ar5008_hw_phy_modify_rx_buffer
	movq	(%r13), %rdi
	movl	%r15d, %esi
	movl	$3, %edx
	movl	$200, %ecx
LBB0_8:
	xorl	%r8d, %r8d
	callq	_ar5008_hw_phy_modify_rx_buffer
LBB0_9:
	movl	-44(%rbp), %ebx
	movq	_bank0@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE_ARRAY
	movq	_bank1@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE_ARRAY
	movq	_bank2@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE_ARRAY
	movq	_bank3@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE_ARRAY
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ar5008_write_bank6
	movl	-44(%rbp), %edx
	movq	_bank7@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_REG_WRITE_ARRAY
LBB0_10:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEP_OB_2,4,2                   ## @EEP_OB_2
	.comm	_EEP_DB_2,4,2                   ## @EEP_DB_2
	.comm	_EEP_OB_5,4,2                   ## @EEP_OB_5
	.comm	_EEP_DB_5,4,2                   ## @EEP_DB_5
	.comm	_bank0,4,2                      ## @bank0
	.comm	_bank1,4,2                      ## @bank1
	.comm	_bank2,4,2                      ## @bank2
	.comm	_bank3,4,2                      ## @bank3
	.comm	_bank7,4,2                      ## @bank7
	.no_dead_strip	_ar5008_hw_set_rf_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5008_hw_set_rf_regs
_ar5008_hw_set_rf_regs:                 ; @ar5008_hw_set_rf_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_AR_SREV_9280_20_OR_LATER
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	mov	x23, x19
	ldr	w8, [x23, #16]!
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x20
	bl	_INI_RA
	ldr	x8, [x19]
	str	w0, [x8, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x19, #16]
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
	cmp	w22, #1
	b.le	LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_IS_CHAN_2GHZ
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x9, _EEP_OB_2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EEP_OB_2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _EEP_DB_2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EEP_DB_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	ldr	x0, [x19]
	mov	x1, x21
	mov	w2, #3
	mov	w3, #197
	mov	w4, #0
	bl	_ar5008_hw_phy_modify_rx_buffer
	ldr	x0, [x19]
	mov	x1, x22
	mov	w2, #3
	mov	w3, #194
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x9, _EEP_OB_5@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EEP_OB_5@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh9:
	adrp	x9, _EEP_DB_5@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EEP_DB_5@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	ldr	x0, [x19]
	mov	x1, x21
	mov	w2, #3
	mov	w3, #203
	mov	w4, #0
	bl	_ar5008_hw_phy_modify_rx_buffer
	ldr	x0, [x19]
	mov	x1, x22
	mov	w2, #3
	mov	w3, #200
LBB0_8:
	mov	w4, #0
	bl	_ar5008_hw_phy_modify_rx_buffer
LBB0_9:
	ldr	w21, [sp, #12]
Lloh12:
	adrp	x0, _bank0@GOTPAGE
Lloh13:
	ldr	x0, [x0, _bank0@GOTPAGEOFF]
	mov	w1, #1
	mov	x2, x21
	bl	_REG_WRITE_ARRAY
Lloh14:
	adrp	x0, _bank1@GOTPAGE
Lloh15:
	ldr	x0, [x0, _bank1@GOTPAGEOFF]
	mov	w1, #1
	mov	x2, x21
	bl	_REG_WRITE_ARRAY
Lloh16:
	adrp	x0, _bank2@GOTPAGE
Lloh17:
	ldr	x0, [x0, _bank2@GOTPAGEOFF]
	mov	w1, #1
	mov	x2, x21
	bl	_REG_WRITE_ARRAY
Lloh18:
	adrp	x0, _bank3@GOTPAGE
Lloh19:
	ldr	x0, [x0, _bank3@GOTPAGEOFF]
	mov	x1, x20
	mov	x2, x21
	bl	_REG_WRITE_ARRAY
	add	x1, sp, #12
	mov	x0, x19
	bl	_ar5008_write_bank6
	ldr	w2, [sp, #12]
Lloh20:
	adrp	x0, _bank7@GOTPAGE
Lloh21:
	ldr	x0, [x0, _bank7@GOTPAGEOFF]
	mov	w1, #1
	bl	_REG_WRITE_ARRAY
LBB0_10:
	mov	w0, #1
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EEP_OB_2,4,2                   ; @EEP_OB_2
	.comm	_EEP_DB_2,4,2                   ; @EEP_DB_2
	.comm	_EEP_OB_5,4,2                   ; @EEP_OB_5
	.comm	_EEP_DB_5,4,2                   ; @EEP_DB_5
	.comm	_bank0,4,2                      ; @bank0
	.comm	_bank1,4,2                      ; @bank1
	.comm	_bank2,4,2                      ; @bank2
	.comm	_bank3,4,2                      ; @bank3
	.comm	_bank7,4,2                      ; @bank7
	.no_dead_strip	_ar5008_hw_set_rf_regs
.subsections_via_symbols
