	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_signals
_register_signals:                      ## @register_signals
	.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
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_sighup_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-16(%rbp), %rdi
	callq	_sigfillset
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_2:
	movq	_sigterm_handler@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -24(%rbp)
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_4:
	movq	(%rbx), %rax
	movq	%rax, -24(%rbp)
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_6:
	movq	_sigchld_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sighup_handler,8,3             ## @sighup_handler
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sigaction"

	.comm	_sigterm_handler,8,3            ## @sigterm_handler
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_sigchld_handler,8,3            ## @sigchld_handler
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.no_dead_strip	_register_signals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_signals
_register_signals:                      ; @register_signals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, sp
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
Lloh0:
	adrp	x8, _sighup_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sighup_handler@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
	add	x0, x19, #8
	bl	_sigfillset
Lloh3:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_2:
Lloh8:
	adrp	x19, _sigterm_handler@GOTPAGE
Lloh9:
	ldr	x19, [x19, _sigterm_handler@GOTPAGEOFF]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cbz	w0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_4:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh15:
	adrp	x8, _SIGINT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cbz	w0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_6:
Lloh20:
	adrp	x8, _sigchld_handler@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sigchld_handler@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh23:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	cbz	w0, LBB0_8
; %bb.7:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_sighup_handler,8,3             ; @sighup_handler
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sigaction"

	.comm	_sigterm_handler,8,3            ; @sigterm_handler
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_sigchld_handler,8,3            ; @sigchld_handler
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.no_dead_strip	_register_signals
.subsections_via_symbols
