	.file	"115375.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.ascii	"This"
	.string	" is a test for threads so we allow ther user to selection the number of threads which are used at any one time.  Independently the total number of rounds can be selected.  This is the total number of threads which will have run when the process terminates:"
.LC1:
	.string	"threads"
.LC2:
	.string	"NUMBER"
	.align 8
.LC3:
	.string	"Number of threads used at once"
.LC4:
	.string	"starts"
	.align 8
.LC5:
	.string	"Total number of working threads"
.LC6:
	.string	"toplevel"
	.align 8
.LC7:
	.string	"Number of toplevel threads which start the other threads; this implies --sync-join"
	.align 8
.LC8:
	.ascii	"Each thread can do one of two things: sleep or do work.  The"
	.ascii	" latter is 100% CPU bound.  The work load is the probability"
	.ascii	" a thread does work.  All values from zero to 100 (inclusive"
	.ascii	") are valid.  How often each thread repeats this can be dete"
	.ascii	"rmined by the number "
	.string	"of rounds.  The work cost determines how long each work session (not sleeping) takes.  If it is zero a thread would effectively nothing.  By setting the number of rounds to zero the thread does no work at all and pure thread creation times can be measured."
.LC9:
	.string	"workload"
.LC10:
	.string	"PERCENT"
	.align 8
.LC11:
	.string	"Percentage of time spent working"
.LC12:
	.string	"workcost"
	.align 8
.LC13:
	.string	"Factor in the cost of each round of working"
.LC14:
	.string	"rounds"
	.align 8
.LC15:
	.string	"Number of rounds each thread runs"
	.align 8
.LC16:
	.string	"There are a number of different methods how thread creation can be synchronized.  Synchronization is necessary since the number of concurrently running threads is limited."
.LC17:
	.string	"sync-signal"
	.align 8
.LC18:
	.string	"Synchronize using a signal (default)"
.LC19:
	.string	"sync-join"
	.align 8
.LC20:
	.string	"Synchronize using pthread_join"
	.align 8
.LC21:
	.string	"One parameter for each threads execution is the size of the stack.  If this parameter is not used the system's default stack size is used.  If many threads are used the stack size should be chosen quite small."
.LC22:
	.string	"stacksize"
.LC23:
	.string	"BYTES"
.LC24:
	.string	"Size of threads stack"
.LC25:
	.string	"guardsize"
	.align 8
.LC26:
	.string	"Size of stack guard area; must fit into the stack"
.LC27:
	.string	"Signal options:"
.LC28:
	.string	"to-thread"
.LC29:
	.string	"Send signal to main thread"
.LC30:
	.string	"to-process"
	.align 8
.LC31:
	.string	"Send signal to process (default)"
.LC32:
	.string	"Administrative options:"
.LC33:
	.string	"progress"
.LC34:
	.string	"Show signs of progress"
.LC35:
	.string	"timing"
	.align 8
.LC36:
	.string	"Measure time from startup to the last thread finishing"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	options, @object
	.size	options, 1008
options:
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC0
	.zero	8
	.quad	.LC1
	.long	116
	.zero	4
	.quad	.LC2
	.long	0
	.zero	4
	.quad	.LC3
	.zero	8
	.quad	.LC4
	.long	115
	.zero	4
	.quad	.LC2
	.long	0
	.zero	4
	.quad	.LC5
	.zero	8
	.quad	.LC6
	.long	304
	.zero	4
	.quad	.LC2
	.long	0
	.zero	4
	.quad	.LC7
	.zero	8
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC8
	.zero	8
	.quad	.LC9
	.long	119
	.zero	4
	.quad	.LC10
	.long	0
	.zero	4
	.quad	.LC11
	.zero	8
	.quad	.LC12
	.long	99
	.zero	4
	.quad	.LC2
	.long	0
	.zero	4
	.quad	.LC13
	.zero	8
	.quad	.LC14
	.long	114
	.zero	4
	.quad	.LC2
	.long	0
	.zero	4
	.quad	.LC15
	.zero	8
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC16
	.zero	8
	.quad	.LC17
	.long	302
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC18
	.zero	8
	.quad	.LC19
	.long	303
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC20
	.zero	8
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC21
	.zero	8
	.quad	.LC22
	.long	83
	.zero	4
	.quad	.LC23
	.long	0
	.zero	4
	.quad	.LC24
	.zero	8
	.quad	.LC25
	.long	103
	.zero	4
	.quad	.LC23
	.long	0
	.zero	4
	.quad	.LC26
	.zero	8
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC27
	.zero	8
	.quad	.LC28
	.long	300
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC29
	.zero	8
	.quad	.LC30
	.long	301
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC31
	.zero	8
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC32
	.zero	8
	.quad	.LC33
	.long	112
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC34
	.zero	8
	.quad	.LC35
	.long	84
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	.LC36
	.zero	8
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.zero	8
	.section	.data.rel.local,"aw"
	.align 32
	.type	argp, @object
	.size	argp, 56
