	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_index
_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_work_dir@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_tar_unpack
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	$1, %edi
	callq	_load_binlogpos
	testl	%eax, %eax
	js	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_work_dir,4,2                   ## @work_dir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tar_unpack (%s, %s) returns error code %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"load_binlogpos () returns error code %d.\n"

	.no_dead_strip	_load_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_index
_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_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x20, _work_dir@GOTPAGE
Lloh1:
	ldr	x20, [x20, _work_dir@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_tar_unpack
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #1
	bl	_load_binlogpos
	tbnz	w0, #31, LBB0_5
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	w8, [x20]
	stp	x8, x0, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_work_dir,4,2                   ; @work_dir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tar_unpack (%s, %s) returns error code %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"load_binlogpos () returns error code %d.\n"

	.no_dead_strip	_load_index
.subsections_via_symbols
