	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createHistHashTable
_createHistHashTable:                   ## @createHistHashTable
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	jns	LBB0_3
## %bb.2:
	movq	_histlen@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_9
LBB0_3:
	movq	_histHashTable@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.4:
	movq	_histHashTableLength@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rax,2), %eax
	addl	$3, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	_histCount@GOTPCREL(%rip), %rcx
	sarl	$2, %eax
	cmpl	%eax, (%rcx)
	jge	LBB0_5
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	_discardHistHashTable           ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	callq	_discardHistHashTable
LBB0_6:
	movq	_histCount@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%edi, %ebx
	cmovgl	%ebx, %edi
	callq	_getHashTableSize
                                        ## kill: def $eax killed $eax def $rax
	movq	_histHashTableLength@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	leal	(,%rax,8), %edi
	callq	_xmalloc
	movq	%rax, (%r14)
	movl	(%rbx), %edx
	shll	$3, %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_emptyHTE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_Histlist@GOTPCREL(%rip), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %rdi
	callq	_hashhist
	movl	%eax, %r14d
	movl	(%rbx), %eax
	testl	%eax, %eax
	sete	%cl
	cmpl	%r14d, %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_insertHistHashTable
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_histlen,4,2                    ## @histlen
	.comm	_histHashTable,8,3              ## @histHashTable
	.comm	_histCount,4,2                  ## @histCount
	.comm	_histHashTableLength,4,2        ## @histHashTableLength
	.comm	_emptyHTE,8,3                   ## @emptyHTE
	.comm	_Histlist,16,3                  ## @Histlist
	.no_dead_strip	_createHistHashTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createHistHashTable
_createHistHashTable:                   ; @createHistHashTable
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_9
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _histlen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _histlen@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cmp	w19, #1
	b.lt	LBB0_8
LBB0_3:
Lloh3:
	adrp	x20, _histHashTable@GOTPAGE
Lloh4:
	ldr	x20, [x20, _histHashTable@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh5:
	adrp	x22, _histCount@GOTPAGE
Lloh6:
	ldr	x22, [x22, _histCount@GOTPAGEOFF]
Lloh7:
	adrp	x21, _histHashTableLength@GOTPAGE
Lloh8:
	ldr	x21, [x21, _histHashTableLength@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x22]
	ldr	w9, [x21]
	add	w9, w9, w9, lsl #1
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	cmp	w8, w9, asr #2
	b.lt	LBB0_8
; %bb.5:
	bl	_discardHistHashTable
LBB0_6:
	ldr	w8, [x22]
	cmp	w19, w8
	csel	w0, w19, w8, gt
	bl	_getHashTableSize
	str	w0, [x21]
	lsl	w0, w0, #3
	bl	_xmalloc
	str	x0, [x20]
	ldr	w8, [x21]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _emptyHTE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _emptyHTE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh12:
	adrp	x8, _Histlist@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Histlist@GOTPAGEOFF]
Lloh14:
	ldr	x19, [x8, #8]
	cbz	x19, LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #4
	bl	_hashhist
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #0
	ccmp	w8, w0, #4, ne
	cset	w0, eq
	bl	_assert
	str	wzr, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_insertHistHashTable
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	b	_discardHistHashTable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_histlen,4,2                    ; @histlen
	.comm	_histHashTable,8,3              ; @histHashTable
	.comm	_histCount,4,2                  ; @histCount
	.comm	_histHashTableLength,4,2        ; @histHashTableLength
	.comm	_emptyHTE,8,3                   ; @emptyHTE
	.comm	_Histlist,16,3                  ; @Histlist
	.no_dead_strip	_createHistHashTable
.subsections_via_symbols
