	.file	"extr_load.c_stream_unget.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stream_unget, @function
stream_unget:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR STREAM_STATE_EOF[rip], esi
	je	.L9
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR STREAM_STATE_ERROR[rip], esi
	je	.L1
	sub	DWORD PTR 28[rdi], 1
	mov	rbx, rdi
	cmp	esi, 10
	jne	.L3
	mov	eax, DWORD PTR 20[rdi]
	sub	DWORD PTR 24[rdi], 1
	mov	DWORD PTR 16[rdi], eax
.L4:
	xor	edi, edi
	cmp	QWORD PTR [rbx], 0
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	xor	edi, edi
	sub	rax, 1
	mov	QWORD PTR [rbx], rax
	cmp	DWORD PTR [rdx+rax*4], ebp
	sete	dil
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	assert@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, esi
	call	utf8_check_first@PLT
	test	rax, rax
	je	.L4
	sub	DWORD PTR 16[rbx], 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	stream_unget, .-stream_unget
	.comm	STREAM_STATE_ERROR,4,4
	.comm	STREAM_STATE_EOF,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_load.c_stream_unget.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stream_unget, %function
stream_unget:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, r1
	bxeq	lr
	ldr	r3, .L13+4
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r1
	cmp	r3, r1
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r0, #20]
	cmp	r1, #10
	sub	r3, r3, #1
	mov	r4, r0
	str	r3, [r0, #20]
	bne	.L3
	ldr	r3, [r0, #16]
	ldr	r2, [r0, #12]
	sub	r3, r3, #1
	str	r3, [r0, #16]
	str	r2, [r0, #8]
.L4:
	ldr	r0, [r4]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	sub	r3, r3, #1
	ldr	r0, [r2, r3, lsl #2]
	str	r3, [r4]
	sub	r0, r0, r5
	clz	r0, r0
	pop	{r4, r5, r6, lr}
	lsr	r0, r0, #5
	b	assert
.L3:
	mov	r0, r1
	bl	utf8_check_first
	cmp	r0, #0
	ldrne	r3, [r4, #8]
	subne	r3, r3, #1
	strne	r3, [r4, #8]
	b	.L4
.L14:
	.align	2
.L13:
	.word	STREAM_STATE_EOF
	.word	STREAM_STATE_ERROR
	.size	stream_unget, .-stream_unget
	.comm	STREAM_STATE_ERROR,4,4
	.comm	STREAM_STATE_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
