	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bayes_global_load              ## -- Begin function bayes_global_load
	.p2align	4, 0x90
_bayes_global_load:                     ## @bayes_global_load
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_fd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$28, %edx
	callq	_read
	cmpl	$28, %eax
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	$28, %ecx
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
LBB0_2:
	movl	(%rbx), %r14d
	movl	4(%rbx), %r12d
	movq	_max_words@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jle	LBB0_4
## %bb.3:
	movl	%r12d, (%rax)
LBB0_4:
	movq	%rbx, %rdi
	callq	_qhtbl_init
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_qhtbl_set_size
	movl	%r12d, 4(%rbx)
	shll	$2, %r14d
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	movl	%r14d, %edx
	callq	_read
	cmpl	%r14d, %eax
	jne	LBB0_6
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_fprintf
	xorl	%edi, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fd,8,3                         ## @fd
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading header from index file: read %d bytes instead of %d at position ???: %m\n"

	.comm	_max_words,4,2                  ## @max_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bayes_global_load              ; -- Begin function bayes_global_load
	.p2align	2
_bayes_global_load:                     ; @bayes_global_load
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _fd@GOTPAGE
Lloh1:
	ldr	x22, [x22, _fd@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #28
	bl	_read
Lloh2:
	adrp	x21, _stderr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	cmp	w0, #28
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #28
	bl	_fprintf
	mov	w0, #0
	bl	_assert
LBB0_2:
	ldp	w20, w23, [x19]
Lloh6:
	adrp	x8, _max_words@GOTPAGE
Lloh7:
	ldr	x8, [x8, _max_words@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w23, w9
	b.le	LBB0_4
; %bb.3:
	str	w23, [x8]
LBB0_4:
	mov	x0, x19
	bl	_qhtbl_init
	mov	x0, x19
	mov	x1, x20
	bl	_qhtbl_set_size
	str	w23, [x19, #4]
	lsl	w20, w20, #2
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	mov	x2, x20
	bl	_read
	cmp	w0, w20
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x2, x0
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_fprintf
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_assert
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_fd,8,3                         ; @fd
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading header from index file: read %d bytes instead of %d at position ???: %m\n"

	.comm	_max_words,4,2                  ; @max_words
.subsections_via_symbols
