	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5416_decode_rxstatus
_ar5416_decode_rxstatus:                ## @ar5416_decode_rxstatus
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %rsi
	leaq	-80(%rbp), %rdi
	movl	$52, %edx
	callq	_memcpy
	movl	-80(%rbp), %edi
	movq	_AR_RxDone@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
	movl	-80(%rbp), %edi
	movl	(%r15), %esi
	callq	_MF
	movl	-76(%rbp), %r8d
	movl	%r8d, %r9d
	subl	_ar5416_decode_rxstatus.rx_tsf(%rip), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_printf
	movl	-76(%rbp), %eax
	movl	%eax, _ar5416_decode_rxstatus.rx_tsf(%rip)
LBB0_2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ar5416_decode_rxstatus.rx_tsf,4,2 ## @ar5416_decode_rxstatus.rx_tsf
	.comm	_AR_RxDone,4,2                  ## @AR_RxDone
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%u] [%llu] RXSTATUS: RxDone=%d, TS=0x%08x (delta %d)\n"

	.comm	_AR_2040,4,2                    ## @AR_2040
	.comm	_AR_CRCErr,4,2                  ## @AR_CRCErr
	.comm	_AR_DataLen,4,2                 ## @AR_DataLen
	.comm	_AR_DecryptCRCErr,4,2           ## @AR_DecryptCRCErr
	.comm	_AR_DupFrame,4,2                ## @AR_DupFrame
	.comm	_AR_GI,4,2                      ## @AR_GI
	.comm	_AR_HiRxChain,4,2               ## @AR_HiRxChain
	.comm	_AR_KeyIdx,4,2                  ## @AR_KeyIdx
	.comm	_AR_KeyMiss,4,2                 ## @AR_KeyMiss
	.comm	_AR_MichaelErr,4,2              ## @AR_MichaelErr
	.comm	_AR_NumDelim,4,2                ## @AR_NumDelim
	.comm	_AR_PHYErr,4,2                  ## @AR_PHYErr
	.comm	_AR_PHYErrCode,4,2              ## @AR_PHYErrCode
	.comm	_AR_PostDelimCRCErr,4,2         ## @AR_PostDelimCRCErr
	.comm	_AR_PreDelimCRCErr,4,2          ## @AR_PreDelimCRCErr
	.comm	_AR_RxAggr,4,2                  ## @AR_RxAggr
	.comm	_AR_RxAntenna,4,2               ## @AR_RxAntenna
	.comm	_AR_RxFrameOK,4,2               ## @AR_RxFrameOK
	.comm	_AR_RxKeyIdxValid,4,2           ## @AR_RxKeyIdxValid
	.comm	_AR_RxMore,4,2                  ## @AR_RxMore
	.comm	_AR_RxMoreAggr,4,2              ## @AR_RxMoreAggr
	.comm	_AR_RxRSSIAnt00,4,2             ## @AR_RxRSSIAnt00
	.comm	_AR_RxRSSIAnt01,4,2             ## @AR_RxRSSIAnt01
	.comm	_AR_RxRSSIAnt02,4,2             ## @AR_RxRSSIAnt02
	.comm	_AR_RxRSSIAnt10,4,2             ## @AR_RxRSSIAnt10
	.comm	_AR_RxRSSIAnt11,4,2             ## @AR_RxRSSIAnt11
	.comm	_AR_RxRSSIAnt12,4,2             ## @AR_RxRSSIAnt12
	.comm	_AR_RxRSSICombined,4,2          ## @AR_RxRSSICombined
	.comm	_AR_RxRate,4,2                  ## @AR_RxRate
	.no_dead_strip	_ar5416_decode_rxstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5416_decode_rxstatus
_ar5416_decode_rxstatus:                ; @ar5416_decode_rxstatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, #52
	bl	_memcpy
	ldr	w0, [sp, #40]
Lloh0:
	adrp	x21, _AR_RxDone@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_RxDone@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	w0, [sp, #40]
	ldr	w1, [x21]
	bl	_MF
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #44]
	adrp	x21, _ar5416_decode_rxstatus.rx_tsf@PAGE
	ldr	w9, [x21, _ar5416_decode_rxstatus.rx_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	w8, [sp, #44]
	str	w8, [x21, _ar5416_decode_rxstatus.rx_tsf@PAGEOFF]
LBB0_2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ar5416_decode_rxstatus.rx_tsf,4,2 ; @ar5416_decode_rxstatus.rx_tsf
	.comm	_AR_RxDone,4,2                  ; @AR_RxDone
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%u] [%llu] RXSTATUS: RxDone=%d, TS=0x%08x (delta %d)\n"

	.comm	_AR_2040,4,2                    ; @AR_2040
	.comm	_AR_CRCErr,4,2                  ; @AR_CRCErr
	.comm	_AR_DataLen,4,2                 ; @AR_DataLen
	.comm	_AR_DecryptCRCErr,4,2           ; @AR_DecryptCRCErr
	.comm	_AR_DupFrame,4,2                ; @AR_DupFrame
	.comm	_AR_GI,4,2                      ; @AR_GI
	.comm	_AR_HiRxChain,4,2               ; @AR_HiRxChain
	.comm	_AR_KeyIdx,4,2                  ; @AR_KeyIdx
	.comm	_AR_KeyMiss,4,2                 ; @AR_KeyMiss
	.comm	_AR_MichaelErr,4,2              ; @AR_MichaelErr
	.comm	_AR_NumDelim,4,2                ; @AR_NumDelim
	.comm	_AR_PHYErr,4,2                  ; @AR_PHYErr
	.comm	_AR_PHYErrCode,4,2              ; @AR_PHYErrCode
	.comm	_AR_PostDelimCRCErr,4,2         ; @AR_PostDelimCRCErr
	.comm	_AR_PreDelimCRCErr,4,2          ; @AR_PreDelimCRCErr
	.comm	_AR_RxAggr,4,2                  ; @AR_RxAggr
	.comm	_AR_RxAntenna,4,2               ; @AR_RxAntenna
	.comm	_AR_RxFrameOK,4,2               ; @AR_RxFrameOK
	.comm	_AR_RxKeyIdxValid,4,2           ; @AR_RxKeyIdxValid
	.comm	_AR_RxMore,4,2                  ; @AR_RxMore
	.comm	_AR_RxMoreAggr,4,2              ; @AR_RxMoreAggr
	.comm	_AR_RxRSSIAnt00,4,2             ; @AR_RxRSSIAnt00
	.comm	_AR_RxRSSIAnt01,4,2             ; @AR_RxRSSIAnt01
	.comm	_AR_RxRSSIAnt02,4,2             ; @AR_RxRSSIAnt02
	.comm	_AR_RxRSSIAnt10,4,2             ; @AR_RxRSSIAnt10
	.comm	_AR_RxRSSIAnt11,4,2             ; @AR_RxRSSIAnt11
	.comm	_AR_RxRSSIAnt12,4,2             ; @AR_RxRSSIAnt12
	.comm	_AR_RxRSSICombined,4,2          ; @AR_RxRSSICombined
	.comm	_AR_RxRate,4,2                  ; @AR_RxRate
	.no_dead_strip	_ar5416_decode_rxstatus
.subsections_via_symbols
