	.file	"extr_expand.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"stdin"
.LC1:
	.string	""
.LC2:
	.string	"t:"
.LC3:
	.string	"r"
.LC4:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	lea	rsi, .LC1[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR LC_CTYPE[rip]
	call	setlocale@PLT
	cmp	r12d, 1
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	edi, BYTE PTR 1[rax]
	call	isdigit@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 8[rbx]
	sub	r12d, 1
	add	rbx, 8
	lea	rdi, 1[rax]
	call	getstops@PLT
	cmp	r12d, 1
	je	.L3
.L2:
	mov	rax, QWORD PTR 8[rbx]
	cmp	BYTE PTR [rax], 45
	je	.L4
.L3:
	lea	rbp, .LC2[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, rbp
	mov	rsi, rbx
	mov	edi, r12d
	call	getopt@PLT
	cmp	eax, -1
	je	.L58
	cmp	eax, 116
	je	.L59
	xor	eax, eax
	call	usage@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L59:
	mov	rdi, QWORD PTR optarg[rip]
	call	getstops@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rax, QWORD PTR optind[rip]
	xor	r15d, r15d
	lea	r14, .LC0[rip]
	sub	r12d, eax
	lea	r13, [rbx+rax*8]
	test	r12d, r12d
	jg	.L34
	.p2align 4,,10
	.p2align 3
.L56:
	xor	ebx, ebx
.L13:
	xor	eax, eax
	call	getwchar@PLT
	cmp	DWORD PTR WEOF[rip], eax
	mov	ebp, eax
	je	.L60
	cmp	ebp, 9
	je	.L14
	cmp	ebp, 10
	je	.L15
	cmp	ebp, 8
	je	.L61
	mov	edi, ebp
	call	putwchar@PLT
	mov	edi, ebp
	call	wcwidth@PLT
	lea	edx, [rbx+rax]
	test	eax, eax
	cmovg	ebx, edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L60:
	mov	edi, DWORD PTR stdin[rip]
	call	ferror@PLT
	test	rax, rax
	jne	.L62
.L12:
	test	r12d, r12d
	jle	.L63
.L34:
	mov	edx, DWORD PTR stdin[rip]
	mov	rdi, QWORD PTR 0[r13]
	sub	r12d, 1
	lea	rbx, 8[r13]
	lea	rsi, .LC3[rip]
	call	freopen@PLT
	test	rax, rax
	je	.L64
	mov	r14, QWORD PTR 0[r13]
	mov	r13, rbx
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L61:
	cmp	ebx, 1
	mov	edi, 8
	adc	ebx, -1
	call	putwchar@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, DWORD PTR nstops[rip]
	test	edx, edx
	je	.L19
	cmp	edx, 1
	je	.L21
	mov	rcx, QWORD PTR tabstops[rip]
	xor	ebp, ebp
	xor	eax, eax
	test	edx, edx
	jg	.L22
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L66:
	add	eax, 1
	add	rbp, 4
	cmp	edx, eax
	je	.L25
.L22:
	cmp	DWORD PTR [rcx+rbp], ebx
	jle	.L66
	cmp	edx, eax
	je	.L25
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, 32
	add	ebx, 1
	call	putwchar@PLT
	mov	rax, QWORD PTR tabstops[rip]
	cmp	DWORD PTR [rax+rbp], ebx
	jg	.L27
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, 32
	call	putwchar@PLT
	mov	rdx, QWORD PTR tabstops[rip]
	mov	eax, ebx
	add	ebx, 1
	mov	ecx, DWORD PTR [rdx]
	cdq
	idiv	ecx
	sub	ecx, 1
	cmp	edx, ecx
	jne	.L21
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, 32
	add	ebx, 1
	call	putwchar@PLT
	test	bl, 7
	jne	.L19
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, 10
	call	putwchar@PLT
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L63:
	mov	edi, r15d
	call	exit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	edi, 32
	add	ebx, 1
	call	putwchar@PLT
	jmp	.L13
.L65:
	cmp	ebx, DWORD PTR [rcx]
	jl	.L27
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L62:
	mov	rsi, r14
	lea	rdi, .LC4[rip]
	mov	r15d, 1
	call	warn@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L64:
	mov	rsi, QWORD PTR 0[r13]
	lea	rdi, .LC4[rip]
	mov	r13, rbx
	mov	r15d, 1
	call	warn@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	tabstops,8,8
	.comm	stdin,4,4
	.comm	optind,8,8
	.comm	optarg,8,8
	.comm	nstops,4,4
	.comm	WEOF,4,4
	.comm	LC_CTYPE,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_expand.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"stdin\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"t:\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.global	__aeabi_idivmod
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r3, .L63
	mov	r7, r1
	ldr	r0, [r3]
	ldr	r1, .L63+4
	sub	sp, sp, #12
	bl	setlocale
	cmp	r6, #1
	ble	.L2
	mov	r4, r7
	b	.L3
.L4:
	ldrb	r0, [r3, #1]	@ zero_extendqisi2
	bl	isdigit
	cmp	r0, #0
	beq	.L2
	ldr	r0, [r4]
	sub	r6, r6, #1
	add	r0, r0, #1
	bl	getstops
	cmp	r6, #1
	beq	.L32
.L3:
	ldr	r3, [r4, #4]
	mov	r7, r4
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r4, r4, #4
	cmp	r2, #45
	beq	.L4
.L2:
	ldr	r4, .L63+8
	ldr	r5, .L63+12
.L5:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	bl	getopt
	cmn	r0, #1
	beq	.L53
	cmp	r0, #116
	beq	.L54
	bl	usage
	b	.L5
.L54:
	ldr	r0, [r5]
	bl	getstops
	b	.L5
.L53:
	mov	r2, #0
	ldr	r3, .L63+16
	str	r2, [sp, #4]
	ldr	r3, [r3]
	sub	r6, r6, r3
	cmp	r6, r2
	add	r7, r7, r3, lsl #2
	bgt	.L55
	ldr	r3, .L63+20
	ldr	r9, .L63+24
	str	r3, [sp]
.L10:
	mov	fp, #0
	ldr	r5, .L63+28
	ldr	r8, .L63+32
	ldr	r4, .L63+36
.L13:
	bl	getwchar
	ldr	r1, [r5]
	mov	r10, r0
	cmp	r1, r0
	beq	.L56
	cmp	r10, #9
	beq	.L14
	cmp	r10, #10
	beq	.L15
	cmp	r10, #8
	beq	.L57
	bl	putwchar
	mov	r0, r10
	bl	wcwidth
	cmp	r0, #0
	addgt	fp, fp, r0
	b	.L13
.L14:
	ldr	ip, [r8]
	cmp	ip, #0
	beq	.L19
	cmp	ip, #1
	beq	.L21
	ldr	r0, [r4]
	cmp	ip, #0
	movgt	r3, #0
	subgt	r0, r0, #4
	bgt	.L25
	b	.L58
.L59:
	add	r3, r3, #1
	cmp	ip, r3
	beq	.L26
.L25:
	ldr	lr, [r0, #4]!
	lsl	r10, r3, #2
	cmp	lr, fp
	ble	.L59
	cmp	ip, r3
	beq	.L26
.L28:
	mov	r0, #32
	bl	putwchar
	ldr	r3, [r4]
	add	fp, fp, #1
	ldr	r3, [r3, r10]
	cmp	r3, fp
	bgt	.L28
	b	.L13
.L21:
	mov	r0, #32
	bl	putwchar
	ldr	r3, [r4]
	mov	r0, fp
	ldr	r10, [r3]
	add	fp, fp, #1
	mov	r1, r10
	bl	__aeabi_idivmod
	sub	r3, r10, #1
	cmp	r1, r3
	bne	.L21
	b	.L13
.L19:
	mov	r0, #32
	add	fp, fp, #1
	bl	putwchar
	tst	fp, #7
	bne	.L19
	b	.L13
.L57:
	cmp	fp, #0
	mov	r0, #8
	subne	fp, fp, #1
	bl	putwchar
	b	.L13
.L15:
	bl	putwchar
	mov	fp, #0
	b	.L13
.L56:
	ldr	r0, [r9]
	bl	ferror
	cmp	r0, #0
	bne	.L60
.L12:
	cmp	r6, #0
	ble	.L61
.L35:
	mov	r4, r7
	ldr	r2, [r9]
	ldr	r0, [r4], #4
	ldr	r1, .L63+40
	bl	freopen
	cmp	r0, #0
	sub	r6, r6, #1
	beq	.L62
	ldr	r3, [r7]
	mov	r7, r4
	str	r3, [sp]
	b	.L10
.L26:
	mov	r0, #32
	add	fp, fp, #1
	bl	putwchar
	b	.L13
.L58:
	ldr	r3, [r0]
	cmp	fp, r3
	movlt	r10, #0
	blt	.L28
	b	.L13
.L60:
	ldr	r1, [sp]
	ldr	r0, .L63+44
	bl	warn
	mov	r3, #1
	cmp	r6, #0
	str	r3, [sp, #4]
	bgt	.L35
.L61:
	ldr	r0, [sp, #4]
	bl	exit
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L62:
	ldr	r1, [r7]
	ldr	r0, .L63+44
	bl	warn
	mov	r3, #1
	mov	r7, r4
	str	r3, [sp, #4]
	b	.L12
.L55:
	ldr	r9, .L63+24
	b	.L35
.L32:
	mov	r7, r4
	b	.L2
.L64:
	.align	2
.L63:
	.word	LC_CTYPE
	.word	.LC1
	.word	.LC2
	.word	optarg
	.word	optind
	.word	.LC0
	.word	stdin
	.word	WEOF
	.word	nstops
	.word	tabstops
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.comm	tabstops,4,4
	.comm	stdin,4,4
	.comm	optind,4,4
	.comm	optarg,4,4
	.comm	nstops,4,4
	.comm	WEOF,4,4
	.comm	LC_CTYPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
