	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_paprd_set_txpower
_ar9003_paprd_set_txpower:              ## @ar9003_paprd_set_txpower
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ar9003_is_paprd_enabled
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movq	%r15, %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_ALL_TARGET_HT20_7@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_ALL_TARGET_HT40_7@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_IS_CHAN_2GHZ
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rbx, %rdi
	callq	_AR_SREV_9330
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	%rbx, %rdi
	callq	_AR_SREV_9340
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	%rbx, %rdi
	callq	_AR_SREV_9462
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_AR_SREV_9565
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ALL_TARGET_HT40_0_8_16@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_ALL_TARGET_HT20_0_8_16@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r12d
LBB0_13:
	movslq	%r12d, %rax
	movl	(%r14,%rax,4), %eax
	movl	%eax, (%rbx)
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALL_TARGET_HT40_7,4,2          ## @ALL_TARGET_HT40_7
	.comm	_ALL_TARGET_HT20_7,4,2          ## @ALL_TARGET_HT20_7
	.comm	_ALL_TARGET_HT40_0_8_16,4,2     ## @ALL_TARGET_HT40_0_8_16
	.comm	_ALL_TARGET_HT20_0_8_16,4,2     ## @ALL_TARGET_HT20_0_8_16
	.no_dead_strip	_ar9003_paprd_set_txpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_paprd_set_txpower
_ar9003_paprd_set_txpower:              ; @ar9003_paprd_set_txpower
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_ar9003_is_paprd_enabled
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x21
	bl	_IS_CHAN_HT40
Lloh0:
	adrp	x8, _ALL_TARGET_HT20_7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALL_TARGET_HT20_7@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ALL_TARGET_HT40_7@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ALL_TARGET_HT40_7@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
	mov	x0, x21
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_10
; %bb.2:
	mov	x0, x20
	bl	_AR_SREV_9330
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_AR_SREV_9340
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_AR_SREV_9462
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_AR_SREV_9565
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _ALL_TARGET_HT40_0_8_16@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ALL_TARGET_HT40_0_8_16@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _ALL_TARGET_HT20_0_8_16@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALL_TARGET_HT20_0_8_16@GOTPAGEOFF]
LBB0_9:
	ldr	w22, [x8]
LBB0_10:
	ldr	w8, [x19, w22, sxtw #2]
	str	w8, [x20]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ALL_TARGET_HT40_7,4,2          ; @ALL_TARGET_HT40_7
	.comm	_ALL_TARGET_HT20_7,4,2          ; @ALL_TARGET_HT20_7
	.comm	_ALL_TARGET_HT40_0_8_16,4,2     ; @ALL_TARGET_HT40_0_8_16
	.comm	_ALL_TARGET_HT20_0_8_16,4,2     ; @ALL_TARGET_HT20_0_8_16
	.no_dead_strip	_ar9003_paprd_set_txpower
.subsections_via_symbols
