	.file	"31387250.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	thread_mutex, @object
	.size	thread_mutex, 40
thread_mutex:
	.long	0
	.long	0
	.long	0
	.long	0
	.long	2
	.value	0
	.value	0
	.quad	0
	.quad	0
	.section	.rodata
	.align 8
.LC0:
	.string	"[%d]pthread_mutex_lock returned:%d %m\n"
	.text
	.type	lock, @function
lock:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, thread_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L3
	call	getpid@PLT
	mov	esi, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	lock, .-lock
	.section	.rodata
	.align 8
.LC1:
	.string	"[%d]pthread_mutex_unlock returned:%d %m\n"
	.text
	.type	unlock, @function
unlock:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, thread_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L6
	call	getpid@PLT
	mov	esi, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	unlock, .-unlock
	.type	setup_atfork, @function
setup_atfork:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, unlock[rip]
	lea	rsi, unlock[rip]
	lea	rdi, lock[rip]
	call	pthread_atfork@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setup_atfork, .-setup_atfork
	.section	.init_array,"aw"
	.align 8
	.quad	setup_atfork
	.section	.rodata
.LC2:
	.string	"fork error\n"
.LC3:
	.string	"[%d]parent\n"
.LC4:
	.string	"[%d]child\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	call	fork@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	cmp	DWORD PTR -8[rbp], 0
	je	.L10
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L11
.L10:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -4[rbp], eax
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L11:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"31387250.c"
	.text
	.data
	.align	2
	.type	thread_mutex, %object
	.size	thread_mutex, 24
thread_mutex:
	.word	0
	.word	0
	.word	0
	.word	2
	.word	0
	.word	0
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[%d]pthread_mutex_lock returned:%d %m\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lock, %function
lock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r0, .L4
	bl	pthread_mutex_lock
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L4+4
	ldr	r4, [r3]
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-16]
	ldr	r1, .L4+8
	mov	r0, r4
	bl	fprintf
.L3:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	thread_mutex
	.word	stderr
	.word	.LC0
	.size	lock, .-lock
	.section	.rodata
	.align	2
.LC1:
	.ascii	"[%d]pthread_mutex_unlock returned:%d %m\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unlock, %function
unlock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r0, .L9
	bl	pthread_mutex_unlock
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L9+4
	ldr	r4, [r3]
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-16]
	ldr	r1, .L9+8
	mov	r0, r4
	bl	fprintf
.L8:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	thread_mutex
	.word	stderr
	.word	.LC1
	.size	unlock, .-unlock
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_atfork, %function
setup_atfork:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L12
	ldr	r1, .L12
	ldr	r0, .L12+4
	bl	pthread_atfork
	nop
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	unlock
	.word	lock
	.size	setup_atfork, .-setup_atfork
	.section	.init_array,"aw",%init_array
	.align	2
	.word	setup_atfork(target1)
	.section	.rodata
	.align	2
.LC2:
	.ascii	"fork error\012\000"
	.align	2
.LC3:
	.ascii	"[%d]parent\012\000"
	.align	2
.LC4:
	.ascii	"[%d]child\012\000"
	.text
	.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, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L15
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L19+4
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L19
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L19+8
	mov	r0, r4
	bl	fprintf
	b	.L17
.L16:
	ldr	r3, .L19
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L19+12
	mov	r0, r4
	bl	fprintf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	waitpid
	str	r0, [fp, #-16]
	ldr	r3, .L19
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L19+12
	mov	r0, r4
	bl	fprintf
.L17:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
