	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_fini_tx_queue              ## -- Begin function ef4_fini_tx_queue
	.p2align	4, 0x90
_ef4_fini_tx_queue:                     ## @ef4_fini_tx_queue
	.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
	movq	48(%rdi), %rdi
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %edx
	movl	40(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	callq	_netif_dbg
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rcx
	cmpq	8(%rbx), %rcx
	je	LBB0_5
## %bb.2:
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	andq	16(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_ef4_dequeue_buffer
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	8(%rbx), %rax
	je	LBB0_5
## %bb.3:
	leaq	-32(%rbp), %r14
	leaq	-28(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rcx
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	andq	16(%rbx), %rax
	leaq	(%rcx,%rax,4), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ef4_dequeue_buffer
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	8(%rbx), %rax
	jne	LBB0_4
LBB0_5:
	movl	$0, 24(%rbx)
	movl	28(%rbx), %edi
	callq	_netdev_tx_reset_queue
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	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	"shutting down TX queue %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_fini_tx_queue              ; -- Begin function ef4_fini_tx_queue
	.p2align	2
_ef4_fini_tx_queue:                     ; @ef4_fini_tx_queue
	.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
	ldr	x0, [x0, #48]
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0]
	ldr	w4, [x19, #40]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netif_dbg
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.1:
	ldp	x9, x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_4
LBB0_2:
	str	wzr, [x19, #24]
	ldr	w0, [x19, #28]
	bl	_netdev_tx_reset_queue
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:
	str	xzr, [sp, #8]
	ldr	x10, [x19, #16]
	and	x9, x10, x9
	add	x1, x8, x9, lsl #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_ef4_dequeue_buffer
	ldp	x8, x9, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #32]
	str	xzr, [sp, #8]
	ldr	x10, [x19, #16]
	and	x8, x10, x8
	add	x1, x9, x8, lsl #2
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shutting down TX queue %d\n"

.subsections_via_symbols
