	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enthist                        ## -- Begin function enthist
	.p2align	4, 0x90
_enthist:                               ## @enthist
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movq	_STRhistdup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_varval
	movq	%rax, %rbx
	movq	_STRNULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	je	LBB0_21
## %bb.1:
	movq	_STRerase@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eq
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_createHistHashTable
	movq	%r12, %rdi
	callq	_hashhist
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_assert
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_findHistHashTable
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.3:
	movq	%rax, %r13
	movq	_Htime@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	(%r13), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_6
## %bb.5:
	movq	%rdx, (%rcx)
	movq	%rdx, %rax
LBB0_6:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.7:
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	56(%r13), %rcx
	xorl	%ebx, %ebx
	cmpq	%rax, (%rcx)
	cmovgeq	%rcx, %rbx
	jmp	LBB0_14
LBB0_9:
	movq	_STRall@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eq
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movl	%r14d, %edi
	callq	_createHistHashTable
	movq	%r12, %rdi
	callq	_hashhist
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_assert
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_findHistHashTable
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.11:
	movq	%rax, %r15
	movq	_eventno@GOTPCREL(%rip), %rax
	decl	(%rax)
	xorl	%ebx, %ebx
	movq	%r15, %r14
	jmp	LBB0_24
LBB0_12:
	xorl	%ebx, %ebx
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_23
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	_fastMergeErase@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_renumberHist
LBB0_16:
	movq	%r13, %rdi
	callq	_hremove
	movq	%r13, %rdi
	callq	_hfree
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_23
LBB0_17:
	movq	_STRprev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eq
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	_Histlist@GOTPCREL(%rip), %rbx
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.19:
	addq	$16, %rsi
	movq	%r12, %rdi
	callq	_heq
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_eventno@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	32(%rbx), %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$0, %ebx
	movq	%r15, %r14
	testq	%r15, %r15
	jne	LBB0_24
	jmp	LBB0_23
LBB0_21:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movl	$64, %edi
	callq	_xmalloc
	movq	%rax, %r14
	xorl	%r15d, %r15d
LBB0_24:
	movq	_Htime@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.25:
	movq	%rcx, (%r14)
	movq	$0, (%rax)
	cmpq	%r14, %r15
	jne	LBB0_27
	jmp	LBB0_46
LBB0_26:
	movq	%r14, %rdi
	callq	_time
	cmpq	%r14, %r15
	je	LBB0_46
LBB0_27:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	movl	%eax, 8(%r14)
	testl	%r13d, %r13d
	je	LBB0_30
## %bb.28:
	leaq	16(%r14), %rdi
	movq	%r12, %rsi
	callq	_copylex
	movq	_histvalid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_31
## %bb.29:
	movq	_histline@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Strsave
	jmp	LBB0_32
LBB0_30:
	movq	8(%r12), %rax
	leaq	16(%r14), %rcx
	movq	%rax, 24(%r14)
	movq	8(%r12), %rax
	movq	%rcx, (%rax)
	movq	(%r12), %rax
	movq	%rax, 16(%r14)
	movq	(%r12), %rax
	movq	%rcx, (%rax)
LBB0_31:
	xorl	%eax, %eax
LBB0_32:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, 48(%r14)
	movq	$0, 40(%r14)
	testl	%ecx, %ecx
	je	LBB0_40
## %bb.33:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mergeInsertionPoint
	movq	%rax, %rbx
	leaq	16(%r14), %r12
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	leaq	16(%r15), %rdi
	movq	%r12, %rsi
	callq	_heq
	movq	%r15, %rbx
	testq	%rax, %rax
	je	LBB0_34
## %bb.37:
	movq	_eventno@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%r14, %rdi
	callq	_hfree
	jmp	LBB0_46
LBB0_38:
	movq	_fastMergeErase@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_41
## %bb.39:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bubbleHnumHrefDown
	jmp	LBB0_41
LBB0_40:
	movq	_Histlist@GOTPCREL(%rip), %rbx
