	.file	"extr_lex.c_gettok.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gettok"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"out of space for name %.10s..."
	.align 8
.LC2:
	.string	"out of space for number %.10s..."
	.text
	.p2align 4
	.globl	gettok
	.type	gettok, @function
gettok:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], edx
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	input@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L35
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	ebp, eax
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, r13d
	mov	BYTE PTR [rax], r13b
	mov	rax, QWORD PTR 16[rsp]
	mov	BYTE PTR 1[rax], 0
	call	isalnum@PLT
	test	rax, rax
	jne	.L3
	cmp	r13d, 46
	je	.L3
	cmp	r13d, 95
	jne	.L1
.L3:
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, r13d
	lea	rdx, 1[rax]
	mov	QWORD PTR 24[rsp], rdx
	mov	BYTE PTR [rax], bpl
	call	isalpha@PLT
	cmp	r13d, 95
	je	.L5
	movabs	r13, 288230376218820621
	test	rax, rax
	je	.L6
.L5:
	lea	r13, 24[rsp]
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, ebp
	call	isalnum@PLT
	cmp	ebp, 95
	je	.L25
	test	rax, rax
	je	.L10
.L25:
	mov	rax, QWORD PTR 24[rsp]
	lea	rdx, 1[rax]
	mov	QWORD PTR 24[rsp], rdx
	mov	BYTE PTR [rax], bpl
.L32:
	xor	eax, eax
	call	input@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L12
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	sub	rdx, QWORD PTR 16[rsp]
	cmp	rdx, rax
	jl	.L8
	add	edx, 2
	lea	rsi, 12[rsp]
	lea	rdi, 16[rsp]
	mov	r8, r13
	lea	r9, .LC0[rip]
	mov	ecx, 100
	call	adjbuf@PLT
	test	eax, eax
	jne	.L8
	mov	rsi, QWORD PTR 16[rsp]
	lea	rdi, .LC1[rip]
	call	FATAL@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L38:
	bt	r13, rax
	jnc	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR 24[rsp]
	lea	rdx, 1[rax]
	mov	QWORD PTR 24[rsp], rdx
	mov	BYTE PTR [rax], bpl
.L6:
	xor	eax, eax
	call	input@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L20
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	sub	rdx, QWORD PTR 16[rsp]
	cmp	rdx, rax
	jge	.L37
.L16:
	mov	edi, ebp
	call	isdigit@PLT
	test	rax, rax
	jne	.L18
	lea	eax, -43[rbp]
	cmp	eax, 58
	jbe	.L38
.L19:
	mov	edi, ebp
	call	unput@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR 24[rsp]
	lea	rsi, 32[rsp]
	mov	BYTE PTR [rax], 0
	mov	rdi, QWORD PTR 16[rsp]
	call	strtod@PLT
	mov	rdi, QWORD PTR 32[rsp]
	cmp	rdi, QWORD PTR 16[rsp]
	je	.L39
	call	unputstr@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	r13d, 48
	mov	BYTE PTR [rax], 0
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L37:
	add	edx, 2
	lea	rsi, 12[rsp]
	lea	rdi, 16[rsp]
	mov	ecx, 100
	lea	r9, .LC0[rip]
	lea	r8, 24[rsp]
	call	adjbuf@PLT
	test	eax, eax
	jne	.L16
	mov	rsi, QWORD PTR 16[rsp]
	lea	rdi, .LC2[rip]
	call	FATAL@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, ebp
	mov	BYTE PTR [rax], 0
	call	unput@PLT
.L12:
	mov	rax, QWORD PTR 24[rsp]
	mov	r13d, 97
	mov	BYTE PTR [rax], 0
.L14:
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR [r12], rax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	BYTE PTR 1[rdi], 0
	mov	rax, QWORD PTR 16[rsp]
	movsx	r13d, BYTE PTR [rax]
	mov	rax, QWORD PTR 32[rsp]
	lea	rdi, 1[rax]
	call	unputstr@PLT
	jmp	.L14
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gettok, .-gettok
	.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_lex.c_gettok.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gettok\000"
	.align	2
.LC1:
	.ascii	"out of space for name %.10s...\000"
	.align	2
.LC2:
	.ascii	"out of space for number %.10s...\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gettok
	.syntax unified
	.arm
	.fpu softvfp
	.type	gettok, %function
