	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netisr_queue_workstream
_netisr_queue_workstream:               ## @netisr_queue_workstream
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_NWS_LOCK_ASSERT
	movl	$0, (%r14)
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jge	LBB0_9
## %bb.1:
	movq	$0, (%r13)
	cmpq	$0, 40(%rbx)
	je	LBB0_2
## %bb.3:
	movq	32(%rbx), %rcx
	movq	%r13, (%rcx)
	jmp	LBB0_4
LBB0_9:
	movq	%r13, %rdi
	callq	_m_freem
	incl	24(%rbx)
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%r13, 40(%rbx)
LBB0_4:
	movq	%r13, 32(%rbx)
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	16(%rbx), %rax
	jl	LBB0_6
## %bb.5:
	movq	%rcx, 16(%rbx)
LBB0_6:
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	orl	%eax, (%r15)
	movl	4(%r15), %eax
	movq	_NWS_RUNNING@GOTPCREL(%rip), %rcx
	movq	_NWS_DISPATCHING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_NWS_SCHEDULED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %edx
	testl	%eax, %edx
	jne	LBB0_8
## %bb.7:
	orl	%eax, %ecx
	movl	%ecx, 4(%r15)
	movl	$1, (%r14)
LBB0_8:
	incl	28(%rbx)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NWS_RUNNING,4,2                ## @NWS_RUNNING
	.comm	_NWS_DISPATCHING,4,2            ## @NWS_DISPATCHING
	.comm	_NWS_SCHEDULED,4,2              ## @NWS_SCHEDULED
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_netisr_queue_workstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netisr_queue_workstream
_netisr_queue_workstream:               ; @netisr_queue_workstream
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_NWS_LOCK_ASSERT
	str	wzr, [x20]
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	str	xzr, [x23]
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x19, #32]
	str	x23, [x9]
	b	LBB0_5
LBB0_3:
	mov	x0, x23
	bl	_m_freem
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
Lloh0:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_4:
	str	x23, [x19, #40]
LBB0_5:
	str	x23, [x19, #32]
	add	x9, x8, #1
	str	x9, [x19]
	ldr	x10, [x19, #16]
	cmp	x8, x10
	b.lt	LBB0_7
; %bb.6:
	str	x9, [x19, #16]
LBB0_7:
	mov	w8, #1
	lsl	w10, w8, w22
	ldp	w11, w9, [x21]
	orr	w10, w11, w10
	str	w10, [x21]
Lloh3:
	adrp	x10, _NWS_RUNNING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NWS_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _NWS_DISPATCHING@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NWS_DISPATCHING@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w11, w11, w10
Lloh9:
	adrp	x10, _NWS_SCHEDULED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NWS_SCHEDULED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w11, w11, w10
	tst	w11, w9
	b.ne	LBB0_9
; %bb.8:
	orr	w9, w10, w9
	str	w9, [x21, #4]
	str	w8, [x20]
LBB0_9:
	mov	w0, #0
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NWS_RUNNING,4,2                ; @NWS_RUNNING
	.comm	_NWS_DISPATCHING,4,2            ; @NWS_DISPATCHING
	.comm	_NWS_SCHEDULED,4,2              ; @NWS_SCHEDULED
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_netisr_queue_workstream
.subsections_via_symbols
