	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_index                     ## -- Begin function load_index
	.p2align	4, 0x90
_load_index:                            ## @load_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	leaq	_load_index.t(%rip), %rsi
	movl	$20, %edx
	callq	_read
	xorl	%edi, %edi
	cmpl	$20, %eax
	sete	%dil
	callq	_assert
	movl	_load_index.t(%rip), %eax
	movq	_RPC_PROXY_INDEX_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.5:
	movq	_load_index.t+4(%rip), %rax
	movq	_jump_log_pos@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	_load_index.t+12(%rip), %eax
	movq	_jump_log_crc32@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	_load_index.t+16(%rip), %eax
	movq	_jump_log_ts@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	8(%rbx), %edi
	callq	_close
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movslq	(%rax), %rdi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_open
	movq	_ifd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_1:
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %rcx
	leaq	_load_index.buf(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_snprintf
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$432, %edx                      ## imm = 0x1B0
	xorl	%eax, %eax
	callq	_open
	movq	_ifd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	movq	_RPC_PROXY_INDEX_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, _load_index.t(%rip)
	leaq	_load_index.t(%rip), %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, _load_index.t+4(%rip)
	movq	%rax, %rdi
	movl	$20, %edx
	callq	_write
	xorl	%edi, %edi
	cmpl	$20, %eax
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	$3, %edi
	callq	_exit
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_load_index.t,20,4 ## @load_index.t
	.comm	_binlog_disabled,4,2            ## @binlog_disabled
.zerofill __DATA,__bss,_load_index.buf,1000,4 ## @load_index.buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.000000"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_ifd,8,3                        ## @ifd
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Error opening index: %m\n"

	.comm	_RPC_PROXY_INDEX_MAGIC,4,2      ## @RPC_PROXY_INDEX_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"Index is not from rpc-proxy\n"

	.comm	_jump_log_pos,8,3               ## @jump_log_pos
	.comm	_jump_log_crc32,4,2             ## @jump_log_crc32
	.comm	_jump_log_ts,4,2                ## @jump_log_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_index                     ; -- Begin function load_index
	.p2align	2
_load_index:                            ; @load_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x20, _load_index.t@PAGE
Lloh1:
	add	x20, x20, _load_index.t@PAGEOFF
	mov	x1, x20
	mov	w2, #20
	bl	_read
	cmp	w0, #20
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _RPC_PROXY_INDEX_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RPC_PROXY_INDEX_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.2:
Lloh5:
	adrp	x8, _load_index.t@PAGE+4
Lloh6:
	add	x8, x8, _load_index.t@PAGEOFF+4
	ldr	x9, [x8]
Lloh7:
	adrp	x10, _jump_log_pos@GOTPAGE
Lloh8:
	ldr	x10, [x10, _jump_log_pos@GOTPAGEOFF]
Lloh9:
	str	x9, [x10]
Lloh10:
	adrp	x9, _jump_log_crc32@GOTPAGE
Lloh11:
	ldr	x9, [x9, _jump_log_crc32@GOTPAGEOFF]
	ldp	w10, w8, [x8, #8]
Lloh12:
	str	w10, [x9]
Lloh13:
	adrp	x9, _jump_log_ts@GOTPAGE
Lloh14:
	ldr	x9, [x9, _jump_log_ts@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	ldr	w0, [x19, #8]
	bl	_close
Lloh16:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh17:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldrsw	x0, [x8]
Lloh19:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_open
Lloh22:
	adrp	x8, _ifd@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ifd@GOTPAGEOFF]
Lloh24:
	str	x0, [x8]
	b	LBB0_5
LBB0_4:
Lloh25:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh26:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	mov	x3, x1
Lloh28:
	adrp	x19, _load_index.buf@PAGE
Lloh29:
	add	x19, x19, _load_index.buf@PAGEOFF
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1000
	bl	_snprintf
Lloh32:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh36:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh38:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w8, #432
	str	x8, [sp]
	mov	x0, x19
	bl	_open
Lloh41:
	adrp	x8, _ifd@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ifd@GOTPAGEOFF]
Lloh43:
	str	x0, [x8]
	tbnz	x0, #63, LBB0_9
; %bb.7:
Lloh44:
	adrp	x8, _RPC_PROXY_INDEX_MAGIC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RPC_PROXY_INDEX_MAGIC@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x1, _load_index.t@PAGE
Lloh48:
	add	x1, x1, _load_index.t@PAGEOFF
	str	w8, [x1]
	stur	xzr, [x1, #12]
	stur	xzr, [x1, #4]
	mov	w2, #20
	bl	_write
	cmp	w0, #20
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_assert
LBB0_8:
Lloh49:
	adrp	x8, _stderr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #3
	bl	_exit
LBB0_9:
Lloh54:
	adrp	x8, _stderr@GOTPAGE
Lloh55:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.1@PAGE
Lloh58:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_load_index.t,20,2 ; @load_index.t
	.comm	_binlog_disabled,4,2            ; @binlog_disabled
.zerofill __DATA,__bss,_load_index.buf,1000,0 ; @load_index.buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.000000"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_ifd,8,3                        ; @ifd
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Error opening index: %m\n"

	.comm	_RPC_PROXY_INDEX_MAGIC,4,2      ; @RPC_PROXY_INDEX_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"Index is not from rpc-proxy\n"

	.comm	_jump_log_pos,8,3               ; @jump_log_pos
	.comm	_jump_log_crc32,4,2             ; @jump_log_crc32
	.comm	_jump_log_ts,4,2                ; @jump_log_ts
.subsections_via_symbols
