	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_selfgen_tpc_txpower
_ar9003_hw_selfgen_tpc_txpower:         ## @ar9003_hw_selfgen_tpc_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, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_IS_CHAN_2GHZ
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_ALL_TARGET_LEGACY_6_24@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_ALL_TARGET_LEGACY_1L_5L@GOTPCREL(%rip), %rbx
LBB0_3:
	movq	(%rbx), %rax
	movl	(%r15,%rax,4), %edi
	movq	_AR_TPC_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	(%r15,%rax,4), %edi
	movq	_AR_TPC_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orl	%eax, %r12d
	movq	_AR_TPC_CHIRP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$63, %edi
	callq	_SM
	movl	%eax, %ebx
	movq	_AR_TPC_RPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$63, %edi
	callq	_SM
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_AR_TPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALL_TARGET_LEGACY_1L_5L,8,3    ## @ALL_TARGET_LEGACY_1L_5L
	.comm	_AR_TPC_ACK,4,2                 ## @AR_TPC_ACK
	.comm	_AR_TPC_CTS,4,2                 ## @AR_TPC_CTS
	.comm	_AR_TPC_CHIRP,4,2               ## @AR_TPC_CHIRP
	.comm	_AR_TPC_RPT,4,2                 ## @AR_TPC_RPT
	.comm	_ALL_TARGET_LEGACY_6_24,8,3     ## @ALL_TARGET_LEGACY_6_24
	.comm	_AR_TPC,4,2                     ## @AR_TPC
	.no_dead_strip	_ar9003_hw_selfgen_tpc_txpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_selfgen_tpc_txpower
_ar9003_hw_selfgen_tpc_txpower:         ; @ar9003_hw_selfgen_tpc_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	x20, x0
	mov	x0, x1
	bl	_IS_CHAN_2GHZ
Lloh0:
	adrp	x8, _ALL_TARGET_LEGACY_1L_5L@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALL_TARGET_LEGACY_1L_5L@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ALL_TARGET_LEGACY_6_24@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ALL_TARGET_LEGACY_6_24@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x9, x8, eq
	ldr	x8, [x22]
	ldr	w0, [x19, x8, lsl #2]
Lloh4:
	adrp	x8, _AR_TPC_ACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR_TPC_ACK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_SM
	mov	x21, x0
	ldr	x8, [x22]
	ldr	w0, [x19, x8, lsl #2]
Lloh7:
	adrp	x8, _AR_TPC_CTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR_TPC_CTS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_SM
	orr	w19, w0, w21
Lloh10:
	adrp	x8, _AR_TPC_CHIRP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_TPC_CHIRP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #63
	bl	_SM
	orr	w19, w19, w0
Lloh13:
	adrp	x8, _AR_TPC_RPT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_TPC_RPT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w0, #63
	bl	_SM
	orr	w2, w19, w0
Lloh16:
	adrp	x8, _AR_TPC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_TPC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	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
	b	_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ALL_TARGET_LEGACY_1L_5L,8,3    ; @ALL_TARGET_LEGACY_1L_5L
	.comm	_AR_TPC_ACK,4,2                 ; @AR_TPC_ACK
	.comm	_AR_TPC_CTS,4,2                 ; @AR_TPC_CTS
	.comm	_AR_TPC_CHIRP,4,2               ; @AR_TPC_CHIRP
	.comm	_AR_TPC_RPT,4,2                 ; @AR_TPC_RPT
	.comm	_ALL_TARGET_LEGACY_6_24,8,3     ; @ALL_TARGET_LEGACY_6_24
	.comm	_AR_TPC,4,2                     ; @AR_TPC
	.no_dead_strip	_ar9003_hw_selfgen_tpc_txpower
.subsections_via_symbols
