	.file	"extr_tini.c_restore_signals.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Restoring child signal mask failed: '%s'"
	.align 8
.LC1:
	.string	"Restoring SIGTTIN handler failed: '%s'"
	.align 8
.LC2:
	.string	"Restoring SIGTTOU handler failed: '%s'"
	.text
	.p2align 4
	.globl	restore_signals
	.type	restore_signals, @function
restore_signals:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	esi, DWORD PTR 8[rdi]
	xor	edx, edx
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	call	sigprocmask@PLT
	test	rax, rax
	jne	.L9
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR SIGTTIN[rip]
	xor	edx, edx
	call	sigaction@PLT
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR SIGTTOU[rip]
	xor	edx, edx
	call	sigaction@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	PRINT_FATAL@PLT
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	PRINT_FATAL@PLT
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	call	PRINT_FATAL@PLT
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	restore_signals, .-restore_signals
	.comm	errno,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIGTTOU,4,4
	.comm	SIGTTIN,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_tini.c_restore_signals.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Restoring child signal mask failed: '%s'\000"
	.align	2
.LC1:
	.ascii	"Restoring SIGTTIN handler failed: '%s'\000"
	.align	2
.LC2:
	.ascii	"Restoring SIGTTOU handler failed: '%s'\000"
	.text
	.align	2
	.global	restore_signals
	.syntax unified
	.arm
	.fpu softvfp
	.type	restore_signals, %function
restore_signals:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	mov	r2, #0
	push	{r4, lr}
	ldr	r1, [r0, #8]
	mov	r4, r0
	ldr	r0, [r3]
	bl	sigprocmask
	subs	r2, r0, #0
	bne	.L10
	ldr	r3, .L12+4
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	sigaction
	subs	r2, r0, #0
	bne	.L11
	ldr	r3, .L12+8
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	sigaction
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r3, .L12+12
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L12+16
	bl	PRINT_FATAL
	mov	r0, #1
	pop	{r4, pc}
.L11:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L12+20
	bl	PRINT_FATAL
	mov	r0, #1
	pop	{r4, pc}
.L10:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L12+24
	bl	PRINT_FATAL
	mov	r0, #1
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	SIG_SETMASK
	.word	SIGTTIN
	.word	SIGTTOU
	.word	errno
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	restore_signals, .-restore_signals
	.comm	errno,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIGTTOU,4,4
	.comm	SIGTTIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
