	.file	"extr_pthread_vfork_test.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not sigaction(SIGCHLD)"
.LC1:
	.string	"sigprocmask"
.LC2:
	.string	"pthread_create"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR NUM_THREADS[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L4:
	lea	r13, -52[rbp]
	xor	esi, esi
	mov	edx, 4
	mov	r12, rsp
	mov	rdi, r13
	call	memset@PLT
	mov	eax, DWORD PTR sighandler[rip]
	xor	edx, edx
	mov	rsi, r13
	mov	edi, DWORD PTR SIGCHLD[rip]
	mov	DWORD PTR -52[rbp], eax
	call	sigaction@PLT
	add	eax, 1
	jne	.L5
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
.L5:
	lea	r13, -48[rbp]
	mov	rdi, r13
	call	sigemptyset@PLT
	mov	esi, DWORD PTR SIGCHLD[rip]
	mov	rdi, r13
	call	sigaddset@PLT
	mov	edi, DWORD PTR SIG_BLOCK[rip]
	xor	edx, edx
	mov	rsi, r13
	call	sigprocmask@PLT
	cmp	eax, -1
	je	.L22
.L6:
	mov	eax, DWORD PTR NUM_THREADS[rip]
	mov	DWORD PTR -44[rbp], 0
	test	eax, eax
	jle	.L7
	xor	eax, eax
	lea	rbx, -44[rbp]
	lea	r13, .LC2[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	cmp	eax, DWORD PTR NUM_THREADS[rip]
	mov	DWORD PTR -44[rbp], eax
	jge	.L7
.L9:
	cdqe
	mov	edx, DWORD PTR vfork_test[rip]
	xor	esi, esi
	mov	rcx, rbx
	lea	rdi, [r12+rax*4]
	call	pthread_create@PLT
	test	eax, eax
	je	.L8
	mov	rdx, r13
	mov	esi, eax
	mov	edi, 1
	call	errc@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	pause@PLT
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -24[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L22:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L6
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	vfork_test,4,4
	.comm	sighandler,4,4
	.comm	SIG_BLOCK,4,4
	.comm	SIGCHLD,4,4
	.comm	NUM_THREADS,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_pthread_vfork_test.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not sigaction(SIGCHLD)\000"
	.align	2
.LC1:
	.ascii	"sigprocmask\000"
	.align	2
.LC2:
	.ascii	"pthread_create\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	ldr	r4, .L17
	ldr	r2, .L17+4
	ldr	r3, [r4]
	ldr	r6, .L17+8
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	ldr	ip, [r2]
	sub	sp, sp, r3
	ldr	r3, .L17+12
	mov	r2, #0
	ldr	r0, [r6]
	sub	r1, fp, #36
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	str	ip, [fp, #-36]
	bl	sigaction
	cmn	r0, #1
	mov	r5, sp
	beq	.L14
.L2:
	sub	r0, fp, #32
	bl	sigemptyset
	ldr	r1, [r6]
	sub	r0, fp, #32
	bl	sigaddset
	ldr	r3, .L17+16
	mov	r2, #0
	ldr	r0, [r3]
	sub	r1, fp, #32
	bl	sigprocmask
	cmn	r0, #1
	beq	.L15
.L3:
	mov	r0, #0
	ldr	r3, [r4]
	str	r0, [fp, #-28]
	cmp	r3, r0
	ble	.L4
	ldr	r6, .L17+20
	ldr	r7, .L17+24
	b	.L6
.L5:
	ldr	r0, [fp, #-28]
	ldr	r3, [r4]
	add	r0, r0, #1
	cmp	r0, r3
	str	r0, [fp, #-28]
	bge	.L4
.L6:
	mov	r1, #0
	ldr	r2, [r6]
	add	r0, r5, r0, lsl #2
	sub	r3, fp, #28
	bl	pthread_create
	subs	r1, r0, #0
	beq	.L5
	mov	r2, r7
	mov	r0, #1
	bl	errc
	b	.L5
.L4:
	bl	pause
	ldr	r3, .L17+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, #0
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L14:
	ldr	r1, .L17+28
	mov	r0, #1
	bl	err
	b	.L2
.L15:
	ldr	r1, .L17+32
	mov	r0, #1
	bl	err
	b	.L3
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	NUM_THREADS
	.word	sighandler
	.word	SIGCHLD
	.word	.LC3
	.word	SIG_BLOCK
	.word	vfork_test
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.comm	vfork_test,4,4
	.comm	sighandler,4,4
	.comm	SIG_BLOCK,4,4
	.comm	SIGCHLD,4,4
	.comm	NUM_THREADS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
