	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mevent_delete_event
_mevent_delete_event:                   ## @mevent_delete_event
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_mevent_qlock
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
	movq	_me_list@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movl	(%r15), %edx
	movq	_change_head@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	xorl	%eax, %eax
	callq	_mevent_notify
LBB0_2:
	movq	_EV_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movl	$1, 4(%rbx)
LBB0_4:
	xorl	%eax, %eax
	callq	_mevent_qunlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_me_list,4,2                    ## @me_list
	.comm	_change_head,4,2                ## @change_head
	.comm	_EV_DELETE,4,2                  ## @EV_DELETE
	.no_dead_strip	_mevent_delete_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mevent_delete_event
_mevent_delete_event:                   ; @mevent_delete_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_mevent_qlock
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x21, _me_list@GOTPAGE
Lloh1:
	ldr	x21, [x21, _me_list@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_LIST_REMOVE
	ldr	w2, [x21]
Lloh2:
	adrp	x0, _change_head@GOTPAGE
Lloh3:
	ldr	x0, [x0, _change_head@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	bl	_mevent_notify
LBB0_2:
Lloh4:
	adrp	x8, _EV_DELETE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_DELETE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	cbz	w20, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_4:
	bl	_mevent_qunlock
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_me_list,4,2                    ; @me_list
	.comm	_change_head,4,2                ; @change_head
	.comm	_EV_DELETE,4,2                  ; @EV_DELETE
	.no_dead_strip	_mevent_delete_event
.subsections_via_symbols
