	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_mci_set_txpower          ## -- Begin function ath9k_mci_set_txpower
	.p2align	4, 0x90
_ath9k_mci_set_txpower:                 ## @ath9k_mci_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	%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
	movq	8(%rdi), %rbx
	movq	_ATH_MCI_CONFIG_CONCUR_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	8(%rbx), %r13d
	movq	(%rbx), %rdi
	callq	_IS_CHAN_2GHZ
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.4:
	movq	(%r14), %r12
	movq	(%rbx), %rdi
	callq	_IS_CHAN_HT40PLUS
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%rdi), %eax
	movl	4(%r12), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_7
## %bb.6:
	addl	$20, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_11
LBB0_7:
	callq	_IS_CHAN_HT40MINUS
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	4(%r12), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_10
## %bb.9:
	addl	$-20, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_11
LBB0_10:
	movl	%r15d, 8(%rbx)
	cmpl	%r15d, %r13d
	je	LBB0_11
## %bb.12:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_hw_set_txpowerlimit      ## TAILCALL
LBB0_1:
	movl	$0, 8(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_MCI_CONFIG_CONCUR_TX,4,2   ## @ATH_MCI_CONFIG_CONCUR_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_mci_set_txpower          ; -- Begin function ath9k_mci_set_txpower
	.p2align	2
_ath9k_mci_set_txpower:                 ; @ath9k_mci_set_txpower
	.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
	ldr	x19, [x0, #8]
	ldr	w8, [x19, #12]
Lloh0:
	adrp	x9, _ATH_MCI_CONFIG_CONCUR_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_MCI_CONFIG_CONCUR_TX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w23, [x19, #8]
	ldr	x0, [x19]
	bl	_IS_CHAN_2GHZ
	cbz	w0, LBB0_11
; %bb.2:
	cbz	w22, LBB0_8
; %bb.3:
	ldr	x21, [x20]
	ldr	x0, [x19]
	bl	_IS_CHAN_HT40PLUS
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x0]
	ldr	w9, [x21, #4]
	add	w10, w9, #20
	cmp	w8, w9
	ccmp	w8, w10, #0, gt
	b.le	LBB0_11
LBB0_5:
	bl	_IS_CHAN_HT40MINUS
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	sub	w10, w9, #20
	cmp	w8, w9
	ccmp	w8, w10, #8, lt
	b.ge	LBB0_11
LBB0_7:
	mov	w21, #0
LBB0_8:
	str	w21, [x19, #8]
	cmp	w23, w21
	b.eq	LBB0_11
; %bb.9:
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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	_ath9k_hw_set_txpowerlimit
LBB0_10:
	str	wzr, [x19, #8]
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_MCI_CONFIG_CONCUR_TX,4,2   ; @ATH_MCI_CONFIG_CONCUR_TX
.subsections_via_symbols
