	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_signals_init_main          ## -- Begin function fpm_signals_init_main
	.p2align	4, 0x90
_fpm_signals_init_main:                 ## @fpm_signals_init_main
	.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	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_sp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_fd_set_blocked
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	xorl	%esi, %esi
	callq	_fd_set_blocked
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_sig_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	%rbx, %rdi
	callq	_sigfillset
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_15
## %bb.10:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_15
## %bb.11:
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_15
## %bb.12:
	movq	_SIGUSR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_15
## %bb.13:
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_15
## %bb.14:
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_15
## %bb.16:
	movq	_ZLOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_zlog
	xorl	%eax, %eax
	callq	_fpm_signals_unblock
	sarq	$63, %rax
	jmp	LBB0_17
LBB0_5:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_15:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	callq	_zlog
	movl	$-1, %eax
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_sp,8,3                         ## @sp
	.comm	_ZLOG_SYSERROR,4,2              ## @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to init signals: socketpair()"

L_.str.1:                               ## @.str.1
	.asciz	"failed to init signals: fd_set_blocked()"

	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
L_.str.2:                               ## @.str.2
	.asciz	"falied to init signals: fcntl(F_SETFD, FD_CLOEXEC)"

	.comm	_sig_handler,4,2                ## @sig_handler
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_SIGUSR2,4,2                    ## @SIGUSR2
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
L_.str.3:                               ## @.str.3
	.asciz	"failed to init signals: sigaction()"

	.comm	_ZLOG_DEBUG,4,2                 ## @ZLOG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"Unblocking all signals"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_signals_init_main          ; -- Begin function fpm_signals_init_main
	.p2align	2
_fpm_signals_init_main:                 ; @fpm_signals_init_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x19, _sp@GOTPAGE
Lloh7:
	ldr	x19, [x19, _sp@GOTPAGEOFF]
	ldr	x3, [x19]
	mov	w2, #0
	bl	_socketpair
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_fd_set_blocked
	tbnz	x0, #63, LBB0_12
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w1, #0
	bl	_fd_set_blocked
	tbnz	x0, #63, LBB0_12
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh8:
	adrp	x20, _F_SETFD@GOTPAGE
Lloh9:
	ldr	x20, [x20, _F_SETFD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	adrp	x21, _FD_CLOEXEC@GOTPAGE
Lloh11:
	ldr	x21, [x21, _FD_CLOEXEC@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_fcntl
	tbnz	x0, #63, LBB0_14
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_fcntl
	tbnz	x0, #63, LBB0_14
; %bb.5:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh12:
	adrp	x8, _sig_handler@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sig_handler@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #8
	bl	_sigfillset
Lloh15:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_15
; %bb.6:
Lloh18:
	adrp	x8, _SIGINT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_15
; %bb.7:
Lloh21:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_15
; %bb.8:
Lloh24:
	adrp	x8, _SIGUSR2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIGUSR2@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_15
; %bb.9:
Lloh27:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_15
; %bb.10:
Lloh30:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_15
; %bb.11:
Lloh33:
	adrp	x8, _ZLOG_DEBUG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ZLOG_DEBUG@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_zlog
	bl	_fpm_signals_unblock
	asr	x0, x0, #63
	b	LBB0_17
LBB0_12:
Lloh38:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh43:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str@PAGE
Lloh47:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh48:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x1, l_.str.2@PAGE
Lloh52:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh53:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x1, l_.str.3@PAGE
Lloh57:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	bl	_zlog
	mov	w0, #-1
LBB0_17:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_sp,8,3                         ; @sp
	.comm	_ZLOG_SYSERROR,4,2              ; @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to init signals: socketpair()"

l_.str.1:                               ; @.str.1
	.asciz	"failed to init signals: fd_set_blocked()"

	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
l_.str.2:                               ; @.str.2
	.asciz	"falied to init signals: fcntl(F_SETFD, FD_CLOEXEC)"

	.comm	_sig_handler,4,2                ; @sig_handler
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_SIGUSR2,4,2                    ; @SIGUSR2
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
l_.str.3:                               ; @.str.3
	.asciz	"failed to init signals: sigaction()"

	.comm	_ZLOG_DEBUG,4,2                 ; @ZLOG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"Unblocking all signals"

.subsections_via_symbols
