	.file	"151747.c"
	.intel_syntax noprefix
	.text
	.globl	y
	.bss
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	mu
	.align 32
	.type	mu, @object
	.size	mu, 40
mu:
	.zero	40
	.text
	.globl	child_fn
	.type	child_fn, @function
child_fn:
.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
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, mu[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR v[rip]
	add	eax, 1
	mov	DWORD PTR v[rip], eax
	lea	rdi, mu[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR y[rip]
	add	eax, 1
	mov	DWORD PTR y[rip], eax
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	child_fn, .-child_fn
	.section	.rodata
.LC0:
	.string	"pthread_create"
.LC1:
	.string	"pthread join"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 100000000
	lea	rax, -40[rbp]
	mov	ecx, 0
	lea	rdx, child_fn[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
	mov	eax, DWORD PTR y[rip]
	add	eax, 1
	mov	DWORD PTR y[rip], eax
	lea	rdi, mu[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR v[rip]
	add	eax, 1
	mov	DWORD PTR v[rip], eax
	lea	rdi, mu[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"151747.c"
	.text
	.global	y
	.bss
	.align	2
	.type	y, %object
	.size	y, 4
y:
	.space	4
	.global	v
	.align	2
	.type	v, %object
	.size	v, 4
v:
	.space	4
	.global	mu
	.align	2
	.type	mu, %object
	.size	mu, 24
mu:
	.space	24
	.text
	.align	2
	.global	child_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_fn, %function
child_fn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L3
	bl	pthread_mutex_lock
	ldr	r3, .L3+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L3+4
	str	r3, [r2]
	ldr	r0, .L3
	bl	pthread_mutex_unlock
	ldr	r3, .L3+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L3+8
	str	r3, [r2]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	mu
	.word	v
	.word	y
	.size	child_fn, .-child_fn
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pthread_create\000"
	.align	2
.LC1:
	.ascii	"pthread join\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L10+4
	str	r3, [fp, #-12]
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L10+8
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	ldr	r3, .L10+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+16
	str	r3, [r2]
	ldr	r0, .L10+20
	bl	pthread_mutex_lock
	ldr	r3, .L10+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+24
	str	r3, [r2]
	ldr	r0, .L10+20
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L10+28
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	100000000
	.word	child_fn
	.word	.LC0
	.word	y
	.word	mu
	.word	v
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
