	.file	"106228.c"
	.intel_syntax noprefix
	.text
	.globl	th
	.section	.tbss,"awT",@nobits
	.align 4
	.type	th, @object
	.size	th, 4
th:
	.zero	4
	.text
	.globl	thread
	.type	thread, @function
thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR fs:th@tpoff, 1
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread, .-thread
	.section	.rodata
.LC0:
	.string	"pthread_create"
.LC1:
	.string	"pthread_join"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 96
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L4
.L12:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L5
.L8:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 3
	lea	r12, [rdx+rax]
	call	__errno_location@PLT
	mov	rbx, rax
	mov	ecx, 0
	lea	rdx, thread[rip]
	mov	esi, 0
	mov	rdi, r12
	call	pthread_create@PLT
	mov	DWORD PTR [rbx], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L6
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L6:
	add	DWORD PTR -104[rbp], 1
.L5:
	cmp	DWORD PTR -104[rbp], 7
	jle	.L8
	mov	DWORD PTR -100[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	r12, QWORD PTR -96[rbp+rax*8]
	call	__errno_location@PLT
	mov	rbx, rax
	mov	esi, 0
	mov	rdi, r12
	call	pthread_join@PLT
	mov	DWORD PTR [rbx], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L10
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L10:
	add	DWORD PTR -100[rbp], 1
.L9:
	cmp	DWORD PTR -100[rbp], 7
	jle	.L11
	add	DWORD PTR -108[rbp], 1
.L4:
	cmp	DWORD PTR -108[rbp], 9999
	jle	.L12
	mov	eax, 0
.L13:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	add	rsp, 96
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"106228.c"
	.text
	.global	th
	.section	.tbss,"awT",%nobits
	.align	2
	.type	th, %object
	.size	th, 4
th:
	.space	4
	.text
	.align	2
	.global	thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread, %function
thread:
	@ 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]
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r3, r0
	ldr	r2, .L3
	mov	r1, #1
	str	r1, [r3, r2]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	th(tpoff)
	.size	thread, .-thread
	.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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L6
.L14:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L7
.L10:
	sub	r2, fp, #48
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r5, r2, r3
	bl	__errno_location
	mov	r4, r0
	mov	r3, #0
	ldr	r2, .L17+4
	mov	r1, #0
	mov	r0, r5
	bl	pthread_create
	mov	r3, r0
	str	r3, [r4]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L17+8
	bl	perror
	mov	r3, #1
	b	.L15
.L8:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L7:
	ldr	r3, [fp, #-56]
	cmp	r3, #7
	ble	.L10
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L11
.L13:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r5, [r3, #-36]
	bl	__errno_location
	mov	r4, r0
	mov	r1, #0
	mov	r0, r5
	bl	pthread_join
	mov	r3, r0
	str	r3, [r4]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L17+12
	bl	perror
	mov	r3, #1
	b	.L15
.L12:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L11:
	ldr	r3, [fp, #-52]
	cmp	r3, #7
	ble	.L13
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L6:
	ldr	r3, [fp, #-60]
	ldr	r2, .L17+16
	cmp	r3, r2
	ble	.L14
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	thread
	.word	.LC0
	.word	.LC1
	.word	9999
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
