	.file	"556878.c"
	.intel_syntax noprefix
	.text
	.globl	args
	.bss
	.align 8
	.type	args, @object
	.size	args, 8
args:
	.zero	8
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 1
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, args[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rdx, 1
	lea	rcx, -16[rbp]
	sal	rdx, 3
	lea	rdi, [rcx+rdx]
	mov	rcx, rax
	lea	rdx, thread_function[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	add	QWORD PTR -24[rbp], 1
.L2:
	cmp	QWORD PTR -24[rbp], 1
	jle	.L3
	mov	DWORD PTR args[rip], 1
	mov	edi, 0
	call	thread_function
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	some_function
	.type	some_function, @function
some_function:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	call	usleep@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	some_function, .-some_function
	.globl	call_function
	.bss
	.align 4
	.type	call_function, @object
	.size	call_function, 4
call_function:
	.zero	4
	.text
	.globl	thread_function
	.type	thread_function, @function
thread_function:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, args[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR call_function[rip]
	test	eax, eax
	je	.L8
	call	some_function
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L9
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	thread_function, .-thread_function
	.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	"556878.c"
	.text
	.comm	args,8,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r2, .L5+4
	ldr	r3, [fp, #-20]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	sub	r2, fp, #12
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r2, .L5+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L3
	ldr	r3, .L5+4
	mov	r2, #1
	str	r2, [r3]
	mov	r0, #0
	bl	thread_function
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	args
	.word	thread_function
	.size	main, .-main
	.align	2
	.global	some_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	some_function, %function
some_function:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	bl	usleep
	nop
	pop	{fp, pc}
	.size	some_function, .-some_function
	.global	call_function
	.bss
	.align	2
	.type	call_function, %object
	.size	call_function, 4
call_function:
	.space	4
	.text
	.align	2
	.global	thread_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_function, %function
thread_function:
	@ 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, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L12
	add	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L9
.L11:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	bl	some_function
.L10:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L11
	mov	r0, #0
	bl	pthread_exit
.L13:
	.align	2
.L12:
	.word	args
	.word	call_function
	.size	thread_function, .-thread_function
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
