	.file	"extr_journal-remote-main.c_setup_signals.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_signals, @function
setup_signals:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	assert@PLT
	mov	ecx, DWORD PTR SIGTERM[rip]
	mov	edx, DWORD PTR SIGINT[rip]
	xor	esi, esi
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	mov	r8d, -1
	call	sigprocmask_many@PLT
	not	rax
	mov	rdi, rax
	shr	rdi, 63
	call	assert_se@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR SIGTERM[rip]
	xor	ecx, ecx
	lea	rsi, 8[rbp]
	mov	r8, rbp
	call	sd_event_add_signal@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR SIGINT[rip]
	mov	edi, DWORD PTR 4[rbp]
	xor	ecx, ecx
	mov	r8, rbp
	mov	rsi, rbp
	call	sd_event_add_signal@PLT
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
.L1:
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	setup_signals, .-setup_signals
	.comm	SIG_SETMASK,4,4
	.comm	SIGTERM,4,4
	.comm	SIGINT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_journal-remote-main.c_setup_signals.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_signals, %function
setup_signals:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r4, r0
	bl	assert
	mvn	r3, #0
	ldr	r5, .L5
	ldr	r1, .L5+4
	ldr	r6, .L5+8
	str	r3, [sp]
	ldr	r2, [r6]
	ldr	r3, [r5]
	ldr	r0, [r1]
	mov	r1, #0
	bl	sigprocmask_many
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	assert_se
	str	r4, [sp]
	mov	r3, #0
	ldr	r2, [r5]
	ldr	r0, [r4, #4]
	add	r1, r4, #8
	bl	sd_event_add_signal
	cmp	r0, #0
	blt	.L1
	str	r4, [sp]
	mov	r3, #0
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, [r4, #4]
	bl	sd_event_add_signal
	and	r0, r0, r0, asr #31
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	SIGTERM
	.word	SIG_SETMASK
	.word	SIGINT
	.size	setup_signals, .-setup_signals
	.comm	SIG_SETMASK,4,4
	.comm	SIGTERM,4,4
	.comm	SIGINT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
