	.file	"extr_MPMMtest.c_thread_spawn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pthread_create()"
.LC1:
	.string	"created pthread %p\n"
.LC2:
	.string	"calling %p(%p)\n"
.LC3:
	.string	"forked pid %d\n"
	.text
	.p2align 4
	.type	thread_spawn, @function
thread_spawn:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR threaded[rip], 0
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	je	.L2
	mov	rcx, rdx
	mov	rdx, rsi
	xor	esi, esi
	call	pthread_create@PLT
	test	rax, rax
	jne	.L15
	cmp	DWORD PTR verbose[rip], 1
	jg	.L16
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	fork@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jne	.L6
	cmp	DWORD PTR verbose[rip], 1
	jg	.L17
	mov	rdi, r13
	call	r12
	xor	edi, edi
	call	exit@PLT
.L6:
	cmp	DWORD PTR verbose[rip], 1
	jle	.L1
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdi, .LC3[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	cmp	DWORD PTR verbose[rip], 1
	jle	.L1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, r13
	mov	rsi, r12
	lea	rdi, .LC2[rip]
	call	printf@PLT
	mov	rdi, r13
	call	r12
	xor	edi, edi
	call	exit@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	thread_spawn, .-thread_spawn
	.comm	verbose,4,4
	.comm	threaded,8,8
	.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_MPMMtest.c_thread_spawn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pthread_create()\000"
	.align	2
.LC1:
	.ascii	"created pthread %p\012\000"
	.align	2
.LC2:
	.ascii	"calling %p(%p)\012\000"
	.align	2
.LC3:
	.ascii	"forked pid %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_spawn, %function
thread_spawn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r6, r1
	cmp	r3, #0
	mov	r4, r2
	mov	r5, r0
	beq	.L2
	mov	r3, r2
	mov	r2, r1
	mov	r1, #0
	bl	pthread_create
	cmp	r0, #0
	bne	.L16
.L3:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, #1
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r5]
	ldr	r0, .L18+8
	pop	{r4, r5, r6, r7, r8, lr}
	b	printf
.L2:
	bl	fork
	cmp	r0, #0
	ldr	r7, .L18+4
	str	r0, [r5, #4]
	bne	.L6
	ldr	r3, [r7]
	cmp	r3, #1
	bgt	.L17
	mov	r0, r4
	blx	r6
	mov	r0, #0
	bl	exit
.L6:
	ldr	r3, [r7]
	cmp	r3, #1
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r5, #4]
	ldr	r0, .L18+12
	pop	{r4, r5, r6, r7, r8, lr}
	b	printf
.L16:
	ldr	r1, .L18+16
	mov	r0, #1
	bl	err
	b	.L3
.L17:
	mov	r2, r4
	mov	r1, r6
	ldr	r0, .L18+20
	bl	printf
	mov	r0, r4
	blx	r6
	mov	r0, #0
	bl	exit
	b	.L6
.L19:
	.align	2
.L18:
	.word	threaded
	.word	verbose
	.word	.LC1
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.size	thread_spawn, .-thread_spawn
	.comm	verbose,4,4
	.comm	threaded,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
