	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_index_ext_header
_write_index_ext_header:                ## @write_index_ext_header
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	%ecx, %edi
	callq	_htonl
	movl	%eax, -40(%rbp)
	movl	%r12d, %edi
	callq	_htonl
	movl	%eax, -36(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_the_hash_algo@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	*(%rax)
	movq	(%r12), %rax
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	*(%rax)
LBB0_2:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$4, %ecx
	callq	_ce_write
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$4, %ecx
	callq	_ce_write
	sarq	$63, %rax
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.no_dead_strip	_write_index_ext_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_index_ext_header
_write_index_ext_header:                ; @write_index_ext_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x4
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x3
	bl	_htonl
	str	w0, [sp, #12]
	mov	x0, x22
	bl	_htonl
	str	w0, [sp, #8]
	cbz	x21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x22, _the_hash_algo@GOTPAGE
Lloh1:
	ldr	x22, [x22, _the_hash_algo@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	blr	x8
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #4
	blr	x8
LBB0_2:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_ce_write
	tbnz	x0, #63, LBB0_4
; %bb.3:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_ce_write
	asr	x0, x0, #63
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.no_dead_strip	_write_index_ext_header
.subsections_via_symbols
