	.file	"424935.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Thread %ld starting...\n"
.LC2:
	.string	"Thread %ld done. Result = %e\n"
	.text
	.globl	BusyWork
	.type	BusyWork, @function
BusyWork:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L3:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -20[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sin@PLT
	movsd	QWORD PTR -48[rbp], xmm0
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -20[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	tan@PLT
	mulsd	xmm0, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 999999
	jle	.L3
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	BusyWork, .-BusyWork
	.section	.rodata
.LC3:
	.string	"Main: creating thread %ld\n"
	.align 8
.LC4:
	.string	"ERROR; return code from pthread_create() is %d\n"
	.align 8
.LC5:
	.string	"ERROR; return code from pthread_join() is %d\n"
	.align 8
.LC6:
	.string	"Main: completed join with thread %ld having a status of %ld\n"
	.align 8
.LC7:
	.string	"Main: program completed. Exiting."
	.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	mov	QWORD PTR -104[rbp], 0
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -104[rbp]
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -104[rbp]
	sal	rax, 3
	lea	rdi, [rcx+rax]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	lea	rdx, BusyWork[rip]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	add	QWORD PTR -104[rbp], 1
.L5:
	cmp	QWORD PTR -104[rbp], 3
	jle	.L7
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	QWORD PTR -104[rbp], 0
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -96[rbp+rax*8]
	lea	rdx, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -104[rbp], 1
.L8:
	cmp	QWORD PTR -104[rbp], 3
	jle	.L10
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.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	"424935.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread %ld starting...\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"Thread %ld done. Result = %e\012\000"
	.text
	.align	2
	.global	BusyWork
	.syntax unified
	.arm
	.fpu softvfp
	.type	BusyWork, %function
BusyWork:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L2
.L3:
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	tan
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	ldr	r2, .L4+4
	cmp	r3, r2
	blt	.L3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	ldr	r0, .L4+8
	bl	printf
	ldr	r0, [fp, #-32]
	bl	pthread_exit
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	1000000
	.word	.LC1
	.size	BusyWork, .-BusyWork
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Main: creating thread %ld\012\000"
	.align	2
.LC3:
	.ascii	"ERROR; return code from pthread_create() is %d\012\000"
	.align	2
.LC4:
	.ascii	"ERROR; return code from pthread_join() is %d\012\000"
	.align	2
.LC5:
	.ascii	"Main: completed join with thread %ld having a statu"
	.ascii	"s of %ld\012\000"
	.align	2
.LC6:
	.ascii	"Main: program completed. Exiting.\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 = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #44
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L7
.L9:
	ldr	r1, [fp, #-68]
	ldr	r0, .L14+4
	bl	printf
	sub	r2, fp, #60
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-68]
	sub	r1, fp, #44
	ldr	r2, .L14+8
	bl	pthread_create
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L8
	ldr	r1, [fp, #-64]
	ldr	r0, .L14+12
	bl	printf
	mvn	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L7:
	ldr	r3, [fp, #-68]
	cmp	r3, #3
	ble	.L9
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L10
.L12:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-56]
	sub	r2, fp, #72
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L11
	ldr	r1, [fp, #-64]
	ldr	r0, .L14+16
	bl	printf
	mvn	r0, #0
	bl	exit
.L11:
	ldr	r3, [fp, #-72]
	mov	r2, r3
	ldr	r1, [fp, #-68]
	ldr	r0, .L14+20
	bl	printf
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L10:
	ldr	r3, [fp, #-68]
	cmp	r3, #3
	ble	.L12
	ldr	r0, .L14+24
	bl	puts
	mov	r0, #0
	bl	pthread_exit
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC2
	.word	BusyWork
	.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
