	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_stats_complete
_falcon_stats_complete:                 ## @falcon_stats_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %r14
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	$0, (%r14)
	callq	_FALCON_XMAC_STATS_DMA_FLAG
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	callq	_rmb
	movq	_falcon_stat_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALCON_STAT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_falcon_stat_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %ecx
	movl	4(%rbx), %r8d
	movl	$1, %r9d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ef4_nic_update_stats           ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_err                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_falcon_stat_desc,4,2           ## @falcon_stat_desc
	.comm	_FALCON_STAT_COUNT,4,2          ## @FALCON_STAT_COUNT
	.comm	_falcon_stat_mask,4,2           ## @falcon_stat_mask
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for statistics\n"

	.no_dead_strip	_falcon_stats_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_stats_complete
_falcon_stats_complete:                 ; @falcon_stats_complete
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	str	wzr, [x20]
	bl	_FALCON_XMAC_STATS_DMA_FLAG
	cbz	x0, LBB0_4
; %bb.2:
	bl	_rmb
Lloh0:
	adrp	x8, _falcon_stat_desc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _falcon_stat_desc@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _FALCON_STAT_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALCON_STAT_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _falcon_stat_mask@GOTPAGE
Lloh7:
	ldr	x8, [x8, _falcon_stat_mask@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x20, #4]
	ldr	w4, [x19, #4]
	mov	w5, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ef4_nic_update_stats
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x8, _hw@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_err
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_falcon_stat_desc,4,2           ; @falcon_stat_desc
	.comm	_FALCON_STAT_COUNT,4,2          ; @FALCON_STAT_COUNT
	.comm	_falcon_stat_mask,4,2           ; @falcon_stat_mask
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for statistics\n"

	.no_dead_strip	_falcon_stats_complete
.subsections_via_symbols
