	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdei_event_disable             ## -- Begin function sdei_event_disable
	.p2align	4, 0x90
_sdei_event_disable:                    ## @sdei_event_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_sdei_events_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	%ebx, %edi
	callq	_sdei_event_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_sdei_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	8(%rbx), %rax
	movq	_SDEI_EVENT_TYPE_SHARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	callq	_sdei_api_event_disable
	jmp	LBB0_5
LBB0_1:
	movq	_sdei_events_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	__ipi_event_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_sdei_do_cross_call
LBB0_5:
	movl	%eax, %ebx
	movq	_sdei_events_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sdei_events_lock,4,2           ## @sdei_events_lock
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_sdei_list_lock,4,2             ## @sdei_list_lock
	.comm	_SDEI_EVENT_TYPE_SHARED,8,3     ## @SDEI_EVENT_TYPE_SHARED
	.comm	__ipi_event_disable,4,2         ## @_ipi_event_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdei_event_disable             ; -- Begin function sdei_event_disable
	.p2align	2
_sdei_event_disable:                    ; @sdei_event_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _sdei_events_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sdei_events_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	bl	_sdei_event_find
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x20, _sdei_list_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _sdei_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	str	wzr, [x19]
	mov	x0, x20
	bl	_spin_unlock
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _SDEI_EVENT_TYPE_SHARED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SDEI_EVENT_TYPE_SHARED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_sdei_api_event_disable
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x0, _sdei_events_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _sdei_events_lock@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, __ipi_event_disable@GOTPAGE
Lloh13:
	ldr	x8, [x8, __ipi_event_disable@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_sdei_do_cross_call
LBB0_5:
	mov	x19, x0
Lloh15:
	adrp	x0, _sdei_events_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _sdei_events_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sdei_events_lock,4,2           ; @sdei_events_lock
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_sdei_list_lock,4,2             ; @sdei_list_lock
	.comm	_SDEI_EVENT_TYPE_SHARED,8,3     ; @SDEI_EVENT_TYPE_SHARED
	.comm	__ipi_event_disable,4,2         ; @_ipi_event_disable
.subsections_via_symbols
