	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_set_channel_regs
_ar9003_hw_set_channel_regs:            ## @ar9003_hw_set_channel_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_AR_PHY_GEN_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_REG_READ
	movl	%eax, %ebx
	movq	_AR_PHY_GC_ENABLE_DAC_FIFO@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_AR_PHY_GC_HT_EN@GOTPCREL(%rip), %rax
	movq	_AR_PHY_GC_SHORT_GI_40@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	%r15, %rdi
	callq	_AR_SREV_9561
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AR_PHY_GC_SINGLE_HT_LTF1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	orl	%ecx, %ebx
	movq	%r14, %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_AR_PHY_GC_DYN2040_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_IS_CHAN_HT40PLUS
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_AR_PHY_GC_DYN2040_PRI_CH@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_5:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	orl	%eax, %ebx
	movq	_AR_PHY_GC_GF_DETECT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ath9k_hw_set11nmac2040
	movq	_AR_GTXTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_GTXTO_TIMEOUT_LIMIT_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$25, %edx
	shll	%cl, %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	_AR_CST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_CST_TIMEOUT_LIMIT_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$15, %edx
	shll	%cl, %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_GEN_CTRL,4,2            ## @AR_PHY_GEN_CTRL
	.comm	_AR_PHY_GC_ENABLE_DAC_FIFO,4,2  ## @AR_PHY_GC_ENABLE_DAC_FIFO
	.comm	_AR_PHY_GC_HT_EN,4,2            ## @AR_PHY_GC_HT_EN
	.comm	_AR_PHY_GC_SHORT_GI_40,4,2      ## @AR_PHY_GC_SHORT_GI_40
	.comm	_AR_PHY_GC_SINGLE_HT_LTF1,4,2   ## @AR_PHY_GC_SINGLE_HT_LTF1
	.comm	_AR_PHY_GC_DYN2040_EN,4,2       ## @AR_PHY_GC_DYN2040_EN
	.comm	_AR_PHY_GC_DYN2040_PRI_CH,4,2   ## @AR_PHY_GC_DYN2040_PRI_CH
	.comm	_AR_PHY_GC_GF_DETECT_EN,4,2     ## @AR_PHY_GC_GF_DETECT_EN
	.comm	_AR_GTXTO,4,2                   ## @AR_GTXTO
	.comm	_AR_GTXTO_TIMEOUT_LIMIT_S,4,2   ## @AR_GTXTO_TIMEOUT_LIMIT_S
	.comm	_AR_CST,4,2                     ## @AR_CST
	.comm	_AR_CST_TIMEOUT_LIMIT_S,4,2     ## @AR_CST_TIMEOUT_LIMIT_S
	.no_dead_strip	_ar9003_hw_set_channel_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_set_channel_regs
_ar9003_hw_set_channel_regs:            ; @ar9003_hw_set_channel_regs
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _AR_PHY_GEN_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_PHY_GEN_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_REG_READ
Lloh2:
	adrp	x8, _AR_PHY_GC_ENABLE_DAC_FIFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_PHY_GC_ENABLE_DAC_FIFO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w22, w8, w0
Lloh5:
	adrp	x8, _AR_PHY_GC_HT_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_GC_HT_EN@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
Lloh8:
	adrp	x8, _AR_PHY_GC_SHORT_GI_40@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_PHY_GC_SHORT_GI_40@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_AR_SREV_9561
Lloh11:
	adrp	x8, _AR_PHY_GC_SINGLE_HT_LTF1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_PHY_GC_SINGLE_HT_LTF1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w9, w22, w23
	orr	w9, w9, w24
	orr	w22, w9, w8
	mov	x0, x20
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _AR_PHY_GC_DYN2040_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_PHY_GC_DYN2040_EN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w22, w8, w22
	mov	x0, x20
	bl	_IS_CHAN_HT40PLUS
	cbz	x0, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _AR_PHY_GC_DYN2040_PRI_CH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR_PHY_GC_DYN2040_PRI_CH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_READ
	orr	w8, w0, w22
Lloh20:
	adrp	x9, _AR_PHY_GC_GF_DETECT_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AR_PHY_GC_GF_DETECT_EN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_set11nmac2040
Lloh23:
	adrp	x8, _AR_GTXTO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AR_GTXTO@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _AR_GTXTO_TIMEOUT_LIMIT_S@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AR_GTXTO_TIMEOUT_LIMIT_S@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mov	w9, #25
	lsl	w2, w9, w8
	mov	x0, x19
	bl	_REG_WRITE
Lloh29:
	adrp	x8, _AR_CST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR_CST@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _AR_CST_TIMEOUT_LIMIT_S@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AR_CST_TIMEOUT_LIMIT_S@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	mov	w9, #15
	lsl	w2, w9, w8
	mov	x0, x19
	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
	b	_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_GEN_CTRL,4,2            ; @AR_PHY_GEN_CTRL
	.comm	_AR_PHY_GC_ENABLE_DAC_FIFO,4,2  ; @AR_PHY_GC_ENABLE_DAC_FIFO
	.comm	_AR_PHY_GC_HT_EN,4,2            ; @AR_PHY_GC_HT_EN
	.comm	_AR_PHY_GC_SHORT_GI_40,4,2      ; @AR_PHY_GC_SHORT_GI_40
	.comm	_AR_PHY_GC_SINGLE_HT_LTF1,4,2   ; @AR_PHY_GC_SINGLE_HT_LTF1
	.comm	_AR_PHY_GC_DYN2040_EN,4,2       ; @AR_PHY_GC_DYN2040_EN
	.comm	_AR_PHY_GC_DYN2040_PRI_CH,4,2   ; @AR_PHY_GC_DYN2040_PRI_CH
	.comm	_AR_PHY_GC_GF_DETECT_EN,4,2     ; @AR_PHY_GC_GF_DETECT_EN
	.comm	_AR_GTXTO,4,2                   ; @AR_GTXTO
	.comm	_AR_GTXTO_TIMEOUT_LIMIT_S,4,2   ; @AR_GTXTO_TIMEOUT_LIMIT_S
	.comm	_AR_CST,4,2                     ; @AR_CST
	.comm	_AR_CST_TIMEOUT_LIMIT_S,4,2     ; @AR_CST_TIMEOUT_LIMIT_S
	.no_dead_strip	_ar9003_hw_set_channel_regs
.subsections_via_symbols
