	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_tx99_init
_ath9k_tx99_init:                       ## @ath9k_tx99_init
	.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	%rdi, %r13
	movq	24(%rdi), %r15
	movq	32(%rdi), %r12
	movq	%r15, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, %rdi
	callq	_ath9k_build_tx99_skb
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	16(%r13), %rax
	movq	_IEEE80211_AC_VO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -48(%rbp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ath_reset
	movq	%r13, %rdi
	callq	_ath9k_ps_wakeup
	movq	%r15, %rdi
	callq	_ath9k_hw_disable_interrupts
	movq	%r13, %rdi
	callq	_ath_drain_all_txq
	movq	%r13, %rdi
	callq	_ath_stoprecv
	movl	$1, (%r13)
	movq	%r12, %rdi
	callq	_ieee80211_stop_queues
	movl	4(%r13), %esi
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	1(%rax), %ecx
	cmpl	%ecx, %esi
	jne	LBB0_7
## %bb.6:
	movl	%eax, 4(%r13)
	movl	%eax, %esi
LBB0_7:
	movq	%r15, %rdi
	callq	_ath9k_hw_tx99_set_txpower
	movl	8(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_ath9k_tx99_send
	movl	%eax, %ebx
	movq	_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movl	4(%r13), %ecx
	movl	%ecx, %r8d
	shrl	$31, %r8d
	addl	%ecx, %r8d
	sarl	%r8d
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_INVALID,4,2             ## @ATH_OP_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver is in invalid state unable to use TX99"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_AC_VO,8,3            ## @IEEE80211_AC_VO
	.comm	_MAX_RATE_POWER,4,2             ## @MAX_RATE_POWER
	.comm	_XMIT,4,2                       ## @XMIT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to xmit TX99 skb\n"

L_.str.2:                               ## @.str.2
	.asciz	"TX99 xmit started using %d ( %ddBm)\n"

	.no_dead_strip	_ath9k_tx99_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_tx99_init
_ath9k_tx99_init:                       ; @ath9k_tx99_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldp	x21, x22, [x0, #24]
	mov	x0, x21
	bl	_ath9k_hw_common
	mov	x19, x0
Lloh0:
	adrp	x8, _ATH_OP_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_OP_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_3:
	mov	x0, x20
	bl	_ath9k_build_tx99_skb
	str	w0, [x20, #8]
	cbz	w0, LBB0_8
; %bb.4:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x20, #16]
Lloh7:
	adrp	x9, _IEEE80211_AC_VO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_AC_VO@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #24]
	mov	x0, x20
	mov	x1, #0
	bl	_ath_reset
	mov	x0, x20
	bl	_ath9k_ps_wakeup
	mov	x0, x21
	bl	_ath9k_hw_disable_interrupts
	mov	x0, x20
	bl	_ath_drain_all_txq
	mov	x0, x20
	bl	_ath_stoprecv
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x22
	bl	_ieee80211_stop_queues
	ldr	w1, [x20, #4]
Lloh10:
	adrp	x8, _MAX_RATE_POWER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w9, w8, #1
	cmp	w1, w9
	b.ne	LBB0_6
; %bb.5:
	str	w8, [x20, #4]
	mov	x1, x8
LBB0_6:
	mov	x0, x21
	bl	_ath9k_hw_tx99_set_txpower
	ldr	w1, [x20, #8]
	add	x2, sp, #24
	mov	x0, x20
	bl	_ath9k_tx99_send
	mov	x21, x0
Lloh13:
	adrp	x8, _XMIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XMIT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	cbz	w0, LBB0_9
; %bb.7:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	stp	x8, x9, [sp]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_ath_dbg
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_INVALID,4,2             ; @ATH_OP_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver is in invalid state unable to use TX99"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_AC_VO,8,3            ; @IEEE80211_AC_VO
	.comm	_MAX_RATE_POWER,4,2             ; @MAX_RATE_POWER
	.comm	_XMIT,4,2                       ; @XMIT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to xmit TX99 skb\n"

l_.str.2:                               ; @.str.2
	.asciz	"TX99 xmit started using %d ( %ddBm)\n"

	.no_dead_strip	_ath9k_tx99_init
.subsections_via_symbols
