	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_flush_input_queue
_ng_flush_input_queue:                  ## @ng_flush_input_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	%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	%rdi, %r14
	callq	_NG_QUEUE_LOCK
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	_el_next@GOTPCREL(%rip), %r12
	movq	_OP_PENDING@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_NG_FREE_ITEM
	movq	%r14, %rdi
	callq	_NG_QUEUE_LOCK
	movq	%r15, %rdi
	callq	_STAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movq	%r15, %rdi
	callq	_STAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_atomic_clear_int
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_NG_QUEUE_UNLOCK
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, (%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rdi
	callq	_refcount_release
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	*8(%rax)
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NG_QUEUE_UNLOCK                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_el_next,4,2                    ## @el_next
	.comm	_OP_PENDING,4,2                 ## @OP_PENDING
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ng_flush_input_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_flush_input_queue
_ng_flush_input_queue:                  ; @ng_flush_input_queue
	.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	x19, x0
	bl	_NG_QUEUE_LOCK
	add	x20, x19, #4
	mov	x0, x20
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _el_next@GOTPAGE
Lloh1:
	ldr	x22, [x22, _el_next@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ENOENT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ENOENT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _OP_PENDING@GOTPAGE
Lloh5:
	ldr	x24, [x24, _OP_PENDING@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_NG_FREE_ITEM
	mov	x0, x19
	bl	_NG_QUEUE_LOCK
	mov	x0, x20
	bl	_STAILQ_FIRST
	mov	x21, x0
	cbz	x0, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_STAILQ_REMOVE_HEAD
	mov	x0, x20
	bl	_STAILQ_EMPTY
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_atomic_clear_int
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_NG_QUEUE_UNLOCK
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
	cmp	w9, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23]
	str	w9, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, #16
	bl	_refcount_release
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x8, #8]
	ldp	w1, w0, [x8]
	blr	x9
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	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
	b	_NG_QUEUE_UNLOCK
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_el_next,4,2                    ; @el_next
	.comm	_OP_PENDING,4,2                 ; @OP_PENDING
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ng_flush_input_queue
.subsections_via_symbols
