	.file	"extr_cmds.c_fget.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r+"
.LC1:
	.string	"w"
.LC2:
	.string	"usage: %s localfile\n"
.LC3:
	.string	"r"
.LC4:
	.string	"Can't open source file %s\n"
.LC5:
	.string	"get"
	.text
	.p2align 4
	.globl	fget
	.type	fget, @function
fget:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXPATHLEN[rip]
	mov	rcx, rsp
	mov	r15, rsp
	mov	r14, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L28
.L4:
	movsx	rax, DWORD PTR MAX_C_NAME[rip]
	mov	rsi, rsp
	mov	rbx, rsp
	mov	rdx, rax
	add	rax, 15
	mov	rcx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L6
.L29:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L29
.L6:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L30
.L7:
	cmp	edi, 2
	jne	.L31
	mov	rdi, QWORD PTR 8[r12]
	lea	rsi, .LC3[rip]
	mov	DWORD PTR -72[rbp], edx
	call	fopen@PLT
	mov	edx, DWORD PTR -72[rbp]
	test	rax, rax
	mov	r13, rax
	je	.L32
	lea	rsi, .LC5[rip]
	mov	rdi, rsp
	call	strlcpy@PLT
	lea	rdx, .LC0[rip]
	lea	rax, .LC1[rip]
	cmp	QWORD PTR restart_point[rip], 0
	cmovne	rax, rdx
	mov	QWORD PTR [r12], rsp
	mov	QWORD PTR -72[rbp], rax
	.p2align 4,,10
	.p2align 3
.L13:
	xor	ecx, ecx
	mov	edx, r14d
	mov	rsi, rbx
	mov	rdi, r13
	call	get_line@PLT
	test	rax, rax
	js	.L33
	cmp	BYTE PTR [rbx], 0
	je	.L13
	mov	QWORD PTR 8[r12], rbx
	mov	rcx, QWORD PTR -72[rbp]
	xor	edx, edx
	mov	rsi, r12
	mov	edi, 2
	call	getit@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC2[rip]
	call	UPRINTF@PLT
	mov	DWORD PTR code[rip], -1
.L9:
	mov	rsp, r15
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	rdi, r13
	call	fclose@PLT
	mov	rsp, r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdx, QWORD PTR 8[r12]
	mov	edi, DWORD PTR ttyout[rip]
	lea	rsi, .LC4[rip]
	call	fprintf@PLT
	mov	DWORD PTR code[rip], -1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L7
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fget, .-fget
	.comm	ttyout,4,4
	.comm	restart_point,8,8
	.comm	code,4,4
	.comm	MAX_C_NAME,4,4
	.comm	MAXPATHLEN,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_cmds.c_fget.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r+\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"usage: %s localfile\012\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"Can't open source file %s\012\000"
	.align	2
.LC5:
	.ascii	"get\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fget
	.syntax unified
	.arm
	.fpu softvfp
	.type	fget, %function
fget:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	r2, .L19
	ldr	r3, .L19+4
	ldr	r7, [r2]
	ldr	r8, [r3]
	add	ip, r7, #7
	ldr	r2, .L19+8
	bic	ip, ip, #7
	add	r3, r8, #7
	mov	r9, sp
	bic	r3, r3, #7
	sub	sp, sp, ip
	cmp	r0, #2
	mov	r4, sp
	mov	r5, r1
	ldr	r2, [r2]
	str	r2, [fp, #-32]
	mov	r2,#0
	sub	sp, sp, r3
	beq	.L2
	ldr	r1, [r1]
	ldr	r0, .L19+12
	bl	UPRINTF
	mvn	r2, #0
	ldr	r3, .L19+16
	str	r2, [r3]
.L3:
	mov	sp, r9
.L1:
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L2:
	ldr	r1, .L19+20
	ldr	r0, [r5, #4]
	bl	fopen
	subs	r6, r0, #0
	beq	.L17
	mov	r2, r8
	mov	r0, sp
	ldr	r1, .L19+24
	bl	strlcpy
	ldr	r3, .L19+28
	ldr	r8, .L19+32
	ldr	r2, [r3]
	ldr	r3, .L19+36
	cmp	r2, #0
	moveq	r8, r3
	str	sp, [r5]
.L7:
	mov	r3, #0
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	bl	get_line
	cmp	r0, #0
	blt	.L18
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	mov	r3, r8
	mov	r2, #0
	mov	r1, r5
	str	r4, [r5, #4]
	mov	r0, #2
	bl	getit
	b	.L7
.L18:
	mov	r0, r6
	bl	fclose
	mov	sp, r9
	b	.L1
.L17:
	ldr	r3, .L19+40
	ldr	r2, [r5, #4]
	ldr	r0, [r3]
	ldr	r1, .L19+44
	bl	fprintf
	mvn	r2, #0
	ldr	r3, .L19+16
	str	r2, [r3]
	b	.L3
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	MAXPATHLEN
	.word	MAX_C_NAME
	.word	.LC6
	.word	.LC2
	.word	code
	.word	.LC3
	.word	.LC5
	.word	restart_point
	.word	.LC0
	.word	.LC1
	.word	ttyout
	.word	.LC4
	.size	fget, .-fget
	.comm	ttyout,4,4
	.comm	restart_point,4,4
	.comm	code,4,4
	.comm	MAX_C_NAME,4,4
	.comm	MAXPATHLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
