	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_signal_handler           ## -- Begin function setup_signal_handler
	.p2align	4, 0x90
_setup_signal_handler:                  ## @setup_signal_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_handle_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	_SA_NODEFER@GOTPCREL(%rip), %rax
	movq	_SA_RESETHAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SA_SIGINFO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -16(%rbp)
	leaq	-12(%rbp), %rdi
	callq	_sigemptyset
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	movq	_SIGABRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	movq	_SIGFPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movq	_SIGSEGV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	jne	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_ELOG
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_handle_signal,4,2              ## @handle_signal
	.comm	_SA_NODEFER,4,2                 ## @SA_NODEFER
	.comm	_SA_RESETHAND,4,2               ## @SA_RESETHAND
	.comm	_SA_SIGINFO,4,2                 ## @SA_SIGINFO
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_SIGABRT,4,2                    ## @SIGABRT
	.comm	_SIGFPE,4,2                     ## @SIGFPE
	.comm	_SIGSEGV,4,2                    ## @SIGSEGV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not setup signal handler.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_signal_handler           ; -- Begin function setup_signal_handler
	.p2align	2
_setup_signal_handler:                  ; @setup_signal_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _handle_signal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handle_signal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SA_NODEFER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SA_NODEFER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SA_RESETHAND@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SA_RESETHAND@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _SA_SIGINFO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SA_SIGINFO@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w8, [sp, #8]
	str	w9, [sp]
	mov	x8, sp
	orr	x0, x8, #0x4
	bl	_sigemptyset
Lloh12:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
Lloh15:
	adrp	x8, _SIGILL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
Lloh18:
	adrp	x8, _SIGABRT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIGABRT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
Lloh21:
	adrp	x8, _SIGFPE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIGFPE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
Lloh24:
	adrp	x8, _SIGSEGV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIGSEGV@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.ne	LBB0_6
LBB0_5:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ELOG
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_handle_signal,4,2              ; @handle_signal
	.comm	_SA_NODEFER,4,2                 ; @SA_NODEFER
	.comm	_SA_RESETHAND,4,2               ; @SA_RESETHAND
	.comm	_SA_SIGINFO,4,2                 ; @SA_SIGINFO
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_SIGABRT,4,2                    ; @SIGABRT
	.comm	_SIGFPE,4,2                     ; @SIGFPE
	.comm	_SIGSEGV,4,2                    ; @SIGSEGV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not setup signal handler.\n"

.subsections_via_symbols
