	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5416_decode_txstatus
_ar5416_decode_txstatus:                ## @ar5416_decode_txstatus
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %rsi
	leaq	-32(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-32(%rbp), %rax
	movl	36(%rax), %edi
	movq	_AR_TxDone@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_MF
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_be32toh
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_be64toh
	movq	%rax, %rbx
	movq	-32(%rbp), %rax
	movl	36(%rax), %edi
	movl	(%r15), %esi
	callq	_MF
	movq	-32(%rbp), %rcx
	movl	8(%rcx), %r8d
	movl	%r8d, %r9d
	subl	_ar5416_decode_txstatus.tx_tsf(%rip), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_printf
	movq	-32(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, _ar5416_decode_txstatus.tx_tsf(%rip)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ar5416_decode_txstatus.tx_tsf,4,2 ## @ar5416_decode_txstatus.tx_tsf
	.comm	_AR_TxDone,4,2                  ## @AR_TxDone
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x (delta %d)\n"

	.comm	_AR_DataFailCnt,4,2             ## @AR_DataFailCnt
	.comm	_AR_DescCfgErr,4,2              ## @AR_DescCfgErr
	.comm	_AR_ExcessiveRetries,4,2        ## @AR_ExcessiveRetries
	.comm	_AR_FIFOUnderrun,4,2            ## @AR_FIFOUnderrun
	.comm	_AR_Filtered,4,2                ## @AR_Filtered
	.comm	_AR_FinalTxIdx,4,2              ## @AR_FinalTxIdx
	.comm	_AR_FrmXmitOK,4,2               ## @AR_FrmXmitOK
	.comm	_AR_PowerMgmt,4,2               ## @AR_PowerMgmt
	.comm	_AR_RTSFailCnt,4,2              ## @AR_RTSFailCnt
	.comm	_AR_SeqNum,4,2                  ## @AR_SeqNum
	.comm	_AR_TxBaStatus,4,2              ## @AR_TxBaStatus
	.comm	_AR_TxDataUnderrun,4,2          ## @AR_TxDataUnderrun
	.comm	_AR_TxDelimUnderrun,4,2         ## @AR_TxDelimUnderrun
	.comm	_AR_TxOpExceeded,4,2            ## @AR_TxOpExceeded
	.comm	_AR_TxRSSIAnt00,4,2             ## @AR_TxRSSIAnt00
	.comm	_AR_TxRSSIAnt01,4,2             ## @AR_TxRSSIAnt01
	.comm	_AR_TxRSSIAnt02,4,2             ## @AR_TxRSSIAnt02
	.comm	_AR_TxRSSIAnt10,4,2             ## @AR_TxRSSIAnt10
	.comm	_AR_TxRSSIAnt11,4,2             ## @AR_TxRSSIAnt11
	.comm	_AR_TxRSSIAnt12,4,2             ## @AR_TxRSSIAnt12
	.comm	_AR_TxRSSICombined,4,2          ## @AR_TxRSSICombined
	.comm	_AR_TxTid,4,2                   ## @AR_TxTid
	.comm	_AR_TxTimerExpired,4,2          ## @AR_TxTimerExpired
	.comm	_AR_VirtRetryCnt,4,2            ## @AR_VirtRetryCnt
	.no_dead_strip	_ar5416_decode_txstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5416_decode_txstatus
_ar5416_decode_txstatus:                ; @ar5416_decode_txstatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	add	x1, x0, #8
	add	x0, sp, #40
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [sp, #40]
	ldr	w0, [x8, #36]
Lloh0:
	adrp	x21, _AR_TxDone@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_TxDone@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MF
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_be32toh
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_be64toh
	mov	x19, x0
	ldr	x8, [sp, #40]
	ldr	w0, [x8, #36]
	ldr	w1, [x21]
	bl	_MF
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #40]
	ldr	w8, [x8, #8]
	adrp	x21, _ar5416_decode_txstatus.tx_tsf@PAGE
	ldr	w9, [x21, _ar5416_decode_txstatus.tx_tsf@PAGEOFF]
	sub	w9, w8, w9
	stp	x0, x8, [sp, #16]
	stp	x20, x19, [sp]
	str	x9, [sp, #32]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #40]
	ldr	w8, [x8, #8]
	str	w8, [x21, _ar5416_decode_txstatus.tx_tsf@PAGEOFF]
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ar5416_decode_txstatus.tx_tsf,4,2 ; @ar5416_decode_txstatus.tx_tsf
	.comm	_AR_TxDone,4,2                  ; @AR_TxDone
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x (delta %d)\n"

	.comm	_AR_DataFailCnt,4,2             ; @AR_DataFailCnt
	.comm	_AR_DescCfgErr,4,2              ; @AR_DescCfgErr
	.comm	_AR_ExcessiveRetries,4,2        ; @AR_ExcessiveRetries
	.comm	_AR_FIFOUnderrun,4,2            ; @AR_FIFOUnderrun
	.comm	_AR_Filtered,4,2                ; @AR_Filtered
	.comm	_AR_FinalTxIdx,4,2              ; @AR_FinalTxIdx
	.comm	_AR_FrmXmitOK,4,2               ; @AR_FrmXmitOK
	.comm	_AR_PowerMgmt,4,2               ; @AR_PowerMgmt
	.comm	_AR_RTSFailCnt,4,2              ; @AR_RTSFailCnt
	.comm	_AR_SeqNum,4,2                  ; @AR_SeqNum
	.comm	_AR_TxBaStatus,4,2              ; @AR_TxBaStatus
	.comm	_AR_TxDataUnderrun,4,2          ; @AR_TxDataUnderrun
	.comm	_AR_TxDelimUnderrun,4,2         ; @AR_TxDelimUnderrun
	.comm	_AR_TxOpExceeded,4,2            ; @AR_TxOpExceeded
	.comm	_AR_TxRSSIAnt00,4,2             ; @AR_TxRSSIAnt00
	.comm	_AR_TxRSSIAnt01,4,2             ; @AR_TxRSSIAnt01
	.comm	_AR_TxRSSIAnt02,4,2             ; @AR_TxRSSIAnt02
	.comm	_AR_TxRSSIAnt10,4,2             ; @AR_TxRSSIAnt10
	.comm	_AR_TxRSSIAnt11,4,2             ; @AR_TxRSSIAnt11
	.comm	_AR_TxRSSIAnt12,4,2             ; @AR_TxRSSIAnt12
	.comm	_AR_TxRSSICombined,4,2          ; @AR_TxRSSICombined
	.comm	_AR_TxTid,4,2                   ; @AR_TxTid
	.comm	_AR_TxTimerExpired,4,2          ; @AR_TxTimerExpired
	.comm	_AR_VirtRetryCnt,4,2            ; @AR_VirtRetryCnt
	.no_dead_strip	_ar5416_decode_txstatus
.subsections_via_symbols
