	.file	"48575492.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.section	.rodata
.LC0:
	.string	"abcdefghijklmnopqrstuvwxyz"
	.section	.data.rel.local,"aw"
	.align 8
	.type	buf, @object
	.size	buf, 8
buf:
	.quad	.LC0
	.globl	num_pthreads
	.data
	.align 4
	.type	num_pthreads, @object
	.size	num_pthreads, 4
num_pthreads:
	.long	20
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.long	15
	.globl	fd
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.long	1
	.globl	at
	.align 8
	.type	at, @object
	.size	at, 14
at:
	.string	"\033[%d;%dH%2d%c"
	.globl	clearscreen
	.align 8
	.type	clearscreen, @object
	.size	clearscreen, 8
clearscreen:
	.string	"\033[;H\033[J"
	.globl	eop
	.align 8
	.type	eop, @object
	.size	eop, 8
eop:
	.string	"\033[30;0H"
	.text
	.globl	new_thread
	.type	new_thread, @function
new_thread:
.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	DWORD PTR -12[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR buf[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -13[rbp], al
	movsx	edi, BYTE PTR -13[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rcx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 5[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	esi, DWORD PTR -12[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, at[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 250000
	mov	eax, 0
	call	usleep@PLT
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR count[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L3
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, eop[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	new_thread, .-new_thread
	.section	.rodata
.LC1:
	.string	"error creating a new thread \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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	lea	rdi, clearscreen[rip]
	call	fputs@PLT
	mov	eax, DWORD PTR num_pthreads[rip]
	sub	eax, 1
	cdqe
	mov	QWORD PTR -16[rbp], rax
	jmp	.L6
.L8:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, new_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	sub	QWORD PTR -16[rbp], 1
.L6:
	cmp	QWORD PTR -16[rbp], 0
	jns	.L8
	mov	edi, 0
	call	pthread_exit@PLT
	.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	"48575492.c"
	.text
	.global	buf
	.section	.rodata
	.align	2
.LC0:
	.ascii	"abcdefghijklmnopqrstuvwxyz\000"
	.data
	.align	2
	.type	buf, %object
	.size	buf, 4
buf:
	.word	.LC0
	.global	num_pthreads
	.align	2
	.type	num_pthreads, %object
	.size	num_pthreads, 4
num_pthreads:
	.word	20
	.global	count
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.word	15
	.global	fd
	.align	2
	.type	fd, %object
	.size	fd, 4
fd:
	.word	1
	.global	at
	.align	2
	.type	at, %object
	.size	at, 14
at:
	.ascii	"\033[%d;%dH%2d%c\000"
	.global	clearscreen
	.align	2
	.type	clearscreen, %object
	.size	clearscreen, 8
clearscreen:
	.ascii	"\033[;H\033[J\000"
	.global	eop
	.align	2
	.type	eop, %object
	.size	eop, 8
eop:
	.ascii	"\033[30;0H\000"
	.text
	.align	2
	.global	new_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_thread, %function
new_thread:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-41]
	ldr	r3, .L5+4
	ldr	ip, [r3]
	ldr	r3, [fp, #-40]
	add	lr, r3, #5
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	adds	r4, r2, r0
	adc	r5, r3, r1
	adds	r6, r4, #1
	adc	r7, r5, #0
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	str	r3, [sp, #12]
	ldr	r3, [fp, #-40]
	str	r3, [sp, #8]
	stm	sp, {r6-r7}
	mov	r2, lr
	ldr	r1, .L5+8
	mov	r0, ip
	bl	fprintf
	ldr	r0, .L5+12
	bl	usleep
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, .L5+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L3
	ldr	r3, .L5+4
	ldr	r3, [r3]
	ldr	r1, .L5+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L6:
	.align	2
.L5:
	.word	buf
	.word	stderr
	.word	at
	.word	250000
	.word	count
	.word	eop
	.size	new_thread, .-new_thread
	.section	.rodata
	.align	2
.LC1:
	.ascii	"error creating a new thread \012\000"
	.align	2
.LC2:
	.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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+8
	bl	fputs
	ldr	r3, .L12+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L8
.L10:
	ldr	r3, [fp, #-28]
	sub	r0, fp, #32
	ldr	r2, .L12+16
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L12+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_detach
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
.L8:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L10
	mov	r0, #0
	bl	pthread_exit
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	stderr
	.word	clearscreen
	.word	num_pthreads
	.word	new_thread
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
