	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdei_event_unregister          ## -- Begin function sdei_event_unregister
	.p2align	4, 0x90
_sdei_event_unregister:                 ## @sdei_event_unregister
	.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	%edi, %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_in_nmi
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_sdei_events_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	%r14d, %edi
	callq	_sdei_event_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	__sdei_event_unregister
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_sdei_event_destroy
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_warn
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_4:
	movq	_sdei_events_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sdei_events_lock,4,2           ## @sdei_events_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Event %u not registered\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdei_event_unregister          ; -- Begin function sdei_event_unregister
	.p2align	2
_sdei_event_unregister:                 ; @sdei_event_unregister
	.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
	bl	_in_nmi
	bl	_WARN_ON
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	x20, x0
	bl	__sdei_event_unregister
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_sdei_event_destroy
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
Lloh7:
	adrp	x0, _sdei_events_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _sdei_events_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sdei_events_lock,4,2           ; @sdei_events_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Event %u not registered\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