LBB0_41:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hinsert
	testl	%r15d, %r15d
	je	LBB0_44
## %bb.42:
	testl	%r12d, %r12d
	je	LBB0_44
## %bb.43:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_insertHistHashTable
	jmp	LBB0_45
LBB0_44:
	xorl	%eax, %eax
	callq	_discardHistHashTable
LBB0_45:
	movq	%r14, %r15
LBB0_46:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Histlist,64,3                  ## @Histlist
	.comm	_STRhistdup,4,2                 ## @STRhistdup
	.comm	_STRNULL,8,3                    ## @STRNULL
	.comm	_STRerase,4,2                   ## @STRerase
	.comm	_Htime,8,3                      ## @Htime
	.comm	_fastMergeErase,4,2             ## @fastMergeErase
	.comm	_STRall,4,2                     ## @STRall
	.comm	_eventno,4,2                    ## @eventno
	.comm	_STRprev,4,2                    ## @STRprev
	.comm	_histvalid,8,3                  ## @histvalid
	.comm	_histline,4,2                   ## @histline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enthist                        ; -- Begin function enthist
	.p2align	2
_enthist:                               ; @enthist
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _STRhistdup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRhistdup@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_varval
Lloh3:
	adrp	x8, _STRNULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRNULL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x28, _Htime@GOTPAGE
