	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kfs_file_info_alloc
_kfs_file_info_alloc:                   ## @kfs_file_info_alloc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-80(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_20
## %bb.1:
	movl	$80, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	%rax, %r14
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 64(%rax)
	movl	$1, (%rax)
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r12
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, 56(%r14)
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r13
	testq	%rax, %rax
	cmoveq	%r12, %r13
	movq	%r13, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	cmovneq	%rax, %r13
	movq	%r13, 16(%r14)
	movq	%r13, %rdi
	callq	_strlen
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.3:
	cmpl	$12, %eax
	jl	LBB0_15
## %bb.4:
	leal	-11(%rax), %ecx
	cmpb	$46, (%r13,%rcx)
	jne	LBB0_15
## %bb.5:
	movslq	%eax, %rdx
	movb	-1(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.6:
	movb	-2(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.7:
	movb	-3(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.8:
	movb	-4(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.9:
	movb	-5(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.10:
	movb	-6(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.11:
	movb	-7(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.12:
	movb	-8(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.13:
	movb	-9(%rdx,%r13), %bl
	addb	$-58, %bl
	cmpb	$-10, %bl
	jb	LBB0_15
## %bb.14:
	movb	-10(%rdx,%r13), %dl
	addb	$-58, %dl
	cmpb	$-10, %dl
	cmovbl	%eax, %ecx
	movl	%ecx, %eax
LBB0_15:
	movslq	%eax, %rbx
	movb	(%r13,%rbx), %r15b
	movb	$0, (%r13,%rbx)
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_classify_suffix
	movl	%eax, 24(%r14)
	movb	%r15b, (%r13,%rbx)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, 32(%r14)
	testl	%eax, %eax
	js	LBB0_25
## %bb.16:
	andl	$3, %eax
	je	LBB0_22
## %bb.17:
	cmpl	$3, %eax
	je	LBB0_23
## %bb.18:
	cmpl	$1, %eax
	jne	LBB0_25
## %bb.19:
	movq	_kfs_snapshot@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
LBB0_21:
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_22:
	movq	_kfs_binlog@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_kfs_partial@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
LBB0_25:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: unable to stat %s: %m\n"

	.comm	_kfs_binlog,4,2                 ## @kfs_binlog
	.comm	_kfs_snapshot,4,2               ## @kfs_snapshot
	.comm	_kfs_partial,4,2                ## @kfs_partial
	.no_dead_strip	_kfs_file_info_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kfs_file_info_alloc
_kfs_file_info_alloc:                   ; @kfs_file_info_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	add	x1, sp, #16
	bl	_stat
	tbnz	x0, #63, LBB0_20
; %bb.1:
	mov	w22, #1
	mov	w0, #80
	mov	w1, #1
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_24
; %bb.2:
	ldr	q0, [sp, #16]
	str	q0, [x19, #64]
	str	w22, [x19]
	mov	x0, x20
	bl	_strdup
	mov	x22, x0
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_strlen
	str	x0, [x19, #56]
	mov	x0, x22
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x20, x22, x0, eq
	mov	x0, x20
	mov	w1, #46
	bl	_strchr
	cmp	x0, #0
	csel	x20, x20, x0, eq
	str	x20, [x19, #16]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	cbz	w21, LBB0_15
; %bb.3:
	cmp	w1, #12
	b.lt	LBB0_15
; %bb.4:
	sub	w8, w1, #11
	ldrb	w9, [x20, w8, uxtw]
	cmp	w9, #46
	b.ne	LBB0_15
; %bb.5:
	sxtw	x9, w1
	add	x10, x9, x20
	ldurb	w11, [x10, #-1]
	sub	w11, w11, #58
	cmn	w11, #10
	b.lo	LBB0_15
; %bb.6:
	ldurb	w10, [x10, #-2]
	sub	w10, w10, #58
	cmn	w10, #10
	b.lo	LBB0_15
; %bb.7:
	add	x10, x9, x20
	ldurb	w11, [x10, #-3]
	sub	w11, w11, #58
	cmn	w11, #10
	b.lo	LBB0_15
; %bb.8:
	ldurb	w10, [x10, #-4]
	sub	w10, w10, #58
	cmn	w10, #10
	b.lo	LBB0_15
; %bb.9:
	add	x10, x9, x20
	ldurb	w11, [x10, #-5]
	sub	w11, w11, #58
	cmn	w11, #10
	b.lo	LBB0_15
; %bb.10:
	ldurb	w10, [x10, #-6]
	sub	w10, w10, #58
	cmn	w10, #10
	b.lo	LBB0_15
; %bb.11:
	add	x10, x9, x20
	ldurb	w11, [x10, #-7]
	sub	w11, w11, #58
	cmn	w11, #10
	b.lo	LBB0_15
; %bb.12:
	ldurb	w10, [x10, #-8]
	sub	w10, w10, #58
	cmn	w10, #10
	b.lo	LBB0_15
; %bb.13:
	add	x9, x9, x20
	ldurb	w10, [x9, #-9]
	sub	w10, w10, #58
	cmn	w10, #10
	b.lo	LBB0_15
; %bb.14:
	ldurb	w9, [x9, #-10]
	sub	w9, w9, #58
	cmn	w9, #10
	csel	w1, w1, w8, lo
LBB0_15:
	mov	x8, x1
	sxtw	x21, w8
	ldrb	w22, [x20, x21]
	strb	wzr, [x20, x21]
	mov	x2, sp
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_classify_suffix
	str	w0, [x19, #24]
	strb	w22, [x20, x21]
	ldr	q0, [sp]
	str	q0, [x19, #32]
	tbnz	w0, #31, LBB0_24
; %bb.16:
	ands	w8, w0, #0x3
	b.eq	LBB0_21
; %bb.17:
	cmp	w8, #3
	b.eq	LBB0_22
; %bb.18:
	cmp	w8, #1
	b.ne	LBB0_24
; %bb.19:
Lloh0:
	adrp	x8, _kfs_snapshot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kfs_snapshot@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	x19, #0
	b	LBB0_24
LBB0_21:
Lloh7:
	adrp	x8, _kfs_binlog@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kfs_binlog@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh9:
	adrp	x8, _kfs_partial@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kfs_partial@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	str	w8, [x19, #48]
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: unable to stat %s: %m\n"

	.comm	_kfs_binlog,4,2                 ; @kfs_binlog
	.comm	_kfs_snapshot,4,2               ; @kfs_snapshot
	.comm	_kfs_partial,4,2                ; @kfs_partial
	.no_dead_strip	_kfs_file_info_alloc
.subsections_via_symbols
