	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loop
_loop:                                  ## @loop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	32(%rdi), %r15d
	testq	%r12, %r12
	jg	LBB0_2
## %bb.1:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_2:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r12, %r8
	callq	_GetQueuedCompletionStatus
	movl	%eax, %r13d
	leaq	16(%r14), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdi, %rdi
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	movl	%r15d, %edi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r12, %r8
	callq	_GetQueuedCompletionStatus
	movl	%eax, %r13d
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_EnterCriticalSection
	cmpq	$0, 24(%r14)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_LeaveCriticalSection
	movq	-56(%rbp), %rsi
	movq	-64(%rbp), %rdi
	movq	_NOTIFICATION_KEY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx
	movl	%r13d, %ecx
	callq	_handle_entry
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_event_warnx
	movq	%rbx, %rdi
	callq	_EnterCriticalSection
LBB0_10:
	decq	8(%r14)
	jne	LBB0_12
## %bb.11:
	movl	20(%r14), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_ReleaseSemaphore
LBB0_12:
	movq	%rbx, %rdi
	callq	_LeaveCriticalSection
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,8,3                   ## @INFINITE
	.comm	_NOTIFICATION_KEY,8,3           ## @NOTIFICATION_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetQueuedCompletionStatus exited with no event."

	.no_dead_strip	_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loop
_loop:                                  ; @loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0]
	ldr	w21, [x0, #32]
Lloh0:
	adrp	x9, _INFINITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #1
	csel	x22, x9, x8, lt
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
	add	x1, sp, #12
	add	x2, sp, #16
	add	x3, sp, #24
	mov	x0, x21
	mov	x4, x22
	bl	_GetQueuedCompletionStatus
	mov	x23, x0
	add	x20, x19, #16
	mov	x0, x20
	bl	_EnterCriticalSection
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
LBB0_1:
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #20]
	mov	w1, #1
	mov	x2, #0
	bl	_ReleaseSemaphore
LBB0_3:
	mov	x0, x20
	bl	_LeaveCriticalSection
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh3:
	adrp	x24, _NOTIFICATION_KEY@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NOTIFICATION_KEY@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [sp, #12]
	mov	x3, x23
	bl	_handle_entry
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
	add	x1, sp, #12
	add	x2, sp, #16
	add	x3, sp, #24
	mov	x0, x21
	mov	x4, x22
	bl	_GetQueuedCompletionStatus
	mov	x23, x0
	mov	x0, x20
	bl	_EnterCriticalSection
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_LeaveCriticalSection
	ldp	x1, x0, [sp, #16]
	ldr	x8, [x24]
	cmp	x1, x8
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x0, LBB0_6
; %bb.9:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_event_warnx
	mov	x0, x20
	bl	_EnterCriticalSection
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,8,3                   ; @INFINITE
	.comm	_NOTIFICATION_KEY,8,3           ; @NOTIFICATION_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetQueuedCompletionStatus exited with no event."

	.no_dead_strip	_loop
.subsections_via_symbols
