	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitEventSetWait               ## -- Begin function WaitEventSetWait
	.p2align	4, 0x90
_WaitEventSetWait:                      ## @WaitEventSetWait
	.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
	movl	%r8d, %r14d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%edi, %edi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	setg	%dil
	callq	_Assert
	testq	%r12, %r12
	js	LBB0_1
## %bb.2:
	callq	_INSTR_TIME_SET_CURRENT
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r12, (%rax)
	setge	%dil
	callq	_Assert
	movq	%r12, %rbx
	jmp	LBB0_3
LBB0_1:
	movq	$-1, %rbx
LBB0_3:
	movl	%r14d, %edi
	callq	_pgstat_report_wait_start
	movq	_waiting@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rax)
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_WaitEventSetWaitBlock
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r14d
	testq	%r12, %r12
	js	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_INSTR_TIME_SET_CURRENT
	callq	_INSTR_TIME_SUBTRACT
	callq	_INSTR_TIME_GET_MILLISEC
	movq	%r12, %rbx
	subq	%rax, %rbx
	jg	LBB0_11
	jmp	LBB0_13
LBB0_12:
	movl	%r14d, %r15d
	jmp	LBB0_13
LBB0_6:
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 16(%rdx)
	movq	(%r13), %rax
	movq	%rax, (%rdx)
	movq	8(%r13), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 12(%rdx)
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
	movl	$1, %r15d
LBB0_13:
	movq	_waiting@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_waiting,4,2                    ## @waiting
	.comm	_PGINVALID_SOCKET,4,2           ## @PGINVALID_SOCKET
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitEventSetWait               ; -- Begin function WaitEventSetWait
	.p2align	2
_WaitEventSetWait:                      ; @WaitEventSetWait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	cmp	w3, #0
	cset	w0, gt
	bl	_Assert
	tbnz	x22, #63, LBB0_2
; %bb.1:
	bl	_INSTR_TIME_SET_CURRENT
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	cset	w0, ge
	bl	_Assert
	mov	x23, x22
	b	LBB0_3
LBB0_2:
	mov	x23, #-1
LBB0_3:
	mov	x0, x24
	bl	_pgstat_report_wait_start
Lloh3:
	adrp	x25, _waiting@GOTPAGE
Lloh4:
	ldr	x25, [x25, _waiting@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x25]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w24, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	bl	_WaitEventSetWaitBlock
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	tbnz	x22, #63, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w24, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_INSTR_TIME_SET_CURRENT
	bl	_INSTR_TIME_SUBTRACT
	bl	_INSTR_TIME_GET_MILLISEC
	sub	x23, x22, x0
	cmp	x23, #1
	b.ge	LBB0_4
LBB0_11:
	mov	w24, #0
	b	LBB0_13
LBB0_12:
Lloh5:
	adrp	x8, _PGINVALID_SOCKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGINVALID_SOCKET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldp	x8, x9, [x20]
	str	x8, [x19]
	ldr	w8, [x9, x8, lsl #2]
Lloh8:
	adrp	x9, _WL_LATCH_SET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WL_LATCH_SET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	mov	w24, #1
LBB0_13:
	str	wzr, [x25]
	bl	_pgstat_report_wait_end
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_waiting,4,2                    ; @waiting
	.comm	_PGINVALID_SOCKET,4,2           ; @PGINVALID_SOCKET
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
.subsections_via_symbols
