	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_egress_fq_empty
_wait_for_egress_fq_empty:              ## @wait_for_egress_fq_empty
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DPNI_TX_PENDING_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DPNI_TX_PENDING_VER_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dpaa2_eth_cmp_dpni_ver
	testq	%rax, %rax
	js	LBB0_21
## %bb.1:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	je	LBB0_2
LBB0_21:
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.3:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.4:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.5:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.6:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.7:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.9:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.10:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.11:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.12:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.13:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.14:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.15:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.16:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.17:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
## %bb.19:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movl	$6, %ecx
	callq	_dpni_get_statistics
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	cmpq	$0, -16(%rbp)
	je	LBB0_22
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_DPNI_TX_PENDING_VER_MAJOR,4,2  ## @DPNI_TX_PENDING_VER_MAJOR
	.comm	_DPNI_TX_PENDING_VER_MINOR,4,2  ## @DPNI_TX_PENDING_VER_MINOR
	.no_dead_strip	_wait_for_egress_fq_empty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_egress_fq_empty
_wait_for_egress_fq_empty:              ; @wait_for_egress_fq_empty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DPNI_TX_PENDING_VER_MAJOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPNI_TX_PENDING_VER_MAJOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DPNI_TX_PENDING_VER_MINOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPNI_TX_PENDING_VER_MINOR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_dpaa2_eth_cmp_dpni_ver
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbz	w0, LBB0_4
LBB0_2:
	mov	w0, #500
	bl	_msleep
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.5:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.6:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.7:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.9:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.10:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.11:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.12:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.13:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.14:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.15:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.16:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.17:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.18:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.19:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.20:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.21:
	ldp	w2, w0, [x19]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #6
	bl	_dpni_get_statistics
	cbnz	w0, LBB0_2
; %bb.22:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPNI_TX_PENDING_VER_MAJOR,4,2  ; @DPNI_TX_PENDING_VER_MAJOR
	.comm	_DPNI_TX_PENDING_VER_MINOR,4,2  ; @DPNI_TX_PENDING_VER_MINOR
	.no_dead_strip	_wait_for_egress_fq_empty
.subsections_via_symbols
