	.file	"extr_reuse1.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	lea	r15, 16[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	rdi, r13
	lea	r14, 8[rsp]
	call	pthread_attr_init@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	esi, DWORD PTR PTHREAD_CREATE_JOINABLE[rip]
	mov	rdi, r13
	call	pthread_attr_setdetachstate@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	edx, DWORD PTR func[rip]
	xor	ecx, ecx
	mov	rsi, r13
	mov	DWORD PTR washere[rip], 0
	mov	rdi, r15
	call	pthread_create@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	rdx, r14
	call	pthread_join@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR 8[rsp]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	DWORD PTR washere[rip], 1
	sete	dil
	call	assert@PLT
	mov	r12, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR 24[rsp]
	cmp	DWORD PTR NUMTHREADS[rip], 1
	jle	.L2
	mov	ebp, 1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR func[rip]
	mov	rcx, rbp
	mov	rsi, r13
	mov	rdi, r15
	mov	DWORD PTR washere[rip], 0
	call	pthread_create@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	rdx, r14
	call	pthread_join@PLT
	xor	edi, edi
	cmp	DWORD PTR 8[rsp], ebp
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	DWORD PTR washere[rip], 1
	sete	dil
	call	assert@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdx, r12
	mov	rcx, rbx
	mov	rdi, QWORD PTR 16[rsp]
	call	pthread_equal@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rsp], r12
	sete	dil
	add	rbx, 1
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 24[rsp], rbx
	sete	dil
	add	rbp, 1
	call	assert@PLT
	cmp	DWORD PTR NUMTHREADS[rip], ebp
	mov	r12, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR 24[rsp]
	jg	.L3
.L2:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	washere,4,4
	.comm	func,4,4
	.comm	PTHREAD_CREATE_JOINABLE,4,4
	.comm	NUMTHREADS,4,4
	.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_reuse1.c_main.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, #0
	sub	sp, sp, #44
	ldr	r3, .L9
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	str	r6, [sp, #16]
	bl	pthread_attr_init
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L9+4
	add	r0, sp, #12
	ldr	r1, [r3]
	bl	pthread_attr_setdetachstate
	clz	r0, r0
	ldr	r10, .L9+8
	add	r4, sp, #20
	ldr	r9, .L9+12
	lsr	r0, r0, #5
	bl	assert
	mov	r3, r6
	ldr	r2, [r10]
	add	r1, sp, #12
	mov	r0, r4
	str	r6, [r9]
	bl	pthread_create
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldm	r4, {r0, r1}
	add	r2, sp, #16
	bl	pthread_join
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #16]
	ldr	fp, .L9+16
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r9]
	add	r7, sp, #28
	sub	r0, r0, #1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldm	r4, {r0, r1}
	ldr	r3, [fp]
	stm	r7, {r0, r1}
	cmp	r3, #1
	ldr	r8, [sp, #20]
	ldr	r5, [sp, #24]
	ble	.L2
	str	r6, [sp, #4]
	mov	r6, #1
.L3:
	ldr	ip, [sp, #4]
	mov	r3, r6
	ldr	r2, [r10]
	add	r1, sp, #12
	mov	r0, r4
	str	ip, [r9]
	bl	pthread_create
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldm	r4, {r0, r1}
	add	r2, sp, #16
	bl	pthread_join
	ldr	r0, [sp, #16]
	sub	r0, r0, r6
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r9]
	add	r6, r6, #1
	sub	r0, r0, #1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldm	r4, {r0, r1}
	str	r8, [sp, #28]
	str	r5, [sp, #32]
	ldm	r7, {r2, r3}
	bl	pthread_equal
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #20]
	add	r5, r5, #1
	sub	r0, r0, r8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #24]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldm	r4, {r0, r1}
	ldr	r3, [fp]
	stm	r7, {r0, r1}
	cmp	r3, r6
	ldr	r8, [sp, #20]
	ldr	r5, [sp, #24]
	bgt	.L3
.L2:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, #0
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	PTHREAD_CREATE_JOINABLE
	.word	func
	.word	washere
	.word	NUMTHREADS
	.size	main, .-main
	.comm	washere,4,4
	.comm	func,4,4
	.comm	PTHREAD_CREATE_JOINABLE,4,4
	.comm	NUMTHREADS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
