	.file	"157748.c"
	.intel_syntax noprefix
	.text
	.globl	num_threads
	.data
	.align 4
	.type	num_threads, @object
	.size	num_threads, 4
num_threads:
	.long	1
	.globl	start
	.bss
	.align 16
	.type	start, @object
	.size	start, 16
start:
	.zero	16
	.text
	.globl	wait_for_time
	.type	wait_for_time, @function
wait_for_time:
.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	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L4:
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR start[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	cmp	rax, rdx
	jge	.L7
	mov	edi, 1
	call	usleep@PLT
	jmp	.L4
.L7:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	wait_for_time, .-wait_for_time
	.section	.rodata
.LC0:
	.string	"start thread: %ld\n"
.LC1:
	.string	"end thread: %ld\n"
	.text
	.globl	my_thread
	.type	my_thread, @function
my_thread:
.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, 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	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	wait_for_time
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	my_thread, .-my_thread
	.section	.rodata
.LC2:
	.string	"%d"
.LC3:
	.string	"num_threads = %d\n"
.LC4:
	.string	"/usr/lib64/libpthread.so.0"
.LC5:
	.string	"unable to dlopen: %s"
.LC6:
	.string	"pthread_create"
.LC7:
	.string	"unable to dlsym: %s"
.LC8:
	.string	"pthread_create failed"
.LC9:
	.string	"done"
	.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
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 1
	jle	.L11
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, num_threads[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jg	.L12
.L11:
	mov	DWORD PTR num_threads[rip], 1
.L12:
	mov	eax, DWORD PTR num_threads[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 0
	lea	rdi, start[rip]
	call	gettimeofday@PLT
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	dlopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L13
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L13:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L14
	lea	rdx, .LC6[rip]
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L14:
	mov	QWORD PTR -32[rbp], 1
	jmp	.L15
.L17:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -40[rbp]
	mov	r8, QWORD PTR -16[rbp]
	mov	rcx, rdx
	lea	rdx, my_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	r8
	test	eax, eax
	je	.L16
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L16:
	add	QWORD PTR -32[rbp], 1
.L15:
	mov	eax, DWORD PTR num_threads[rip]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jle	.L17
	mov	edi, 4
	call	wait_for_time
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"157748.c"
	.text
	.global	num_threads
	.data
	.align	2
	.type	num_threads, %object
	.size	num_threads, 4
num_threads:
	.word	1
	.comm	start,8,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wait_for_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_time, %function
wait_for_time:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L4:
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-16]
	ldr	r3, .L8+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	cmp	r2, r3
	bge	.L7
	mov	r0, #1
	bl	usleep
	b	.L4
.L7:
	nop
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	start
	.size	wait_for_time, .-wait_for_time
	.section	.rodata
	.align	2
.LC1:
	.ascii	"start thread: %ld\012\000"
	.align	2
.LC2:
	.ascii	"end thread: %ld\012\000"
	.text
	.align	2
	.global	my_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_thread, %function
my_thread:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L12
	bl	printf
	mov	r0, #2
	bl	wait_for_time
	ldr	r1, [fp, #-8]
	ldr	r0, .L12+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC2
	.size	my_thread, .-my_thread
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"num_threads = %d\012\000"
	.align	2
.LC5:
	.ascii	"/usr/lib64/libpthread.so.0\000"
	.align	2
.LC6:
	.ascii	"unable to dlopen: %s\000"
	.align	2
.LC7:
	.ascii	"pthread_create\000"
	.align	2
.LC8:
	.ascii	"unable to dlsym: %s\000"
	.align	2
.LC9:
	.ascii	"pthread_create failed\000"
	.align	2
.LC10:
	.ascii	"done\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L15
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L24+4
	ldr	r1, .L24+8
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L16
.L15:
	ldr	r3, .L24+4
	mov	r2, #1
	str	r2, [r3]
.L16:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+12
	bl	printf
	mov	r1, #0
	ldr	r0, .L24+16
	bl	gettimeofday
	mov	r1, #1
	ldr	r0, .L24+20
	bl	dlopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L17
	ldr	r2, .L24+20
	ldr	r1, .L24+24
	mov	r0, #1
	bl	err
.L17:
	ldr	r1, .L24+28
	ldr	r0, [fp, #-24]
	bl	dlsym
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L18
	ldr	r2, .L24+28
	ldr	r1, .L24+32
	mov	r0, #1
	bl	err
.L18:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L19
.L21:
	ldr	r3, [fp, #-28]
	sub	r0, fp, #32
	ldr	r4, [fp, #-20]
	ldr	r2, .L24+36
	mov	r1, #0
	blx	r4
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r1, .L24+40
	mov	r0, #1
	bl	errx
.L20:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L19:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L21
	mov	r0, #4
	bl	wait_for_time
	ldr	r0, .L24+44
	bl	puts
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC11
	.word	num_threads
	.word	.LC3
	.word	.LC4
	.word	start
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	my_thread
	.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
