	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_to_create
_check_to_create:                       ## @check_to_create
	.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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_index_name_pos
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.2:
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	_EXISTS_IN_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_4:
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	je	LBB0_5
LBB0_11:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lstat
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_is_missing_file_error
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_6:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_has_symlink_leading_path
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	_EXISTS_IN_WORKTREE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EXISTS_IN_INDEX,4,2            ## @EXISTS_IN_INDEX
	.comm	_EXISTS_IN_WORKTREE,4,2         ## @EXISTS_IN_WORKTREE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_check_to_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_to_create
_check_to_create:                       ; @check_to_create
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w22, [x8]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_index_name_pos
	cbnz	w20, LBB0_4
; %bb.2:
	tbnz	x0, #63, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EXISTS_IN_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXISTS_IN_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_lstat
	cbz	w0, LBB0_10
; %bb.8:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_is_missing_file_error
	cbnz	w0, LBB0_5
; %bb.9:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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
	b	_error_errno
LBB0_10:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	mov	x8, x0
	mov	w0, #0
	cbnz	w20, LBB0_6
; %bb.11:
	cbnz	x8, LBB0_6
; %bb.12:
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_has_symlink_leading_path
Lloh8:
	adrp	x8, _EXISTS_IN_WORKTREE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXISTS_IN_WORKTREE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EXISTS_IN_INDEX,4,2            ; @EXISTS_IN_INDEX
	.comm	_EXISTS_IN_WORKTREE,4,2         ; @EXISTS_IN_WORKTREE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_check_to_create
.subsections_via_symbols
