	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_paprd_enable            ## -- Begin function ar9003_paprd_enable
	.p2align	4, 0x90
_ar9003_paprd_enable:                   ## @ar9003_paprd_enable
	.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	%esi, %r12d
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_IS_CHAN_5GHZ
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	(%r15), %r14
	movq	_UPPER_5G_SUB_BAND_START@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_2
## %bb.6:
	movq	_MID_5G_SUB_BAND_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	cmpq	%rbx, %r14
	jge	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	$28, %edi
	jmp	LBB0_3
LBB0_9:
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_2:
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	$30, %edi
	jmp	LBB0_3
LBB0_7:
	movl	%eax, %ebx
	movl	$29, %edi
LBB0_3:
	callq	_BIT
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.4:
	andl	%ebx, %eax
	jne	LBB0_11
LBB0_5:
	movl	$1, (%r13)
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ath9k_hw_apply_txpower
	movl	$1, %r14d
LBB0_11:
	movq	_AR_PHY_PAPRD_CTRL0_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	callq	_REG_RMW_FIELD
	movl	4(%r13), %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_13
## %bb.12:
	movq	_AR_PHY_PAPRD_CTRL0_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	callq	_REG_RMW_FIELD
LBB0_13:
	movl	4(%r13), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_14
## %bb.15:
	movq	_AR_PHY_PAPRD_CTRL0_B2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW_FIELD                  ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UPPER_5G_SUB_BAND_START,8,3    ## @UPPER_5G_SUB_BAND_START
	.comm	_MID_5G_SUB_BAND_START,8,3      ## @MID_5G_SUB_BAND_START
	.comm	_AR_PHY_PAPRD_CTRL0_B0,4,2      ## @AR_PHY_PAPRD_CTRL0_B0
	.comm	_AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE,4,2 ## @AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE
	.comm	_AR_PHY_PAPRD_CTRL0_B1,4,2      ## @AR_PHY_PAPRD_CTRL0_B1
	.comm	_AR_PHY_PAPRD_CTRL0_B2,4,2      ## @AR_PHY_PAPRD_CTRL0_B2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_paprd_enable            ; -- Begin function ar9003_paprd_enable
	.p2align	2
_ar9003_paprd_enable:                   ; @ar9003_paprd_enable
	.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	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	mov	x0, x21
	bl	_IS_CHAN_5GHZ
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x20, [x21]
Lloh0:
	adrp	x8, _UPPER_5G_SUB_BAND_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UPPER_5G_SUB_BAND_START@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _MID_5G_SUB_BAND_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MID_5G_SUB_BAND_START@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	ldr	w0, [x19, #8]
	bl	_le32_to_cpu
	mov	x23, x0
	cmp	x20, x24
	b.ge	LBB0_7
; %bb.3:
	mov	w0, #28
	b	LBB0_8
LBB0_4:
	cbnz	w22, LBB0_10
; %bb.5:
	mov	w20, #0
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_le32_to_cpu
	mov	x23, x0
	mov	w0, #30
	b	LBB0_8
LBB0_7:
	mov	w0, #29
LBB0_8:
	bl	_BIT
	mov	w20, #0
	cbz	w22, LBB0_11
; %bb.9:
	and	w8, w0, w23
	cbnz	w8, LBB0_11
LBB0_10:
	mov	w20, #1
	str	w20, [x19]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_ath9k_hw_apply_txpower
LBB0_11:
Lloh6:
	adrp	x8, _AR_PHY_PAPRD_CTRL0_B0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL0_B0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x21, _AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
	ldr	w22, [x19, #4]
	mov	w0, #1
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_13
; %bb.12:
Lloh11:
	adrp	x8, _AR_PHY_PAPRD_CTRL0_B1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL0_B1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
LBB0_13:
	ldr	w22, [x19, #4]
	mov	w0, #2
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_15
; %bb.14:
Lloh14:
	adrp	x8, _AR_PHY_PAPRD_CTRL0_B2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL0_B2@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	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_RMW_FIELD
LBB0_15:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_UPPER_5G_SUB_BAND_START,8,3    ; @UPPER_5G_SUB_BAND_START
	.comm	_MID_5G_SUB_BAND_START,8,3      ; @MID_5G_SUB_BAND_START
	.comm	_AR_PHY_PAPRD_CTRL0_B0,4,2      ; @AR_PHY_PAPRD_CTRL0_B0
	.comm	_AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE,4,2 ; @AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE
	.comm	_AR_PHY_PAPRD_CTRL0_B1,4,2      ; @AR_PHY_PAPRD_CTRL0_B1
	.comm	_AR_PHY_PAPRD_CTRL0_B2,4,2      ; @AR_PHY_PAPRD_CTRL0_B2
.subsections_via_symbols
