	.file	"514157.c"
	.intel_syntax noprefix
	.text
	.globl	line
	.bss
	.align 32
	.type	line, @object
	.size	line, 50
line:
	.zero	50
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], cl
	cmp	DWORD PTR -4[rbp], 9
	jne	.L3
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	expandtab
	mov	DWORD PTR -8[rbp], eax
.L3:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L4
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	printline
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 49
	jle	.L2
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	getblank
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	printline
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	newposition
	mov	DWORD PTR -8[rbp], eax
.L2:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L5
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	expandtab
	.type	expandtab, @function
expandtab:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], 32
	add	DWORD PTR -4[rbp], 1
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], 32
	add	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 49
	jg	.L9
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 7
	test	eax, eax
	jne	.L10
.L9:
	cmp	DWORD PTR -4[rbp], 49
	jle	.L11
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	printline
	mov	eax, 0
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -4[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	expandtab, .-expandtab
	.globl	printline
	.type	printline, @function
printline:
.LFB2:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, line[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L15
	cmp	DWORD PTR -20[rbp], 0
	jle	.L16
	mov	edi, 10
	call	putchar@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	printline, .-printline
	.globl	getblank
	.type	getblank, @function
getblank:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jle	.L18
	jmp	.L19
.L20:
	sub	DWORD PTR -4[rbp], 1
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, line[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L20
.L18:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L21
	mov	eax, 50
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	getblank, .-getblank
	.globl	newposition
	.type	newposition, @function
newposition:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jle	.L24
	cmp	DWORD PTR -20[rbp], 49
	jle	.L25
.L24:
	mov	eax, 0
	jmp	.L26
.L25:
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, line[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, line[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L27:
	cmp	DWORD PTR -4[rbp], 49
	jle	.L28
	mov	eax, DWORD PTR -8[rbp]
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	newposition, .-newposition
	.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	"514157.c"
	.text
	.comm	line,50,4
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	and	r1, r3, #255
	ldr	r2, .L7
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bne	.L3
	ldr	r0, [fp, #-12]
	bl	expandtab
	str	r0, [fp, #-12]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L4
	ldr	r0, [fp, #-12]
	bl	printline
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #49
	ble	.L2
	ldr	r0, [fp, #-12]
	bl	getblank
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	printline
	ldr	r0, [fp, #-12]
	bl	newposition
	str	r0, [fp, #-12]
.L2:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L5
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	line
	.size	main, .-main
	.align	2
	.global	expandtab
	.syntax unified
	.arm
	.fpu softvfp
	.type	expandtab, %function
expandtab:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, .L15
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L10
.L12:
	ldr	r2, .L15
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	bgt	.L11
	ldr	r3, [fp, #-8]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L12
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	ble	.L13
	ldr	r0, [fp, #-8]
	bl	printline
	mov	r3, #0
	b	.L14
.L13:
	ldr	r3, [fp, #-8]
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	line
	.size	expandtab, .-expandtab
	.align	2
	.global	printline
	.syntax unified
	.arm
	.fpu softvfp
	.type	printline, %function
printline:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r2, .L21
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L20
	mov	r0, #10
	bl	putchar
.L20:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	line
	.size	printline, .-printline
	.align	2
	.global	getblank
	.syntax unified
	.arm
	.fpu softvfp
	.type	getblank, %function
getblank:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L24
	b	.L25
.L26:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r2, .L29
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L26
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L27
	mov	r3, #50
	b	.L28
.L27:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L30:
	.align	2
.L29:
	.word	line
	.size	getblank, .-getblank
	.align	2
	.global	newposition
	.syntax unified
	.arm
	.fpu softvfp
	.type	newposition, %function
newposition:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L32
	ldr	r3, [fp, #-16]
	cmp	r3, #49
	ble	.L33
.L32:
	mov	r3, #0
	b	.L34
.L33:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L35
.L36:
	ldr	r2, .L37
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L37
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L35:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	ble	.L36
	ldr	r3, [fp, #-12]
.L34:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L38:
	.align	2
.L37:
	.word	line
	.size	newposition, .-newposition
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
