	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdei_reregister_event
_sdei_reregister_event:                 ## @sdei_reregister_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
	movq	%rdi, %rbx
	movq	_sdei_events_lock@GOTPCREL(%rip), %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	__sdei_event_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_sdei_event_destroy
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r14d, %r14d
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	movq	_SDEI_EVENT_TYPE_SHARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	callq	_sdei_api_event_enable
	jmp	LBB0_6
LBB0_5:
	movq	__local_event_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_sdei_do_cross_call
LBB0_6:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movl	%r15d, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_sdei_events_lock,4,2           ## @sdei_events_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to re-register event %u\n"

	.comm	_SDEI_EVENT_TYPE_SHARED,8,3     ## @SDEI_EVENT_TYPE_SHARED
	.comm	__local_event_enable,4,2        ## @_local_event_enable
L_.str.1:                               ## @.str.1
	.asciz	"Failed to re-enable event %u\n"

	.no_dead_strip	_sdei_reregister_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdei_reregister_event
_sdei_reregister_event:                 ; @sdei_reregister_event
	.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
	mov	x0, x19
	bl	__sdei_event_register
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w1, [x19, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_sdei_event_destroy
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x19]
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_7
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_sdei_api_event_enable
	mov	x20, x0
	cbnz	w0, LBB0_8
	b	LBB0_2
LBB0_6:
	mov	w20, #0
	b	LBB0_2
LBB0_7:
Lloh7:
	adrp	x8, __local_event_enable@GOTPAGE
Lloh8:
	ldr	x8, [x8, __local_event_enable@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_sdei_do_cross_call
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_8:
	ldr	w1, [x19, #8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sdei_events_lock,4,2           ; @sdei_events_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to re-register event %u\n"

	.comm	_SDEI_EVENT_TYPE_SHARED,8,3     ; @SDEI_EVENT_TYPE_SHARED
	.comm	__local_event_enable,4,2        ; @_local_event_enable
l_.str.1:                               ; @.str.1
	.asciz	"Failed to re-enable event %u\n"

	.no_dead_strip	_sdei_reregister_event
.subsections_via_symbols
