	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_end_loopback
_ef4_end_loopback:                      ## @ef4_end_loopback
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	8(%r12), %r14
	movl	(%r12), %edi
	callq	_netif_tx_lock_bh
	cmpl	$0, (%r14)
	movl	$0, %r15d
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	incq	%r13
	movslq	(%r14), %rax
	cmpq	%rax, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_skb_shared
	cmpl	$1, %eax
	adcl	$0, %r15d
	jmp	LBB0_4
LBB0_5:
	movl	(%r12), %edi
	callq	_netif_tx_unlock_bh
	leaq	8(%r14), %rdi
	callq	_atomic_read
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	4(%r14), %rdi
	callq	_atomic_read
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ebx
	movl	%r15d, %r13d
	cmpl	%ebx, %r15d
	movl	$0, %eax
	je	LBB0_7
## %bb.6:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_LOOPBACK_MODE
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%r15d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_netif_err
	addq	$16, %rsp
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	(%r14), %r13d
LBB0_7:
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	cmpl	%r13d, %ebx
	je	LBB0_9
## %bb.8:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_LOOPBACK_MODE
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r13
	callq	_netif_dbg
	addq	$16, %rsp
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	(%r14), %edi
LBB0_9:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	addl	%edi, (%rcx,%rdx,4)
	movq	8(%rsi), %rcx
	addl	%r15d, (%rcx,%rdx,4)
	addl	%ebx, 16(%rsi)
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, 20(%rsi)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX queue %d saw only %d out of an expected %d TX completion events in %s loopback test\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"TX queue %d saw only %d out of an expected %d received packets in %s loopback test\n"

	.no_dead_strip	_ef4_end_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_end_loopback
_ef4_end_loopback:                      ; @ef4_end_loopback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	x24, [x22, #8]
	ldr	w0, [x22]
	bl	_netif_tx_lock_bh
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_dev_kfree_skb
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	ldr	x23, [x8, x25, lsl #3]
	cbz	x23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_skb_shared
	cmp	w0, #0
	cinc	w21, w21, eq
	b	LBB0_2
LBB0_5:
	mov	w21, #0
LBB0_6:
	ldr	w0, [x22]
	bl	_netif_tx_unlock_bh
	add	x0, x24, #8
	bl	_atomic_read
	mov	x23, x0
	add	x0, x24, #4
	bl	_atomic_read
	ldr	w25, [x24]
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
	cmp	w21, w25
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	b.ne	LBB0_9
; %bb.7:
	mov	w0, #0
	mov	x25, x21
	cmp	w23, w25
	b.eq	LBB0_10
LBB0_8:
Lloh4:
	adrp	x8, _drv@GOTPAGE
Lloh5:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh6:
	ldr	w26, [x8]
	ldr	w27, [x22]
	ldr	x28, [x20]
	mov	x0, x22
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	x20, x9
	bl	_LOOPBACK_MODE
	mov	x7, x0
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x26
	mov	x2, x27
	mov	x4, x28
	mov	x5, x23
	mov	x6, x25
	bl	_netif_dbg
	ldr	w8, [x20]
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	neg	w0, w8
	ldr	w8, [x24]
	b	LBB0_11
LBB0_9:
	ldr	w26, [x8]
	ldr	w27, [x22]
	ldr	x28, [x20]
	mov	x0, x22
	bl	_LOOPBACK_MODE
	mov	x7, x0
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x26
	mov	x2, x27
	mov	x4, x28
	mov	x5, x21
	mov	x6, x25
	bl	_netif_err
Lloh11:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
	ldr	w8, [x9]
	neg	w0, w8
	ldr	w25, [x24]
	cmp	w23, w25
	b.ne	LBB0_8
LBB0_10:
	mov	x8, x23
LBB0_11:
	ldr	w13, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x9, [x20]
	lsl	x9, x9, #2
	ldp	x10, x11, [x19]
	ldr	w12, [x10, x9]
	add	w8, w12, w8
	str	w8, [x10, x9]
	ldr	w8, [x11, x9]
	add	w8, w8, w21
	str	w8, [x11, x9]
	ldp	w8, w9, [x19, #16]
	add	w8, w8, w23
	add	w9, w9, w13
	stp	w8, w9, [x19, #16]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX queue %d saw only %d out of an expected %d TX completion events in %s loopback test\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"TX queue %d saw only %d out of an expected %d received packets in %s loopback test\n"

	.no_dead_strip	_ef4_end_loopback
.subsections_via_symbols
