	.file	"161080702.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"cleanup:%s \n"
	.text
	.globl	clean
	.type	clean, @function
clean:
.LFB0:
	.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 -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	clean, .-clean
	.section	.rodata
.LC1:
	.string	"Thread1 start "
.LC2:
	.string	"thread1 first handler "
.LC3:
	.string	"thread1 second handler"
.LC4:
	.string	"thread1 push complete "
	.text
	.globl	thr_fn1
	.type	thr_fn1, @function
thr_fn1:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, clean[rip]
	mov	QWORD PTR -256[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -248[rbp], rax
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -264[rbp], eax
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -248[rbp]
	mov	rdx, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L5:
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rax, clean[rip]
	mov	QWORD PTR -240[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -232[rbp], rax
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -260[rbp], eax
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L6:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	cmp	QWORD PTR -280[rbp], 0
	je	.L7
	mov	eax, 1
	jmp	.L8
.L7:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdx, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	rdx
	mov	eax, 2
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	thr_fn1, .-thr_fn1
	.section	.rodata
.LC5:
	.string	"Thread2 start "
.LC6:
	.string	"thread2 first handler"
.LC7:
	.string	"thread2 second handler"
.LC8:
	.string	"thread2 push compLete "
	.text
	.globl	thr_fn2
	.type	thr_fn2, @function
thr_fn2:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, clean[rip]
	mov	QWORD PTR -256[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -248[rbp], rax
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -264[rbp], eax
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR -248[rbp]
	mov	rdx, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L12:
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rax, clean[rip]
	mov	QWORD PTR -240[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -232[rbp], rax
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -260[rbp], eax
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L13:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	cmp	QWORD PTR -280[rbp], 0
	je	.L14
	mov	eax, 3
	jmp	.L15
.L14:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	mov	eax, 4
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	thr_fn2, .-thr_fn2
	.section	.rodata
.LC9:
	.string	"Create thread error... "
.LC10:
	.string	"Create thread error..."
.LC11:
	.string	"Thread_join error..."
.LC12:
	.string	"Thread1 exit code: %d\n"
.LC13:
	.string	"Thread2 exit code: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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, 1
	lea	rdx, thr_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	.L18
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L23
.L18:
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, thr_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	.L20
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L23
.L20:
	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	.L21
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L23
.L21:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC12[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	.L22
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.weak	__pthread_unwind_next
	.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	"161080702.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cleanup:%s \012\000"
	.text
	.align	2
	.global	clean
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean, %function
clean:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L3
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	clean, .-clean
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Thread1 start \000"
	.align	2
.LC2:
	.ascii	"thread1 first handler \000"
	.align	2
.LC3:
	.ascii	"thread1 second handler\000"
	.align	2
.LC4:
	.ascii	"thread1 push complete \000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thr_fn1
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr_fn1, %function
thr_fn1:
	@ args = 0, pretend = 0, frame = 600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #600
	str	r0, [fp, #-600]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	puts
	ldr	r3, .L12+8
	str	r3, [fp, #-596]
	ldr	r3, .L12+12
	str	r3, [fp, #-592]
	sub	r3, fp, #572
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-596]
	ldr	r0, [fp, #-592]
	blx	r3
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_unwind_next
.L7:
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r3, .L12+8
	str	r3, [fp, #-588]
	ldr	r3, .L12+16
	str	r3, [fp, #-584]
	sub	r3, fp, #292
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-576]
	ldr	r3, [fp, #-576]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-588]
	ldr	r0, [fp, #-584]
	blx	r3
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unwind_next
.L8:
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r0, .L12+20
	bl	puts
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	beq	.L9
	mov	r3, #1
	b	.L10
.L9:
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unregister_cancel
	ldr	r3, [fp, #-588]
	ldr	r0, [fp, #-584]
	blx	r3
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_unregister_cancel
	ldr	r3, [fp, #-596]
	ldr	r0, [fp, #-592]
	blx	r3
	mov	r3, #2
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	.LC1
	.word	clean
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	thr_fn1, .-thr_fn1
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Thread2 start \000"
	.align	2
.LC7:
	.ascii	"thread2 first handler\000"
	.align	2
.LC8:
	.ascii	"thread2 second handler\000"
	.align	2
.LC9:
	.ascii	"thread2 push compLete \000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thr_fn2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr_fn2, %function
thr_fn2:
	@ args = 0, pretend = 0, frame = 600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #600
	str	r0, [fp, #-600]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L21+4
	bl	puts
	ldr	r3, .L21+8
	str	r3, [fp, #-596]
	ldr	r3, .L21+12
	str	r3, [fp, #-592]
	sub	r3, fp, #572
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-596]
	ldr	r0, [fp, #-592]
	blx	r3
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_unwind_next
.L16:
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r3, .L21+8
	str	r3, [fp, #-588]
	ldr	r3, .L21+16
	str	r3, [fp, #-584]
	sub	r3, fp, #292
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-576]
	ldr	r3, [fp, #-576]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-588]
	ldr	r0, [fp, #-584]
	blx	r3
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unwind_next
.L17:
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r0, .L21+20
	bl	puts
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	beq	.L18
	mov	r3, #3
	b	.L19
.L18:
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unregister_cancel
	ldr	r3, [fp, #-588]
	ldr	r0, [fp, #-584]
	blx	r3
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_unregister_cancel
	mov	r3, #4
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC10
	.word	.LC6
	.word	clean
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	thr_fn2, .-thr_fn2
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Create thread error... \000"
	.align	2
.LC12:
	.ascii	"Create thread error...\000"
	.align	2
.LC13:
	.ascii	"Thread_join error...\000"
	.align	2
.LC14:
	.ascii	"Thread1 exit code: %d\012\000"
	.align	2
.LC15:
	.ascii	"Thread2 exit code: %d\012\000"
	.align	2
.LC16:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #24
	mov	r3, #1
	ldr	r2, .L31+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L31+8
	bl	puts
	mvn	r3, #0
	b	.L29
.L24:
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L31+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L31+16
	bl	puts
	mvn	r3, #0
	b	.L29
.L26:
	ldr	r3, [fp, #-24]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L31+20
	bl	puts
	mvn	r3, #0
	b	.L29
.L27:
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L31+24
	bl	printf
	ldr	r3, [fp, #-20]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L28
	ldr	r0, .L31+20
	bl	puts
	mvn	r3, #0
	b	.L29
.L28:
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L31+28
	bl	printf
	mov	r3, #0
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC16
	.word	thr_fn1
	.word	.LC11
	.word	thr_fn2
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.weak	__pthread_unwind_next
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
