	.file	"extr_sh.hist.c_savehist.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	savehist
	.type	savehist, @function
savehist:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L8
	mov	rax, QWORD PTR [rdi]
	mov	r9, rdi
	mov	rax, QWORD PTR [rax]
	cmp	BYTE PTR [rax], 10
	je	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR eventno[rip]
	mov	ecx, esi
	mov	edx, 1
	mov	r8d, DWORD PTR histlen[rip]
	mov	rsi, r9
	lea	edi, 1[rax]
	mov	DWORD PTR eventno[rip], edi
	call	enthist@PLT
	mov	edi, DWORD PTR histlen[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	discardExcess@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR histlen[rip]
	jmp	discardExcess@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	savehist, .-savehist
	.comm	histlen,4,4
	.comm	eventno,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_sh.hist.c_savehist.c"
	.text
	.align	2
	.global	savehist
	.syntax unified
	.arm
	.fpu softvfp
	.type	savehist, %function
savehist:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r2, r0, #0
	ldreq	r4, .L9
	sub	sp, sp, #8
	beq	.L2
	ldr	r3, [r2]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L1
	ldr	ip, .L9+4
	ldr	r4, .L9
	ldr	r0, [ip]
	ldr	lr, [r4]
	mov	r3, r1
	add	r0, r0, #1
	mov	r1, r2
	str	lr, [sp]
	mov	r2, #1
	str	r0, [ip]
	bl	enthist
.L2:
	ldr	r0, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	discardExcess
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	histlen
	.word	eventno
	.size	savehist, .-savehist
	.comm	histlen,4,4
	.comm	eventno,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
