	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savehist                       ## -- Begin function savehist
	.p2align	4, 0x90
_savehist:                              ## @savehist
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%esi, %ecx
	movq	%rdi, %rsi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	cmpb	$10, (%rax)
	jne	LBB0_2
## %bb.4:
	popq	%rbp
	retq
LBB0_2:
	movq	_eventno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	%edi, (%rax)
	movq	_histlen@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %edx
	callq	_enthist
LBB0_3:
	movq	_histlen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_discardExcess                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_eventno,4,2                    ## @eventno
	.comm	_histlen,4,2                    ## @histlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savehist                       ; -- Begin function savehist
	.p2align	2
_savehist:                              ; @savehist
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _histlen@GOTPAGE
Lloh1:
	ldr	x19, [x19, _histlen@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x3, x1
	mov	x1, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldrb	w8, [x8]
	cmp	w8, #10
	b.ne	LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh2:
	adrp	x8, _eventno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _eventno@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w0, w9, #1
	str	w0, [x8]
	ldr	w4, [x19]
	mov	w2, #1
	bl	_enthist
LBB0_4:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_discardExcess
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_eventno,4,2                    ; @eventno
	.comm	_histlen,4,2                    ; @histlen
.subsections_via_symbols
