	.file	"237643251.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"tf(%ld): begin"
.LC1:
	.string	"tf(%ld): end"
	.text
	.type	tf, @function
tf:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	DWORD PTR -184[rbp], 10
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -176[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -184[rbp]
	mov	edi, eax
	call	sleep@PLT
	mov	DWORD PTR -184[rbp], eax
.L2:
	cmp	DWORD PTR -184[rbp], 0
	jg	.L3
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -176[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tf, .-tf
	.section	.rodata
.LC2:
	.string	"create failed"
.LC3:
	.string	"after create"
.LC4:
	.string	"join failed"
.LC5:
	.string	"after 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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 2
	mov	DWORD PTR -40[rbp], 0
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	rdx, rax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, tf[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L8
	jmp	.L9
.L10:
	mov	edi, 2
	call	sleep@PLT
	mov	DWORD PTR -36[rbp], eax
.L9:
	cmp	DWORD PTR -36[rbp], 0
	jg	.L10
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	add	DWORD PTR -40[rbp], 1
.L7:
	cmp	DWORD PTR -40[rbp], 1
	jle	.L11
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	rax, QWORD PTR -32[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L13
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	add	DWORD PTR -40[rbp], 1
.L12:
	cmp	DWORD PTR -40[rbp], 1
	jle	.L14
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"237643251.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tf(%ld): begin\000"
	.align	2
.LC1:
	.ascii	"tf(%ld): end\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tf, %function
tf:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-184]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-184]
	str	r3, [fp, #-172]
	mov	r3, #10
	str	r3, [fp, #-176]
	ldr	r2, [fp, #-184]
	sub	r3, fp, #168
	ldr	r1, .L6+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #168
	mov	r0, r3
	bl	puts
	b	.L2
.L3:
	ldr	r3, [fp, #-176]
	mov	r0, r3
	bl	sleep
	mov	r3, r0
	str	r3, [fp, #-176]
.L2:
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	bgt	.L3
	ldr	r2, [fp, #-184]
	sub	r3, fp, #168
	ldr	r1, .L6+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #168
	mov	r0, r3
	bl	puts
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	tf, .-tf
	.section	.rodata
	.align	2
.LC3:
	.ascii	"create failed\000"
	.align	2
.LC4:
	.ascii	"after create\000"
	.align	2
.LC5:
	.ascii	"join failed\000"
	.align	2
.LC6:
	.ascii	"after join\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L9
.L13:
	sub	r2, fp, #16
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r2, .L19+4
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	b	.L11
.L12:
	mov	r0, #2
	bl	sleep
	mov	r3, r0
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L12
	ldr	r0, .L19+8
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L9:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L13
	ldr	r0, .L19+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L14
.L16:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L19+16
	bl	puts
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L14:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L16
	ldr	r0, .L19+20
	bl	puts
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	tf
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
