	.file	"1121032.c"
	.intel_syntax noprefix
	.text
	.globl	gt_var
	.section	.tbss,"awT",@nobits
	.align 4
	.type	gt_var, @object
	.size	gt_var, 4
gt_var:
	.zero	4
	.text
	.globl	bump_tls_var
	.type	bump_tls_var, @function
bump_tls_var:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	edx, DWORD PTR fs:gt_var@tpoff
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR fs:gt_var@tpoff, eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	bump_tls_var, .-bump_tls_var
	.globl	thread_proc
	.type	thread_proc, @function
thread_proc:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, eax
	call	bump_tls_var
	add	QWORD PTR -16[rbp], 1
.L3:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L4
	mov	eax, DWORD PTR fs:gt_var@tpoff
	cdqe
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thread_proc, .-thread_proc
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: tls_perf [-t num_threads] [-n num_iter]\n"
.LC1:
	.string	"n:t:"
	.align 8
.LC2:
	.string	"\nTest results for TLS performance, %u threads, %u iterations\n\n"
.LC3:
	.string	"  start time %12u.%06u\n"
.LC4:
	.string	"    end time %12u.%06u\n"
.LC5:
	.string	"elapsed time %12u.%06u\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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -96[rbp], 1
	mov	QWORD PTR -88[rbp], 10000000
	jmp	.L7
.L12:
	cmp	DWORD PTR -100[rbp], 110
	je	.L8
	cmp	DWORD PTR -100[rbp], 116
	je	.L9
	jmp	.L23
.L8:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -88[rbp], rax
	jmp	.L7
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -96[rbp], rax
	jmp	.L7
.L23:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L21
.L7:
	mov	rcx, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L12
	mov	rax, QWORD PTR -96[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L13
	mov	eax, 2
	jmp	.L21
.L13:
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	je	.L14
	mov	eax, 3
	jmp	.L21
.L14:
	mov	QWORD PTR -80[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rdi, [rcx+rdx]
	mov	rcx, rax
	lea	rdx, thread_proc[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	QWORD PTR -80[rbp], 1
.L15:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jb	.L16
	mov	QWORD PTR -80[rbp], 0
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	QWORD PTR -80[rbp], 1
.L17:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jb	.L18
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	je	.L19
	mov	eax, 4
	jmp	.L21
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	sub	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	jns	.L20
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1000000
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	mov	QWORD PTR -32[rbp], rax
.L20:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"1121032.c"
	.text
	.global	gt_var
	.section	.tbss,"awT",%nobits
	.align	2
	.type	gt_var, %object
	.size	gt_var, 4
gt_var:
	.space	4
	.text
	.align	2
	.global	bump_tls_var
	.syntax unified
	.arm
	.fpu softvfp
	.type	bump_tls_var, %function
bump_tls_var:
	@ 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]
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r3, r0
	ldr	r2, .L2
	ldr	r2, [r3, r2]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r2, r0
	ldr	r1, .L2
	str	r3, [r2, r1]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	gt_var(tpoff)
	.size	bump_tls_var, .-bump_tls_var
	.align	2
	.global	thread_proc
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_proc, %function
thread_proc:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	bump_tls_var
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L6
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r3, r0
	ldr	r2, .L8
	ldr	r3, [r3, r2]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	gt_var(tpoff)
	.size	thread_proc, .-thread_proc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: tls_perf [-t num_threads] [-n num_iter]\012\000"
	.align	2
.LC1:
	.ascii	"n:t:\000"
	.align	2
.LC2:
	.ascii	"\012Test results for TLS performance, %u threads, %"
	.ascii	"u iterations\012\012\000"
	.align	2
.LC3:
	.ascii	"  start time %12u.%06u\012\000"
	.align	2
.LC4:
	.ascii	"    end time %12u.%06u\012\000"
	.align	2
.LC5:
	.ascii	"elapsed time %12u.%06u\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, .L28+4
	str	r3, [fp, #-48]
	b	.L11
.L16:
	ldr	r3, [fp, #-40]
	cmp	r3, #110
	beq	.L12
	ldr	r3, [fp, #-40]
	cmp	r3, #116
	beq	.L13
	b	.L27
.L12:
	ldr	r3, .L28+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-48]
	b	.L11
.L13:
	ldr	r3, .L28+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-52]
	b	.L11
.L27:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L28+16
	bl	fwrite
	mov	r3, #1
	b	.L25
.L11:
	ldr	r2, .L28+20
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	getopt
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L16
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L17
	mov	r3, #2
	b	.L25
.L17:
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #3
	b	.L25
.L18:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L19
.L20:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r0, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, .L28+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L19:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcc	.L20
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L21
.L22:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L21:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcc	.L22
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	mov	r3, #4
	b	.L25
.L23:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L24
	ldr	r3, [fp, #-12]
	add	r3, r3, #999424
	add	r3, r3, #576
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L24:
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-52]
	ldr	r0, .L28+28
	bl	printf
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r3, [fp, #-28]
	mov	r2, r3
	ldr	r0, .L28+32
	bl	printf
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r0, .L28+36
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r3, [fp, #-12]
	mov	r2, r3
	ldr	r0, .L28+40
	bl	printf
	mov	r3, #0
.L25:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC6
	.word	10000000
	.word	optarg
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	thread_proc
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
