	.file	"3261817.c"
	.intel_syntax noprefix
	.text
	.globl	mtx
	.bss
	.align 32
	.type	mtx, @object
	.size	mtx, 40
mtx:
	.zero	40
	.section	.rodata
.LC0:
	.string	"In second thread: starting\n"
.LC1:
	.string	"the_stack_data/3261817.c"
.LC2:
	.string	"0"
	.text
	.globl	threadMain
	.type	threadMain, @function
threadMain:
.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
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 23
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
	.cfi_endproc
.LFE6:
	.size	threadMain, .-threadMain
	.section	.rodata
	.align 8
.LC3:
	.string	"In the main thread: Waiting for second thread to be ready\n"
.LC4:
	.string	"In the main thread: Exiting\n"
	.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -172[rbp], 1
	jmp	.L3
.L4:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, 0
	mov	edi, eax
	call	sigaction@PLT
	mov	eax, DWORD PTR -24[rbp]
	or	eax, 268435456
	mov	DWORD PTR -24[rbp], eax
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sigaction@PLT
	add	DWORD PTR -172[rbp], 1
.L3:
	cmp	DWORD PTR -172[rbp], 64
	jle	.L4
	lea	rax, -168[rbp]
	mov	ecx, 0
	lea	rdx, threadMain[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 58
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
.L8:
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_trylock@PLT
	test	eax, eax
	jne	.L10
	lea	rdi, mtx[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L8
.L10:
	nop
	mov	edi, 3
	call	sleep@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
	.string	"threadMain"
	.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	"3261817.c"
	.text
	.global	mtx
	.bss
	.align	2
	.type	mtx, %object
	.size	mtx, 24
mtx:
	.space	24
	.section	.rodata
	.align	2
.LC0:
	.ascii	"In second thread: starting\012\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/3261817.c\000"
	.align	2
.LC2:
	.ascii	"0\000"
	.text
	.align	2
	.global	threadMain
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadMain, %function
threadMain:
	@ 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	r3, .L2
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	ldr	r0, .L2+8
	bl	pthread_mutex_lock
	ldr	r0, .L2+8
	bl	pthread_mutex_lock
	ldr	r3, .L2+12
	mov	r2, #23
	ldr	r1, .L2+16
	ldr	r0, .L2+20
	bl	__assert_fail
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.word	mtx
	.word	__PRETTY_FUNCTION__.6583
	.word	.LC1
	.word	.LC2
	.size	threadMain, .-threadMain
	.section	.rodata
	.align	2
.LC3:
	.ascii	"In the main thread: Waiting for second thread to be"
	.ascii	" ready\012\000"
	.align	2
.LC4:
	.ascii	"In the main thread: Exiting\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L5
.L6:
	sub	r3, fp, #148
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-152]
	bl	sigaction
	ldr	r3, [fp, #-16]
	orr	r3, r3, #268435456
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	sigaction
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L5:
	ldr	r3, [fp, #-152]
	cmp	r3, #64
	ble	.L6
	sub	r0, fp, #156
	mov	r3, #0
	ldr	r2, .L13+4
	mov	r1, #0
	bl	pthread_create
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r2, #58
	mov	r1, #1
	ldr	r0, .L13+12
	bl	fwrite
.L10:
	mov	r0, #1
	bl	sleep
	ldr	r0, .L13+16
	bl	pthread_mutex_trylock
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L13+16
	bl	pthread_mutex_unlock
	b	.L10
.L12:
	nop
	mov	r0, #3
	bl	sleep
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L13+20
	bl	fwrite
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	threadMain
	.word	stderr
	.word	.LC3
	.word	mtx
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6583, %object
	.size	__PRETTY_FUNCTION__.6583, 11
__PRETTY_FUNCTION__.6583:
	.ascii	"threadMain\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
