	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_proc_4word_tx_status
_ath5k_hw_proc_4word_tx_status:         ## @ath5k_hw_proc_4word_tx_status
	.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	%rsi, %rbx
	movl	4(%rsi), %edi
	callq	_READ_ONCE
	movl	%eax, %r12d
	movq	_AR5K_DESC_TX_STATUS1_DONE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	%r12d, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movl	(%rbx), %edi
	callq	_READ_ONCE
	movl	%eax, %r14d
	movq	_AR5K_DESC_TX_STATUS0_SEND_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_AR5K_REG_MS
	movq	%rax, 48(%r15)
	movq	_AR5K_DESC_TX_STATUS0_SHORT_RETRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_AR5K_REG_MS
	movq	%rax, 40(%r15)
	movq	_AR5K_DESC_TX_STATUS0_LONG_RETRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_AR5K_REG_MS
	movq	%rax, 32(%r15)
	movq	_AR5K_DESC_TX_STATUS1_SEQ_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_AR5K_REG_MS
	movq	%rax, 24(%r15)
	movq	_AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_AR5K_REG_MS
	movq	%rax, 16(%r15)
	movq	_AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	cmpl	$1, %eax
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, (%r15)
	movl	$0, 4(%r15)
	movq	_AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_AR5K_REG_MS
	movq	%rax, 8(%r15)
	movq	_AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r14d, (%rcx)
	jne	LBB0_9
## %bb.3:
	movq	_AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_AR5K_TXERR_XRETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r15)
LBB0_5:
	movq	_AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_AR5K_TXERR_FIFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r15)
LBB0_7:
	movq	_AR5K_DESC_TX_STATUS0_FILTERED@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_AR5K_TXERR_FILT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r15)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_DESC_TX_STATUS1_DONE,4,2  ## @AR5K_DESC_TX_STATUS1_DONE
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_AR5K_DESC_TX_STATUS0_SEND_TIMESTAMP,4,2 ## @AR5K_DESC_TX_STATUS0_SEND_TIMESTAMP
	.comm	_AR5K_DESC_TX_STATUS0_SHORT_RETRY_COUNT,4,2 ## @AR5K_DESC_TX_STATUS0_SHORT_RETRY_COUNT
	.comm	_AR5K_DESC_TX_STATUS0_LONG_RETRY_COUNT,4,2 ## @AR5K_DESC_TX_STATUS0_LONG_RETRY_COUNT
	.comm	_AR5K_DESC_TX_STATUS1_SEQ_NUM,4,2 ## @AR5K_DESC_TX_STATUS1_SEQ_NUM
	.comm	_AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH,4,2 ## @AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH
	.comm	_AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212,4,2 ## @AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212
	.comm	_AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212,4,2 ## @AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212
	.comm	_AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK,4,2 ## @AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK
	.comm	_AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES,4,2 ## @AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES
	.comm	_AR5K_TXERR_XRETRY,4,2          ## @AR5K_TXERR_XRETRY
	.comm	_AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN,4,2 ## @AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN
	.comm	_AR5K_TXERR_FIFO,4,2            ## @AR5K_TXERR_FIFO
	.comm	_AR5K_DESC_TX_STATUS0_FILTERED,4,2 ## @AR5K_DESC_TX_STATUS0_FILTERED
	.comm	_AR5K_TXERR_FILT,4,2            ## @AR5K_TXERR_FILT
	.no_dead_strip	_ath5k_hw_proc_4word_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_proc_4word_tx_status
_ath5k_hw_proc_4word_tx_status:         ; @ath5k_hw_proc_4word_tx_status
	.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, x1
	ldr	w0, [x1, #4]
	bl	_READ_ONCE
	mov	x21, x0
Lloh0:
	adrp	x8, _AR5K_DESC_TX_STATUS1_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS1_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	ldr	w0, [x20]
	bl	_READ_ONCE
	mov	x20, x0
Lloh6:
	adrp	x8, _AR5K_DESC_TX_STATUS0_SEND_TIMESTAMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS0_SEND_TIMESTAMP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_AR5K_REG_MS
	str	x0, [x19, #48]
Lloh9:
	adrp	x8, _AR5K_DESC_TX_STATUS0_SHORT_RETRY_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS0_SHORT_RETRY_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_AR5K_REG_MS
	str	x0, [x19, #40]
Lloh12:
	adrp	x8, _AR5K_DESC_TX_STATUS0_LONG_RETRY_COUNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS0_LONG_RETRY_COUNT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_AR5K_REG_MS
	str	x0, [x19, #32]
Lloh15:
	adrp	x8, _AR5K_DESC_TX_STATUS1_SEQ_NUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS1_SEQ_NUM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_AR5K_REG_MS
	str	x0, [x19, #24]
Lloh18:
	adrp	x8, _AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_AR5K_REG_MS
	str	x0, [x19, #16]
Lloh21:
	adrp	x8, _AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w21
	mov	w8, #1
	cinc	w8, w8, ne
	stp	w8, wzr, [x19]
Lloh24:
	adrp	x8, _AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_AR5K_REG_MS
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
Lloh27:
	adrp	x8, _AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_10
; %bb.3:
Lloh30:
	adrp	x8, _AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh33:
	adrp	x8, _AR5K_TXERR_XRETRY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR5K_TXERR_XRETRY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
Lloh36:
	adrp	x8, _AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh39:
	adrp	x8, _AR5K_TXERR_FIFO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR5K_TXERR_FIFO@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_7:
Lloh42:
	adrp	x8, _AR5K_DESC_TX_STATUS0_FILTERED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR5K_DESC_TX_STATUS0_FILTERED@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
Lloh45:
	adrp	x8, _AR5K_TXERR_FILT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AR5K_TXERR_FILT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_DESC_TX_STATUS1_DONE,4,2  ; @AR5K_DESC_TX_STATUS1_DONE
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_AR5K_DESC_TX_STATUS0_SEND_TIMESTAMP,4,2 ; @AR5K_DESC_TX_STATUS0_SEND_TIMESTAMP
	.comm	_AR5K_DESC_TX_STATUS0_SHORT_RETRY_COUNT,4,2 ; @AR5K_DESC_TX_STATUS0_SHORT_RETRY_COUNT
	.comm	_AR5K_DESC_TX_STATUS0_LONG_RETRY_COUNT,4,2 ; @AR5K_DESC_TX_STATUS0_LONG_RETRY_COUNT
	.comm	_AR5K_DESC_TX_STATUS1_SEQ_NUM,4,2 ; @AR5K_DESC_TX_STATUS1_SEQ_NUM
	.comm	_AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH,4,2 ; @AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH
	.comm	_AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212,4,2 ; @AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212
	.comm	_AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212,4,2 ; @AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212
	.comm	_AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK,4,2 ; @AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK
	.comm	_AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES,4,2 ; @AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES
	.comm	_AR5K_TXERR_XRETRY,4,2          ; @AR5K_TXERR_XRETRY
	.comm	_AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN,4,2 ; @AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN
	.comm	_AR5K_TXERR_FIFO,4,2            ; @AR5K_TXERR_FIFO
	.comm	_AR5K_DESC_TX_STATUS0_FILTERED,4,2 ; @AR5K_DESC_TX_STATUS0_FILTERED
	.comm	_AR5K_TXERR_FILT,4,2            ; @AR5K_TXERR_FILT
	.no_dead_strip	_ath5k_hw_proc_4word_tx_status
.subsections_via_symbols
