	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_fatal_handler
_install_fatal_handler:                 ## @install_fatal_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	-16(%rbp), %rdi
	callq	_sigemptyset
	movq	_SA_RESETHAND@GOTPCREL(%rip), %rax
	movq	_SA_NODEFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	_last_ditch_exit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SA_RESETHAND,4,2               ## @SA_RESETHAND
	.comm	_SA_NODEFER,4,2                 ## @SA_NODEFER
	.comm	_last_ditch_exit,4,2            ## @last_ditch_exit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to install handler for signal %d - errno = %d\n"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_install_fatal_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_fatal_handler
_install_fatal_handler:                 ; @install_fatal_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x8, sp, #8
	add	x0, x8, #16
	bl	_sigemptyset
Lloh0:
	adrp	x8, _SA_RESETHAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_RESETHAND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SA_NODEFER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SA_NODEFER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	xzr, [sp, #16]
Lloh6:
	adrp	x9, _last_ditch_exit@GOTPAGE
Lloh7:
	ldr	x9, [x9, _last_ditch_exit@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SA_RESETHAND,4,2               ; @SA_RESETHAND
	.comm	_SA_NODEFER,4,2                 ; @SA_NODEFER
	.comm	_last_ditch_exit,4,2            ; @last_ditch_exit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to install handler for signal %d - errno = %d\n"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_install_fatal_handler
.subsections_via_symbols
