	.file	"extr_progress.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PROGRESS_ARGS"
.LC1:
	.string	"%s %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Unable to parse PROGRESS_ARGS environment variable.\n"
	.section	.rodata.str1.1
.LC3:
	.string	""
.LC4:
	.string	"Error initialising ncurses.\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	populate_proc_names@PLT
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR 0[rbp]
	mov	r12, rax
	call	strlen@PLT
	mov	rdi, r12
	mov	ebx, eax
	call	strlen@PLT
	lea	edi, 2[rbx+rax]
	call	malloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	r14, rax
	setne	dil
	call	assert@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rdi, r14
	mov	rcx, r12
	lea	rsi, .LC1[rip]
	call	sprintf@PLT
	xor	edx, edx
	lea	rsi, 16[rsp]
	mov	rdi, r14
	call	wordexp@PLT
	test	rax, rax
	jne	.L25
.L3:
	mov	rsi, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR 16[rsp]
	call	parse_options@PLT
.L2:
	mov	rsi, rbp
	mov	edi, r13d
	call	parse_options@PLT
	mov	esi, DWORD PTR TIOCGWINSZ[rip]
	mov	edi, DWORD PTR STDOUT_FILENO[rip]
	lea	rdx, 4[rsp]
	call	ioctl@PLT
	mov	rax, QWORD PTR flag_monitor[rip]
	or	rax, QWORD PTR flag_monitor_continuous[rip]
	je	.L4
	mov	edi, DWORD PTR LC_CTYPE[rip]
	lea	rsi, .LC3[rip]
	call	setlocale@PLT
	xor	eax, eax
	call	initscr@PLT
	mov	QWORD PTR mainwin[rip], rax
	test	rax, rax
	je	.L26
.L5:
	mov	eax, DWORD PTR flag_throughput[rip]
	test	eax, eax
	je	.L27
.L6:
	mov	edi, DWORD PTR throughput_wait_secs[rip]
	lea	rbx, 8[rsp]
	call	set_hlist_size@PLT
	mov	esi, DWORD PTR int_handler[rip]
	mov	edi, DWORD PTR SIGINT[rip]
	call	signal@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbx
	call	monitor_processes@PLT
	xor	eax, eax
	call	refresh@PLT
	cmp	QWORD PTR flag_monitor_continuous[rip], 0
	je	.L8
	cmp	QWORD PTR 8[rsp], 0
	jne	.L7
	imul	edi, DWORD PTR throughput_wait_secs[rip], 1000000
	call	usleep@PLT
	cmp	QWORD PTR flag_monitor[rip], 0
	jne	.L10
.L23:
	mov	rax, QWORD PTR flag_monitor_continuous[rip]
	test	rax, rax
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
	call	endwin@PLT
.L12:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmp	QWORD PTR flag_monitor[rip], 0
	je	.L13
.L10:
	cmp	QWORD PTR 8[rsp], 0
	je	.L23
	jmp	.L7
.L27:
	mov	DWORD PTR flag_throughput[rip], 1
	mov	DWORD PTR throughput_wait_secs[rip], 1
	jmp	.L6
.L4:
	mov	edi, DWORD PTR throughput_wait_secs[rip]
	call	set_hlist_size@PLT
	lea	rdi, 8[rsp]
	call	monitor_processes@PLT
	jmp	.L12
.L25:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L3
.L26:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L5
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	throughput_wait_secs,4,4
	.comm	stderr,4,4
	.comm	mainwin,8,8
	.comm	int_handler,4,4
	.comm	flag_throughput,4,4
	.comm	flag_monitor_continuous,8,8
	.comm	flag_monitor,8,8
	.comm	TIOCGWINSZ,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	SIGINT,4,4
	.comm	LC_CTYPE,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_progress.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PROGRESS_ARGS\000"
	.align	2
.LC1:
	.ascii	"%s %s\000"
	.align	2
.LC2:
	.ascii	"Unable to parse PROGRESS_ARGS environment variable."
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"Error initialising ncurses.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L30
	sub	sp, sp, #28
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r0
	bl	populate_proc_names
	ldr	r0, .L30+4
	bl	getenv
	subs	r5, r0, #0
	beq	.L2
	ldr	r0, [r4]
	bl	strlen
	mov	r7, r0
	mov	r0, r5
	bl	strlen
	add	r0, r7, r0
	add	r0, r0, #2
	bl	malloc
	mov	r7, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mov	r3, r5
	ldr	r2, [r4]
	ldr	r1, .L30+8
	mov	r0, r7
	bl	sprintf
	mov	r0, r7
	mov	r2, #0
	add	r1, sp, #12
	bl	wordexp
	cmp	r0, #0
	bne	.L27
.L3:
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	bl	parse_options
.L2:
	mov	r1, r4
	mov	r0, r6
	bl	parse_options
	ldr	r3, .L30+12
	ldr	r2, .L30+16
	ldr	r5, .L30+20
	ldr	r4, .L30+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	add	r2, sp, #8
	bl	ioctl
	ldr	r2, [r5]
	ldr	r3, [r4]
	orrs	r3, r2, r3
	beq	.L4
	ldr	r3, .L30+28
	ldr	r1, .L30+32
	ldr	r0, [r3]
	bl	setlocale
	bl	initscr
	ldr	r3, .L30+36
	cmp	r0, #0
	str	r0, [r3]
	beq	.L28
.L5:
	ldr	r3, .L30+40
	ldr	r2, [r3]
	cmp	r2, #0
	moveq	r2, #1
	ldreq	r6, .L30+44
	ldrne	r6, .L30+44
	streq	r2, [r6]
	ldr	r0, [r6]
	streq	r2, [r3]
	bl	set_hlist_size
	ldr	r2, .L30+48
	ldr	r3, .L30+52
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	signal
.L7:
	add	r0, sp, #4
	bl	monitor_processes
	bl	refresh
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L7
	ldr	r0, [r6]
	rsb	r3, r0, r0, lsl #5
	rsb	r3, r3, r3, lsl #6
	add	r0, r0, r3, lsl #3
	lsl	r0, r0, #6
	bl	usleep
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L10
.L25:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L7
.L13:
	bl	endwin
.L12:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L13
.L10:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L25
	b	.L7
.L4:
	ldr	r3, .L30+44
	ldr	r0, [r3]
	bl	set_hlist_size
	add	r0, sp, #4
	bl	monitor_processes
	b	.L12
.L27:
	ldr	r3, .L30+56
	ldr	r1, .L30+60
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L30+64
	ldr	r0, [r3]
	bl	exit
	b	.L3
.L28:
	ldr	r3, .L30+56
	ldr	r1, .L30+68
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L30+64
	ldr	r0, [r3]
	bl	exit
	b	.L5
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	STDOUT_FILENO
	.word	TIOCGWINSZ
	.word	flag_monitor
	.word	flag_monitor_continuous
	.word	LC_CTYPE
	.word	.LC3
	.word	mainwin
	.word	flag_throughput
	.word	throughput_wait_secs
	.word	int_handler
	.word	SIGINT
	.word	stderr
	.word	.LC2
	.word	EXIT_FAILURE
	.word	.LC4
	.size	main, .-main
	.comm	throughput_wait_secs,4,4
	.comm	stderr,4,4
	.comm	mainwin,4,4
	.comm	int_handler,4,4
	.comm	flag_throughput,4,4
	.comm	flag_monitor_continuous,4,4
	.comm	flag_monitor,4,4
	.comm	TIOCGWINSZ,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	SIGINT,4,4
	.comm	LC_CTYPE,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
