	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _task_fn_tx
__task_fn_tx:                           ## @_task_fn_tx
	.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	%rdi, -32(%rbp)
	movq	32(%rdi), %r15
	movl	(%r15), %r14d
	movq	24(%r15), %rdi
	callq	_if_getdrvflags
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %edi
	movq	_TX_BATCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	movl	%r14d, %r8d
	callq	_ifmp_ring_enqueue
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	movq	-32(%rbp), %rbx
	jmp	LBB0_5
LBB0_2:
	testl	%r14d, %r14d
LBB0_5:
	movl	4(%rbx), %edi
	movq	_TX_BATCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ifmp_ring_check_drainage
LBB0_6:
	movq	_IFC_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_IFDI_INTR_ENABLE
	jmp	LBB0_9
LBB0_8:
	movq	-32(%rbp), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IFDI_TX_QUEUE_INTR_ENABLE
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_TX_BATCH_SIZE,4,2              ## @TX_BATCH_SIZE
	.comm	_IFC_LEGACY,4,2                 ## @IFC_LEGACY
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_IFCAP_NETMAP,4,2               ## @IFCAP_NETMAP
	.comm	_curcpu,8,3                     ## @curcpu
	.no_dead_strip	__task_fn_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _task_fn_tx
__task_fn_tx:                           ; @_task_fn_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	str	x0, [sp, #8]
	ldr	x19, [x0, #32]
	ldr	w20, [x19]
	ldr	x0, [x19, #24]
	bl	_if_getdrvflags
Lloh0:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.1:
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x22, _TX_BATCH_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TX_BATCH_SIZE@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x21, #4]
	ldr	w3, [x22]
	add	x1, sp, #8
	mov	w2, #1
	mov	x4, x20
	bl	_ifmp_ring_enqueue
	cbz	w20, LBB0_5
; %bb.3:
	ldr	x21, [sp, #8]
LBB0_4:
	ldr	w0, [x21, #4]
	ldr	w1, [x22]
	bl	_ifmp_ring_check_drainage
LBB0_5:
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _IFC_LEGACY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFC_LEGACY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_IFDI_INTR_ENABLE
	b	LBB0_8
LBB0_7:
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IFDI_TX_QUEUE_INTR_ENABLE
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_TX_BATCH_SIZE,4,2              ; @TX_BATCH_SIZE
	.comm	_IFC_LEGACY,4,2                 ; @IFC_LEGACY
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_IFCAP_NETMAP,4,2               ; @IFCAP_NETMAP
	.comm	_curcpu,8,3                     ; @curcpu
	.no_dead_strip	__task_fn_tx
.subsections_via_symbols
