	.file	"883846.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"CHILD: started with arg=%d\n"
.LC1:
	.string	"CHILD: expected arg=%d\n"
.LC2:
	.string	"CHILD: returning %d\n"
	.text
	.globl	child_start_routine
	.type	child_start_routine, @function
child_start_routine:
.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
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -8[rbp], 305419896
	je	.L2
	mov	esi, 305419896
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 4
	jmp	.L4
.L2:
	mov	edi, 2
	call	sleep@PLT
	mov	esi, -2023406815
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2271560481
	call	pthread_exit@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	child_start_routine, .-child_start_routine
	.section	.rodata
.LC3:
	.string	"PARENT: started\n"
	.align 8
.LC4:
	.string	"PARENT: pthread_attr_init() returned %d\n"
	.align 8
.LC5:
	.string	"PARENT: calling pthread_start with arg=%d\n"
	.align 8
.LC6:
	.string	"PARENT: pthread_create() returned %d\n"
	.align 8
.LC7:
	.string	"PARENT pthread_join() returned %d\n"
.LC8:
	.string	"PARENT child exitted with %d\n"
	.align 8
.LC9:
	.string	"PARENT child thread did not exit with %d\n"
.LC10:
	.string	"PARENT returning success\n"
	.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	esi, 305419896
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -64[rbp]
	lea	rax, -80[rbp]
	mov	ecx, 305419896
	lea	rdx, child_start_routine[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 2271560481
	cmp	rax, rdx
	je	.L9
	mov	esi, -2023406815
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 5
	call	exit@PLT
.L9:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"883846.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CHILD: started with arg=%d\012\000"
	.align	2
.LC1:
	.ascii	"CHILD: expected arg=%d\012\000"
	.align	2
.LC2:
	.ascii	"CHILD: returning %d\012\000"
	.text
	.align	2
	.global	child_start_routine
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_start_routine, %function
child_start_routine:
	@ 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	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L5
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r2, .L5+4
	cmp	r3, r2
	beq	.L2
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	printf
	mov	r3, #4
	b	.L4
.L2:
	mov	r0, #2
	bl	sleep
	ldr	r1, .L5+12
	ldr	r0, .L5+16
	bl	printf
	ldr	r0, .L5+12
	bl	pthread_exit
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	305419896
	.word	.LC1
	.word	-2023406815
	.word	.LC2
	.size	child_start_routine, .-child_start_routine
	.section	.rodata
	.align	2
.LC3:
	.ascii	"PARENT: started\012\000"
	.align	2
.LC4:
	.ascii	"PARENT: pthread_attr_init() returned %d\012\000"
	.align	2
.LC5:
	.ascii	"PARENT: calling pthread_start with arg=%d\012\000"
	.align	2
.LC6:
	.ascii	"PARENT: pthread_create() returned %d\012\000"
	.align	2
.LC7:
	.ascii	"PARENT pthread_join() returned %d\012\000"
	.align	2
.LC8:
	.ascii	"PARENT child exitted with %d\012\000"
	.align	2
.LC9:
	.ascii	"PARENT child thread did not exit with %d\012\000"
	.align	2
.LC10:
	.ascii	"PARENT returning success\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L14+4
	bl	puts
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L8
	ldr	r1, [fp, #-48]
	ldr	r0, .L14+8
	bl	printf
	mov	r0, #1
	bl	exit
.L8:
	ldr	r1, .L14+12
	ldr	r0, .L14+16
	bl	printf
	sub	r1, fp, #44
	sub	r0, fp, #56
	ldr	r3, .L14+12
	ldr	r2, .L14+20
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [fp, #-48]
	ldr	r0, .L14+24
	bl	printf
	mov	r0, #2
	bl	exit
.L9:
	ldr	r3, [fp, #-56]
	sub	r2, fp, #52
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L10
	ldr	r1, [fp, #-48]
	ldr	r0, .L14+28
	bl	printf
	mov	r0, #3
	bl	exit
.L10:
	ldr	r3, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L14+32
	bl	printf
	ldr	r3, [fp, #-52]
	ldr	r2, .L14+36
	cmp	r3, r2
	beq	.L11
	ldr	r1, .L14+36
	ldr	r0, .L14+40
	bl	printf
	mov	r0, #5
	bl	exit
.L11:
	ldr	r0, .L14+44
	bl	puts
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC11
	.word	.LC3
	.word	.LC4
	.word	305419896
	.word	.LC5
	.word	child_start_routine
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	-2023406815
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