argp:
	.quad	options
	.quad	parse_opt
	.zero	40
	.section	.rodata
.LC37:
	.string	"tst-argp1"
.LC38:
	.string	"--help"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 2
	lea	rax, .LC37[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC38[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	lea	rcx, -40[rbp]
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r9d, 0
	mov	r8, rcx
	mov	ecx, 0
	mov	esi, eax
	lea	rdi, argp[rip]
	call	argp_parse@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.type	parse_opt, @function
parse_opt:
.LFB1:
	.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	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, 7
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	parse_opt, .-parse_opt
	.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	"115375.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tst-argp1\000"
	.align	2
.LC1:
	.ascii	"--help\000"
	.text
	.section	.rodata
	.align	2
.LC3:
	.ascii	"This is a test for threads so we allow ther user to"
	.ascii	" selection the number of threads which are used at "
	.ascii	"any one time.  Independently the total number of ro"
	.ascii	"unds can be selected.  This is the total number of "
	.ascii	"threads which will have run when the process termin"
	.ascii	"ates:\000"
	.align	2
.LC4:
	.ascii	"threads\000"
	.align	2
.LC5:
	.ascii	"NUMBER\000"
	.align	2
.LC6:
	.ascii	"Number of threads used at once\000"
	.align	2
.LC7:
	.ascii	"starts\000"
	.align	2
.LC8:
	.ascii	"Total number of working threads\000"
	.align	2
.LC9:
	.ascii	"toplevel\000"
	.align	2
.LC10:
	.ascii	"Number of toplevel threads which start the other th"
	.ascii	"reads; this implies --sync-join\000"
	.align	2
.LC11:
	.ascii	"Each thread can do one of two things: sleep or do w"
	.ascii	"ork.  The latter is 100% CPU bound.  The work load "
	.ascii	"is the probability a thread does work.  All values "
	.ascii	"from zero to 100 (inclusive) are valid.  How often "
	.ascii	"each thread repeats this can be determined by the n"
	.ascii	"umber of rounds.  The work cost determines how long"
	.ascii	" each work session (not sleeping) takes.  If it is "
	.ascii	"zero a thread would effectively nothing.  By settin"
	.ascii	"g the number of rounds to zero the thread does no w"
	.ascii	"ork at all and pure thread creation times can be me"
	.ascii	"asured.\000"
	.align	2
.LC12:
	.ascii	"workload\000"
	.align	2
.LC13:
	.ascii	"PERCENT\000"
	.align	2
.LC14:
	.ascii	"Percentage of time spent working\000"
	.align	2
.LC15:
	.ascii	"workcost\000"
	.align	2
.LC16:
	.ascii	"Factor in the cost of each round of working\000"
	.align	2
.LC17:
	.ascii	"rounds\000"
	.align	2
.LC18:
	.ascii	"Number of rounds each thread runs\000"
	.align	2
.LC19:
	.ascii	"There are a number of different methods how thread "
	.ascii	"creation can be synchronized.  Synchronization is n"
	.ascii	"ecessary since the number of concurrently running t"
	.ascii	"hreads is limited.\000"
	.align	2
.LC20:
	.ascii	"sync-signal\000"
	.align	2
.LC21:
	.ascii	"Synchronize using a signal (default)\000"
	.align	2
.LC22:
	.ascii	"sync-join\000"
	.align	2
.LC23:
	.ascii	"Synchronize using pthread_join\000"
	.align	2
.LC24:
	.ascii	"One parameter for each threads execution is the siz"
	.ascii	"e of the stack.  If this parameter is not used the "
	.ascii	"system's default stack size is used.  If many threa"
	.ascii	"ds are used the stack size should be chosen quite s"
	.ascii	"mall.\000"
	.align	2
.LC25:
	.ascii	"stacksize\000"
	.align	2
.LC26:
	.ascii	"BYTES\000"
	.align	2
.LC27:
	.ascii	"Size of threads stack\000"
	.align	2
.LC28:
	.ascii	"guardsize\000"
	.align	2
.LC29:
	.ascii	"Size of stack guard area; must fit into the stack\000"
	.align	2
.LC30:
	.ascii	"Signal options:\000"
	.align	2
.LC31:
	.ascii	"to-thread\000"
	.align	2
.LC32:
	.ascii	"Send signal to main thread\000"
	.align	2
.LC33:
	.ascii	"to-process\000"
	.align	2
.LC34:
	.ascii	"Send signal to process (default)\000"
	.align	2
.LC35:
	.ascii	"Administrative options:\000"
	.align	2
.LC36:
	.ascii	"progress\000"
	.align	2
.LC37:
	.ascii	"Show signs of progress\000"
	.align	2
.LC38:
	.ascii	"timing\000"
	.align	2
.LC39:
	.ascii	"Measure time from startup to the last thread finish"
	.ascii	"ing\000"
	.align	2
	.type	options, %object
	.size	options, 504
options:
	.word	0
	.word	0
	.word	0
	.word	0
	.word	.LC3
	.space	4
	.word	.LC4
	.word	116
	.word	.LC5
	.word	0
	.word	.LC6
	.space	4
	.word	.LC7
	.word	115
	.word	.LC5
	.word	0
	.word	.LC8
	.space	4
	.word	.LC9
	.word	304
	.word	.LC5
	.word	0
	.word	.LC10
	.space	4
	.word	0
	.word	0
	.word	0
	.word	0
	.word	.LC11
	.space	4
	.word	.LC12
	.word	119
	.word	.LC13
	.word	0
	.word	.LC14
	.space	4
	.word	.LC15
	.word	99
	.word	.LC5
	.word	0
	.word	.LC16
	.space	4
	.word	.LC17
	.word	114
	.word	.LC5
	.word	0
	.word	.LC18
	.space	4
	.word	0
	.word	0
	.word	0
	.word	0
	.word	.LC19
	.space	4
	.word	.LC20
	.word	302
	.word	0
	.word	0
	.word	.LC21
	.space	4
	.word	.LC22
	.word	303
	.word	0
	.word	0
	.word	.LC23
	.space	4
	.word	0
	.word	0
	.word	0
	.word	0
	.word	.LC24
	.space	4
	.word	.LC25
	.word	83
	.word	.LC26
	.word	0
	.word	.LC27
	.space	4
	.word	.LC28
	.word	103
	.word	.LC26
	.word	0
	.word	.LC29
	.space	4
	.word	0
	.word	0
	.word	0
	.word	0
	.word	.LC30
	.space	4
	.word	.LC31
	.word	300
	.word	0
	.word	0
	.word	.LC32
	.space	4
	.word	.LC33
	.word	301
	.word	0
	.word	0
	.word	.LC34
	.space	4
	.word	0
	.word	0
	.word	0
	.word	0
	.word	.LC35
	.space	4
	.word	.LC36
	.word	112
	.word	0
	.word	0
	.word	.LC37
	.space	4
	.word	.LC38
	.word	84
	.word	0
	.word	0
	.word	.LC39
	.space	4
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.space	4
	.data
	.align	2
	.type	argp, %object
	.size	argp, 28
argp:
	.word	options
	.word	parse_opt
	.space	20
	.section	.rodata
	.align	2
.LC40:
	.word	.LC0
	.word	.LC1
	.word	0
	.align	2
.LC41:
	.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, #32
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-24]
	ldr	r2, .L4+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r2, fp, #20
	mov	r3, #0
	str	r3, [sp, #4]
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-24]
	ldr	r0, .L4+8
	bl	argp_parse
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC41
	.word	.LC40
	.word	argp
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_opt, %function
parse_opt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #7
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	parse_opt, .-parse_opt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
