	.file	"246694.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"thread 1"
	.text
	.type	start_fn1, @function
start_fn1:
.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	start_fn1, .-start_fn1
	.section	.rodata
.LC1:
	.string	"thread 2"
	.text
	.type	start_fn2, @function
start_fn2:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 2
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	start_fn2, .-start_fn2
	.section	.rodata
.LC2:
	.string	"pthread_create() 1, err: %s\n"
.LC3:
	.string	"pthread_create() 2, err: %s\n"
.LC4:
	.string	"pthread_join() 1"
.LC5:
	.string	"thread 1 exit code: %d\n"
.LC6:
	.string	"pthread_join() 2"
.LC7:
	.string	"thread 2 exit code: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, start_fn1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, start_fn2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L7
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.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	"246694.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"thread 1\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_fn1, %function
start_fn1:
	@ 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, .L2
	bl	puts
	mov	r0, #1
	bl	pthread_exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	start_fn1, .-start_fn1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"thread 2\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_fn2, %function
start_fn2:
	@ 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	puts
	mov	r0, #2
	bl	pthread_exit
.L6:
	.align	2
.L5:
	.word	.LC1
	.size	start_fn2, .-start_fn2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"pthread_create() 1, err: %s\012\000"
	.align	2
.LC3:
	.ascii	"pthread_create() 2, err: %s\012\000"
	.align	2
.LC4:
	.ascii	"pthread_join() 1\000"
	.align	2
.LC5:
	.ascii	"thread 1 exit code: %d\012\000"
	.align	2
.LC6:
	.ascii	"pthread_join() 2\000"
	.align	2
.LC7:
	.ascii	"thread 2 exit code: %d\012\000"
	.align	2
.LC8:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r0, fp, #32
	mov	r3, #0
	ldr	r2, .L13+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L13+8
	ldr	r4, [r3]
	ldr	r0, [fp, #-20]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	sub	r0, fp, #28
	mov	r3, #0
	ldr	r2, .L13+16
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L13+8
	ldr	r4, [r3]
	ldr	r0, [fp, #-20]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-32]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L13+24
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L13+28
	bl	printf
	ldr	r3, [fp, #-28]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L13+32
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L13+36
	bl	printf
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	start_fn1
	.word	stderr
	.word	.LC2
	.word	start_fn2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