Lloh7:
	ldr	x28, [x28, _Htime@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x8, _STRerase@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STRerase@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_eq
	cbz	x0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_createHistHashTable
	mov	x0, x22
	bl	_hashhist
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x22
	mov	x1, x21
	bl	_findHistHashTable
	cbz	x0, LBB0_21
; %bb.3:
	mov	x26, x0
	ldr	x8, [x28]
	cbz	x8, LBB0_12
; %bb.4:
	ldr	x9, [x26]
	cmp	x9, x8
	b.le	LBB0_6
; %bb.5:
	str	x9, [x28]
	mov	x8, x9
LBB0_6:
	mov	x25, #0
	cbz	w20, LBB0_13
; %bb.7:
	cbz	x8, LBB0_13
; %bb.8:
	ldr	x9, [x26, #56]
	ldr	x10, [x9]
	cmp	x10, x8
	csel	x25, xzr, x9, lt
	b	LBB0_13
LBB0_9:
Lloh11:
	adrp	x8, _STRall@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STRall@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_eq
	cbz	x0, LBB0_16
; %bb.10:
	mov	x0, x19
	bl	_createHistHashTable
	mov	x0, x22
	bl	_hashhist
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x22
	mov	x1, x21
	bl	_findHistHashTable
	cbz	x0, LBB0_21
; %bb.11:
	mov	x27, x0
	mov	x25, #0
Lloh14:
	adrp	x8, _eventno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _eventno@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x26, x0
	b	LBB0_23
LBB0_12:
	mov	x25, #0
LBB0_13:
Lloh16:
	adrp	x8, _fastMergeErase@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fastMergeErase@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.14:
	mov	x0, x26
	bl	_renumberHist
LBB0_15:
	mov	x0, x26
	bl	_hremove
	mov	x0, x26
	bl	_hfree
	b	LBB0_22
LBB0_16:
Lloh19:
	adrp	x8, _STRprev@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STRprev@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_eq
	cbz	x0, LBB0_20
; %bb.17:
Lloh22:
	adrp	x26, _Histlist@GOTPAGE
Lloh23:
	ldr	x26, [x26, _Histlist@GOTPAGEOFF]
	ldr	x8, [x26, #32]
	cbz	x8, LBB0_20
; %bb.18:
	add	x1, x8, #16
	mov	x0, x22
	bl	_heq
	cbz	x0, LBB0_20
; %bb.19:
	mov	w21, #0
	mov	x25, #0
	ldr	x27, [x26, #32]
Lloh24:
	adrp	x8, _eventno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _eventno@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x26, x27
	cbnz	x27, LBB0_23
	b	LBB0_22
LBB0_20:
	mov	w21, #0
LBB0_21:
	mov	x25, #0
LBB0_22:
	mov	w0, #64
	bl	_xmalloc
	mov	x26, x0
	mov	x27, #0
LBB0_23:
	ldr	x8, [x28]
	cbz	x8, LBB0_25
; %bb.24:
	str	x8, [x26]
	str	xzr, [x28]
	cmp	x27, x26
	b.ne	LBB0_26
	b	LBB0_43
LBB0_25:
	mov	x0, x26
	bl	_time
	cmp	x27, x26
	b.eq	LBB0_43
LBB0_26:
	stp	w24, w24, [x26, #8]
	cbz	w23, LBB0_30
; %bb.27:
	add	x0, x26, #16
	mov	x1, x22
	bl	_copylex
Lloh26:
	adrp	x8, _histvalid@GOTPAGE
Lloh27:
	ldr	x8, [x8, _histvalid@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_44
; %bb.28:
Lloh29:
	adrp	x8, _histline@GOTPAGE
Lloh30:
	ldr	x8, [x8, _histline@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_Strsave
	stp	xzr, x0, [x26, #40]
	cbnz	w20, LBB0_31
LBB0_29:
Lloh32:
	adrp	x20, _Histlist@GOTPAGE
Lloh33:
	ldr	x20, [x20, _Histlist@GOTPAGEOFF]
	b	LBB0_38
LBB0_30:
	mov	x0, #0
	ldr	x8, [x22]
	mov	x9, x26
	str	x8, [x9, #16]!
	ldr	x8, [x22, #8]
	str	x8, [x9, #8]
	ldp	x10, x8, [x22]
	str	x9, [x8]
	str	x9, [x10]
	stp	xzr, x0, [x26, #40]
	cbz	w20, LBB0_29
LBB0_31:
	mov	x0, x26
	mov	x1, x25
	bl	_mergeInsertionPoint
	mov	x20, x0
	add	x22, x26, #16
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x20, #32]
	cbz	x27, LBB0_36
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	add	x0, x27, #16
	mov	x1, x22
	bl	_heq
	mov	x20, x27
	cbz	x0, LBB0_32
; %bb.35:
Lloh34:
	adrp	x8, _eventno@GOTPAGE
Lloh35:
	ldr	x8, [x8, _eventno@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x26
	bl	_hfree
	b	LBB0_43
LBB0_36:
Lloh36:
	adrp	x8, _fastMergeErase@GOTPAGE
Lloh37:
	ldr	x8, [x8, _fastMergeErase@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cbnz	w8, LBB0_38
; %bb.37:
	mov	x0, x26
	mov	x1, x20
	bl	_bubbleHnumHrefDown
LBB0_38:
	mov	x0, x26
	mov	x1, x20
	bl	_hinsert
	cbz	w19, LBB0_41
; %bb.39:
	cbz	w21, LBB0_41
; %bb.40:
	mov	x0, x26
	mov	x1, x21
	bl	_insertHistHashTable
	b	LBB0_42
LBB0_41:
	bl	_discardHistHashTable
LBB0_42:
	mov	x27, x26
LBB0_43:
	mov	x0, x27
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_44:
	mov	x0, #0
	stp	xzr, x0, [x26, #40]
	cbnz	w20, LBB0_31
	b	LBB0_29
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_Histlist,64,3                  ; @Histlist
	.comm	_STRhistdup,4,2                 ; @STRhistdup
	.comm	_STRNULL,8,3                    ; @STRNULL
	.comm	_STRerase,4,2                   ; @STRerase
	.comm	_Htime,8,3                      ; @Htime
	.comm	_fastMergeErase,4,2             ; @fastMergeErase
	.comm	_STRall,4,2                     ; @STRall
	.comm	_eventno,4,2                    ; @eventno
	.comm	_STRprev,4,2                    ; @STRprev
	.comm	_histvalid,8,3                  ; @histvalid
	.comm	_histline,4,2                   ; @histline
.subsections_via_symbols
