	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_paprd_send_frame
_ath_paprd_send_frame:                  ## @ath_paprd_send_frame
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r15
	movq	24(%rbx), %rdi
	callq	_ath9k_hw_common
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	_IEEE80211_AC_BE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movq	8(%r15), %rax
	movl	%r14d, %r15d
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, (%rax)
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movl	$-1, 12(%rax)
	movq	%rbx, %rdi
	callq	_init_completion
	movl	%r14d, %edi
	callq	_BIT
	movl	%eax, -88(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	leaq	-88(%rbp), %rdx
	callq	_ath_tx_start
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_5
LBB0_2:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_ATH_PAPRD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
LBB0_4:
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	setne	%r12b
LBB0_5:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_AC_BE,8,3            ## @IEEE80211_AC_BE
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PAPRD TX failed\n"

	.comm	_ATH_PAPRD_TIMEOUT,4,2          ## @ATH_PAPRD_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Timeout waiting for paprd training on TX chain %d\n"

	.no_dead_strip	_ath_paprd_send_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ath_paprd_send_frame
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ath_paprd_send_frame:                  ; @ath_paprd_send_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #32]
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x24, x0
	ldr	x0, [x22, #24]
	bl	_ath9k_hw_common
	mov	x20, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x22, #16]
Lloh0:
	adrp	x9, _IEEE80211_AC_BE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_AC_BE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #40]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh3:
	adrp	x8, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x24, #16]
	orr	w8, w9, w8
	ldr	x9, [x22, #8]
	ldr	w9, [x9]
	stp	w8, w9, [x24, #16]
	ldr	x8, [x24, #8]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
Lloh8:
	adrp	x9, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mov	w10, #-1
	stp	w9, w10, [x8, #8]
	mov	x0, x22
	bl	_init_completion
	mov	x0, x19
	bl	_BIT
	str	w0, [sp, #16]
	add	x2, sp, #16
	mov	x0, x23
	mov	x1, x21
	bl	_ath_tx_start
	cbz	x0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _CALIBRATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CALIBRATE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	mov	x0, x21
	bl	_dev_kfree_skb_any
	mov	w0, #0
	b	LBB0_5
LBB0_2:
Lloh16:
	adrp	x8, _ATH_PAPRD_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATH_PAPRD_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x22
	bl	_wait_for_completion_timeout
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _CALIBRATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CALIBRATE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	str	x19, [sp]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
LBB0_4:
	cmp	x21, #0
	cset	w0, ne
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_AC_BE,8,3            ; @IEEE80211_AC_BE
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PAPRD TX failed\n"

	.comm	_ATH_PAPRD_TIMEOUT,4,2          ; @ATH_PAPRD_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Timeout waiting for paprd training on TX chain %d\n"

	.no_dead_strip	_ath_paprd_send_frame
.subsections_via_symbols
