	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ModifyWaitEvent                ## -- Begin function ModifyWaitEvent
	.p2align	4, 0x90
_ModifyWaitEvent:                       ## @ModifyWaitEvent
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	%esi, (%r15)
	setg	%dil
	callq	_Assert
	movq	16(%r15), %r13
	movslq	%ebx, %rbx
	movl	(%r13,%rbx,4), %eax
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	%r12d, %eax
	jne	LBB0_3
## %bb.1:
	testl	%r12d, %ecx
	je	LBB0_9
## %bb.2:
	movl	%r12d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, 8(%r15)
	jne	LBB0_5
	jmp	LBB0_9
LBB0_3:
	testl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movl	(%r13,%rbx,4), %eax
LBB0_5:
	movq	_WL_POSTMASTER_DEATH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_7:
	movl	%r12d, (%r13,%rbx,4)
	cmpl	%r12d, (%r14)
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot modify latch event"

	.comm	_WL_POSTMASTER_DEATH,4,2        ## @WL_POSTMASTER_DEATH
L_.str.1:                               ## @.str.1
	.asciz	"cannot modify postmaster death event"

	.comm	_EPOLL_CTL_MOD,4,2              ## @EPOLL_CTL_MOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ModifyWaitEvent                ; -- Begin function ModifyWaitEvent
	.p2align	2
_ModifyWaitEvent:                       ; @ModifyWaitEvent
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, gt
	bl	_Assert
	ldr	x23, [x20, #16]
	sxtw	x24, w22
	ldr	w8, [x23, w22, sxtw #2]
Lloh0:
	adrp	x22, _WL_LATCH_SET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WL_LATCH_SET@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.1:
	tst	w9, w21
	b.eq	LBB0_9
; %bb.2:
	ldr	x9, [x20, #8]
	mov	x8, x21
	cmp	x9, x19
	b.ne	LBB0_5
	b	LBB0_9
LBB0_3:
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	w8, [x23, x24, lsl #2]
LBB0_5:
Lloh7:
	adrp	x9, _WL_POSTMASTER_DEATH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WL_POSTMASTER_DEATH@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_7:
	str	w21, [x23, x24, lsl #2]
	ldr	w8, [x22]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.8:
	str	x19, [x20, #8]
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot modify latch event"

	.comm	_WL_POSTMASTER_DEATH,4,2        ; @WL_POSTMASTER_DEATH
l_.str.1:                               ; @.str.1
	.asciz	"cannot modify postmaster death event"

	.comm	_EPOLL_CTL_MOD,4,2              ; @EPOLL_CTL_MOD
.subsections_via_symbols
