	.file	"800417.c"
	.intel_syntax noprefix
	.text
	.globl	shared_x
	.bss
	.align 8
	.type	shared_x, @object
	.size	shared_x, 8
shared_x:
	.zero	8
	.globl	lock_x
	.align 32
	.type	lock_x, @object
	.size	lock_x, 40
lock_x:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"hello from thr_func, thread id: %d\n"
.LC1:
	.string	"x = %f\n"
	.text
	.globl	thr_func
	.type	thr_func, @function
thr_func:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, lock_x[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR 8[rax]
	movsd	xmm0, QWORD PTR shared_x[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR shared_x[rip], xmm0
	mov	rax, QWORD PTR shared_x[rip]
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, lock_x[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	thr_func, .-thr_func
	.section	.rodata
	.align 8
.LC3:
	.string	"error: pthread_create, rc: %d\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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR shared_x[rip], xmm0
	mov	esi, 0
	lea	rdi, lock_x[rip]
	call	pthread_mutex_init@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -96[rax]
	mov	eax, DWORD PTR -152[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -152[rbp]
	lea	edx, 1[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 88
	movsd	QWORD PTR [rax], xmm0
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thr_func[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -148[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L9
.L4:
	add	DWORD PTR -152[rbp], 1
.L3:
	cmp	DWORD PTR -152[rbp], 4
	jle	.L6
	mov	DWORD PTR -152[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -152[rbp], 1
.L7:
	cmp	DWORD PTR -152[rbp], 4
	jle	.L8
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"800417.c"
	.text
	.comm	shared_x,8,8
	.comm	lock_x,24,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"hello from thr_func, thread id: %d\012\000"
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"x = %f\012\000"
	.text
	.align	2
	.global	thr_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr_func, %function
thr_func:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L2
	bl	printf
	ldr	r0, .L2+4
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r3, .L2+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L2+8
	stm	r1, {r2-r3}
	ldr	r3, .L2+8
	ldmia	r3, {r2-r3}
	ldr	r0, .L2+12
	bl	printf
	ldr	r0, .L2+4
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	pthread_exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	lock_x
	.word	shared_x
	.word	.LC1
	.size	thr_func, .-thr_func
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC2:
	.ascii	"error: pthread_create, rc: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L13+4
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r1, #0
	ldr	r0, .L13+8
	bl	pthread_mutex_init
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L5
.L8:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-120]
	str	r2, [r3, #-88]
	ldr	r3, [fp, #-120]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-120]
	lsl	r1, r1, #4
	sub	r0, fp, #4
	add	r1, r0, r1
	sub	r1, r1, #80
	stm	r1, {r2-r3}
	sub	r2, fp, #112
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #92
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, .L13+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L13+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-116]
	ldr	r1, .L13+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L11
.L6:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L5:
	ldr	r3, [fp, #-120]
	cmp	r3, #4
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L9
.L10:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-108]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L9:
	ldr	r3, [fp, #-120]
	cmp	r3, #4
	ble	.L10
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	shared_x
	.word	lock_x
	.word	thr_func
	.word	stderr
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
