	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_unregister_memory_hooks
_ehea_unregister_memory_hooks:          ## @ehea_unregister_memory_hooks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ehea_memory_hooks_registered@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_ehea_reboot_nb@GOTPCREL(%rip), %rdi
	callq	_unregister_reboot_notifier
	movq	_ehea_crash_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_crash_shutdown_unregister
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_3:
	movq	_ehea_mem_nb@GOTPCREL(%rip), %rdi
	popq	%rbp
	jmp	_unregister_memory_notifier     ## TAILCALL
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ehea_memory_hooks_registered,4,2 ## @ehea_memory_hooks_registered
	.comm	_ehea_reboot_nb,4,2             ## @ehea_reboot_nb
	.comm	_ehea_crash_handler,4,2         ## @ehea_crash_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed unregistering crash handler\n"

	.comm	_ehea_mem_nb,4,2                ## @ehea_mem_nb
	.no_dead_strip	_ehea_unregister_memory_hooks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_unregister_memory_hooks
_ehea_unregister_memory_hooks:          ; @ehea_unregister_memory_hooks
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, _ehea_memory_hooks_registered@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ehea_memory_hooks_registered@GOTPAGEOFF]
	bl	_atomic_read
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x0, _ehea_reboot_nb@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ehea_reboot_nb@GOTPAGEOFF]
	bl	_unregister_reboot_notifier
Lloh4:
	adrp	x8, _ehea_crash_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ehea_crash_handler@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_crash_shutdown_unregister
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_3:
Lloh9:
	adrp	x0, _ehea_mem_nb@GOTPAGE
Lloh10:
	ldr	x0, [x0, _ehea_mem_nb@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_unregister_memory_notifier
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ehea_memory_hooks_registered,4,2 ; @ehea_memory_hooks_registered
	.comm	_ehea_reboot_nb,4,2             ; @ehea_reboot_nb
	.comm	_ehea_crash_handler,4,2         ; @ehea_crash_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed unregistering crash handler\n"

	.comm	_ehea_mem_nb,4,2                ; @ehea_mem_nb
	.no_dead_strip	_ehea_unregister_memory_hooks
.subsections_via_symbols