gettok:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0]
	ldr	r2, [r1]
	mov	r5, r1
	ldr	r1, .L35
	sub	sp, sp, #36
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	mov	r6, r0
	str	r3, [sp, #12]
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	bl	input
	subs	r4, r0, #0
	beq	.L1
	mov	r2, #0
	ldr	r3, [sp, #12]
	and	r7, r4, #255
	strb	r7, [r3]
	ldr	r3, [sp, #12]
	strb	r2, [r3, #1]
	bl	isalnum
	cmp	r0, #0
	bne	.L3
	cmp	r4, #46
	cmpne	r4, #95
	bne	.L1
.L3:
	ldr	r3, [sp, #20]
	mov	r0, r4
	add	r2, r3, #1
	str	r2, [sp, #20]
	strb	r7, [r3]
	bl	isalpha
	subs	r0, r0, #0
	movne	r0, #1
	cmp	r4, #95
	movne	r4, r0
	orreq	r4, r0, #1
	cmp	r4, #0
	ldr	r7, .L35+4
	beq	.L29
	ldr	r8, .L35+8
	b	.L4
.L6:
	mov	r0, r4
	bl	isalnum
	subs	r3, r0, #0
	movne	r3, #1
	cmp	r4, #95
	orreq	r3, r3, #1
	cmp	r3, #0
	beq	.L8
	add	r3, r9, #1
	str	r3, [sp, #20]
	strb	r4, [r9]
.L4:
	bl	input
	subs	r4, r0, #0
	beq	.L9
	add	r2, sp, #12
	ldm	r2, {r2, r3, r9}
	sub	r2, r9, r2
	cmp	r2, r3
	blt	.L6
	add	r3, sp, #20
	str	r3, [sp]
	str	r7, [sp, #4]
	mov	r3, #100
	add	r2, r2, #2
	add	r1, sp, #16
	add	r0, sp, #12
	bl	adjbuf
	cmp	r0, #0
	beq	.L7
.L31:
	ldr	r9, [sp, #20]
	b	.L6
.L8:
	mov	r0, r4
	strb	r3, [r9]
	bl	unput
.L9:
	mov	r2, #0
	mov	r4, #97
	ldr	r3, [sp, #20]
	strb	r2, [r3]
.L11:
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	str	r2, [r6]
	str	r3, [r5]
.L1:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mov	r0, r8
	ldr	r1, [sp, #12]
	bl	FATAL
	b	.L31
.L29:
	ldr	r8, .L35+12
	b	.L5
.L13:
	sub	r3, r4, #48
	cmp	r3, #9
	bls	.L15
	bic	r3, r4, #32
	cmp	r3, #69
	beq	.L15
	sub	r3, r4, #45
	cmp	r4, #43
	cmpne	r3, #1
	bhi	.L16
.L15:
	ldr	r3, [sp, #20]
	add	r2, r3, #1
	str	r2, [sp, #20]
	strb	r4, [r3]
.L5:
	bl	input
	subs	r4, r0, #0
	beq	.L17
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #12]
	ldr	r3, [sp, #16]
	sub	r2, r2, r1
	cmp	r2, r3
	blt	.L13
	add	r3, sp, #20
	str	r3, [sp]
	str	r7, [sp, #4]
	mov	r3, #100
	add	r2, r2, #2
	add	r1, sp, #16
	add	r0, sp, #12
	bl	adjbuf
	cmp	r0, #0
	bne	.L13
	mov	r0, r8
	ldr	r1, [sp, #12]
	bl	FATAL
	b	.L13
.L16:
	mov	r0, r4
	bl	unput
.L17:
	mov	r7, #0
	ldr	r3, [sp, #20]
	add	r1, sp, #24
	strb	r7, [r3]
	ldr	r0, [sp, #12]
	bl	strtod
	ldr	r0, [sp, #24]
	ldr	r3, [sp, #12]
	cmp	r0, r3
	beq	.L34
	bl	unputstr
	ldr	r3, [sp, #24]
	mov	r4, #48
	strb	r7, [r3]
	b	.L11
.L34:
	strb	r7, [r0, #1]
	ldr	r0, [sp, #24]
	ldr	r3, [sp, #12]
	add	r0, r0, #1
	ldrb	r4, [r3]	@ zero_extendqisi2
	bl	unputstr
	b	.L11
.L33:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	gettok, .-gettok
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
