	.file	"503666.c"
	.intel_syntax noprefix
	.text
	.globl	g
	.bss
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	mut
	.align 32
	.type	mut, @object
	.size	mut, 40
mut:
	.zero	40
	.globl	cond
	.align 32
	.type	cond, @object
	.size	cond, 48
cond:
	.zero	48
	.section	.rodata
.LC0:
	.string	"the_stack_data/503666.c"
.LC1:
	.string	"g == 0"
.LC2:
	.string	"g != 1"
.LC3:
	.string	"g is %i"
	.text
	.globl	f1
	.type	f1, @function
f1:
.LFB0:
	.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, mut[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR g[rip], 1
	lea	rsi, mut[rip]
	lea	rdi, cond[rip]
	call	pthread_cond_wait@PLT
	mov	eax, DWORD PTR g[rip]
	test	eax, eax
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	eax, DWORD PTR g[rip]
	cmp	eax, 1
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 17
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	mov	eax, DWORD PTR g[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR g[rip], 0
	lea	rdi, mut[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	f1, .-f1
	.globl	f2
	.type	f2, @function
f2:
.LFB1:
	.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, mut[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR g[rip]
	test	eax, eax
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 26
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L6:
	mov	DWORD PTR g[rip], 0
	lea	rdi, cond[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mut[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	f2, .-f2
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, f1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 1
	call	sleep@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, f2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 3
__PRETTY_FUNCTION__.1:
	.string	"f1"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 3
__PRETTY_FUNCTION__.0:
	.string	"f2"
	.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	"503666.c"
	.text
	.comm	g,4,4
	.global	mut
	.bss
	.align	2
	.type	mut, %object
	.size	mut, 24
mut:
	.space	24
	.global	cond
	.align	3
	.type	cond, %object
	.size	cond, 48
cond:
	.space	48
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/503666.c\000"
	.align	2
.LC1:
	.ascii	"g == 0\000"
	.align	2
.LC2:
	.ascii	"g != 1\000"
	.align	2
.LC3:
	.ascii	"g is %i\000"
	.text
	.align	2
	.global	f1
	.syntax unified
	.arm
	.fpu softvfp
	.type	f1, %function
f1:
	@ 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, .L5
	bl	pthread_mutex_lock
	ldr	r3, .L5+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r1, .L5
	ldr	r0, .L5+8
	bl	pthread_cond_wait
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L5+12
	mov	r2, #16
	ldr	r1, .L5+16
	ldr	r0, .L5+20
	bl	__assert_fail
.L2:
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L3
	ldr	r3, .L5+12
	mov	r2, #17
	ldr	r1, .L5+16
	ldr	r0, .L5+24
	bl	__assert_fail
.L3:
	ldr	r3, .L5+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L5+28
	bl	printf
	ldr	r3, .L5+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L5
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	mut
	.word	g
	.word	cond
	.word	__PRETTY_FUNCTION__.5828
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	f1, .-f1
	.align	2
	.global	f2
	.syntax unified
	.arm
	.fpu softvfp
	.type	f2, %function
f2:
	@ 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, .L10
	bl	pthread_mutex_lock
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L10+8
	mov	r2, #26
	ldr	r1, .L10+12
	ldr	r0, .L10+16
	bl	__assert_fail
.L8:
	ldr	r3, .L10+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L10+20
	bl	pthread_cond_signal
	ldr	r0, .L10
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	mut
	.word	g
	.word	__PRETTY_FUNCTION__.5832
	.word	.LC0
	.word	.LC1
	.word	cond
	.size	f2, .-f2
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L15+4
	mov	r1, #0
	bl	pthread_create
	mov	r0, #1
	bl	sleep
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L15+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	f1
	.word	f2
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5828, %object
	.size	__PRETTY_FUNCTION__.5828, 3
__PRETTY_FUNCTION__.5828:
	.ascii	"f1\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5832, %object
	.size	__PRETTY_FUNCTION__.5832, 3
__PRETTY_FUNCTION__.5832:
	.ascii	"f2\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
