	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _sdei_event_unregister
__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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_sdei_events_lock@GOTPCREL(%rip), %rdi
	callq	_lockdep_assert_held
	movq	_sdei_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	$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_2
## %bb.1:
	movl	16(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdei_api_event_unregister      ## TAILCALL
LBB0_2:
	movq	__local_event_unregister@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdei_do_cross_call             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sdei_events_lock,4,2           ## @sdei_events_lock
	.comm	_sdei_list_lock,4,2             ## @sdei_list_lock
	.comm	_SDEI_EVENT_TYPE_SHARED,8,3     ## @SDEI_EVENT_TYPE_SHARED
	.comm	__local_event_unregister,4,2    ## @_local_event_unregister
	.no_dead_strip	__sdei_event_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _sdei_event_unregister
__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
Lloh0:
	adrp	x0, _sdei_events_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sdei_events_lock@GOTPAGEOFF]
	bl	_lockdep_assert_held
Lloh2:
	adrp	x20, _sdei_list_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _sdei_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	str	xzr, [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_2
; %bb.1:
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdei_api_event_unregister
LBB0_2:
Lloh7:
	adrp	x8, __local_event_unregister@GOTPAGE
Lloh8:
	ldr	x8, [x8, __local_event_unregister@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdei_do_cross_call
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sdei_events_lock,4,2           ; @sdei_events_lock
	.comm	_sdei_list_lock,4,2             ; @sdei_list_lock
	.comm	_SDEI_EVENT_TYPE_SHARED,8,3     ; @SDEI_EVENT_TYPE_SHARED
	.comm	__local_event_unregister,4,2    ; @_local_event_unregister
	.no_dead_strip	__sdei_event_unregister
.subsections_via_symbols
