	.file	"extr_tini.c_wait_and_forward_signal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unexpected error in sigtimedwait: '%s'"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Received SIGCHLD"
.LC2:
	.string	"Passing signal: '%s'"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Child was dead when forwarding signal"
	.align 8
.LC4:
	.string	"Unexpected error when forwarding signal: '%s'"
	.text
	.p2align 4
	.globl	wait_and_forward_signal
	.type	wait_and_forward_signal, @function
wait_and_forward_signal:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, ts[rip]
	mov	ebp, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rsi, 4[rsp]
	call	sigtimedwait@PLT
	cmp	eax, -1
	je	.L16
	mov	edi, DWORD PTR 4[rsp]
	cmp	edi, 128
	je	.L17
	call	strsignal@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	PRINT_DEBUG@PLT
	mov	eax, DWORD PTR kill_process_group[rip]
	mov	esi, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L6
	neg	ebp
.L6:
	mov	edi, ebp
	call	kill@PLT
	test	eax, eax
	je	.L14
	mov	edi, DWORD PTR errno[rip]
	cmp	edi, DWORD PTR ESRCH[rip]
	jne	.L8
	lea	rdi, .LC3[rip]
	call	PRINT_WARNING@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	PRINT_DEBUG@PLT
.L14:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	lea	eax, -129[rdi]
	cmp	eax, 1
	jbe	.L14
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	PRINT_FATAL@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	call	strerror@PLT
	lea	rdi, .LC4[rip]
	mov	esi, eax
	call	PRINT_FATAL@PLT
	mov	eax, 1
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wait_and_forward_signal, .-wait_and_forward_signal
	.comm	ts,4,4
	.comm	kill_process_group,4,4
	.comm	errno,4,4
	.comm	ESRCH,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_wait_and_forward_signal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unexpected error in sigtimedwait: '%s'\000"
	.align	2
.LC1:
	.ascii	"Received SIGCHLD\000"
	.align	2
.LC2:
	.ascii	"Passing signal: '%s'\000"
	.align	2
.LC3:
	.ascii	"Child was dead when forwarding signal\000"
	.align	2
.LC4:
	.ascii	"Unexpected error when forwarding signal: '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wait_and_forward_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_and_forward_signal, %function
wait_and_forward_signal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L22
	sub	sp, sp, #8
	mov	r4, r1
	ldr	r2, .L22+4
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	sigtimedwait
	cmn	r0, #1
	beq	.L19
	ldr	r0, [sp]
	cmp	r0, #128
	beq	.L20
	bl	strsignal
	mov	r1, r0
	ldr	r0, .L22+8
	bl	PRINT_DEBUG
	ldr	r3, .L22+12
	ldr	r1, [sp]
	ldr	r3, [r3]
	cmp	r3, #0
	rsbne	r4, r4, #0
	mov	r0, r4
	bl	kill
	cmp	r0, #0
	beq	.L17
	ldr	r2, .L22+16
	ldr	r3, .L22+20
	ldr	r0, [r2]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L8
	ldr	r0, .L22+24
	bl	PRINT_WARNING
	mov	r0, #0
	b	.L1
.L20:
	ldr	r0, .L22+28
	bl	PRINT_DEBUG
.L17:
	mov	r0, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L19:
	ldr	r3, .L22+16
	ldr	r0, [r3]
	sub	r3, r0, #129
	cmp	r3, #1
	bls	.L17
	bl	strerror
	mov	r1, r0
	ldr	r0, .L22+32
	bl	PRINT_FATAL
	mov	r0, #1
	b	.L1
.L8:
	bl	strerror
	mov	r1, r0
	ldr	r0, .L22+36
	bl	PRINT_FATAL
	mov	r0, #1
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	ts
	.word	.LC2
	.word	kill_process_group
	.word	errno
	.word	ESRCH
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.word	.LC4
	.size	wait_and_forward_signal, .-wait_and_forward_signal
	.comm	ts,4,4
	.comm	kill_process_group,4,4
	.comm	errno,4,4
	.comm	ESRCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
