	.file	"extr_rpn.c_read_op.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	read_op
	.type	read_op, @function
read_op:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR pos[rip]
	mov	r8, QWORD PTR s[rip]
	test	rax, rax
	je	.L18
.L2:
	movsx	edi, BYTE PTR [r8+rax]
	cmp	dil, 32
	je	.L11
	cmp	dil, 9
	jne	.L3
.L11:
	add	rax, 1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	QWORD PTR pos[rip], rax
	movsx	edi, BYTE PTR [r8+rax]
	add	rax, 1
	cmp	dil, 32
	je	.L14
	cmp	dil, 9
	je	.L14
.L3:
	test	dil, dil
	je	.L19
	call	isdigit@PLT
	test	rax, rax
	je	.L20
	mov	rdx, QWORD PTR s[rip]
	mov	rax, QWORD PTR pos[rip]
	movsx	ecx, BYTE PTR [rdx+rax]
	sub	ecx, 48
	mov	DWORD PTR n[rip], ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, DWORD PTR n[rip]
	mov	rdx, QWORD PTR s[rip]
	mov	rax, QWORD PTR pos[rip]
	lea	esi, [rcx+rcx*4]
	movsx	ecx, BYTE PTR [rdx+rax]
	lea	ecx, -48[rcx+rsi*2]
	mov	DWORD PTR n[rip], ecx
.L9:
	lea	rcx, 1[rax]
	mov	QWORD PTR pos[rip], rcx
	movsx	edi, BYTE PTR 1[rdx+rax]
	call	isdigit@PLT
	test	rax, rax
	jne	.L10
	movzx	eax, BYTE PTR NUMBER[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR pos[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR pos[rip], rdx
	mov	rdx, QWORD PTR s[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	QWORD PTR pos[rip], 0
	mov	eax, 10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, r8
	call	gets@PLT
	mov	r8, QWORD PTR s[rip]
	mov	rax, QWORD PTR pos[rip]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	read_op, .-read_op
	.comm	s,8,8
	.comm	pos,8,8
	.comm	n,4,4
	.comm	NUMBER,1,1
	.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_rpn.c_read_op.c"
	.text
	.align	2
	.global	read_op
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_op, %function
read_op:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L19
	ldr	r4, .L19+4
	ldr	r3, [r5]
	ldr	r1, [r4]
	cmp	r3, #0
	beq	.L16
.L2:
	ldrb	r0, [r1, r3]	@ zero_extendqisi2
	add	r3, r1, r3
	cmp	r0, #9
	cmpne	r0, #32
	bne	.L3
	rsb	r1, r1, #1
.L4:
	add	r2, r1, r3
	str	r2, [r5]
	ldrb	r0, [r3, #1]!	@ zero_extendqisi2
	cmp	r0, #9
	cmpne	r0, #32
	beq	.L4
.L3:
	cmp	r0, #0
	beq	.L17
	bl	isdigit
	cmp	r0, #0
	beq	.L18
	ldr	r0, [r4]
	ldr	r3, [r5]
	ldr	r6, .L19+8
	ldrb	r2, [r0, r3]	@ zero_extendqisi2
	sub	r2, r2, #48
	str	r2, [r6]
	b	.L8
.L9:
	ldr	r0, [r4]
	ldr	r3, [r5]
	ldr	r1, [r6]
	ldrb	r2, [r0, r3]	@ zero_extendqisi2
	add	r1, r1, r1, lsl #2
	add	r2, r2, r1, lsl #1
	sub	r2, r2, #48
	str	r2, [r6]
.L8:
	add	r3, r3, #1
	str	r3, [r5]
	ldrb	r0, [r0, r3]	@ zero_extendqisi2
	bl	isdigit
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L19+12
	ldrb	r0, [r3]	@ zero_extendqisi2
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r3, [r5]
	ldr	r2, [r4]
	add	r1, r3, #1
	str	r1, [r5]
	ldrb	r0, [r2, r3]	@ zero_extendqisi2
	pop	{r4, r5, r6, pc}
.L17:
	str	r0, [r5]
	mov	r0, #10
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r1
	bl	gets
	ldr	r1, [r4]
	ldr	r3, [r5]
	b	.L2
.L20:
	.align	2
.L19:
	.word	pos
	.word	s
	.word	n
	.word	NUMBER
	.size	read_op, .-read_op
	.comm	s,4,4
	.comm	pos,4,4
	.comm	n,4,4
	.comm	NUMBER,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
