	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_submodule_uses_worktrees       ## -- Begin function submodule_uses_worktrees
	.p2align	4, 0x90
_submodule_uses_worktrees:              ## @submodule_uses_worktrees
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_REPOSITORY_FORMAT_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_git_pathdup_submodule
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_get_common_dir_noenv
	movq	%rbx, %rdi
	callq	_free
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strbuf_addstr
	movl	-48(%rbp), %esi
	leaq	-32(%rbp), %rdi
	callq	_read_repository_format
	cmpq	$0, -32(%rbp)
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	-32(%rbp), %rdi
	callq	_clear_repository_format
	movl	$1, %r14d
	jmp	LBB0_9
LBB0_3:
	leaq	-32(%rbp), %rdi
	callq	_clear_repository_format
	movq	-40(%rbp), %rsi
	addq	$-6, %rsi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_strbuf_setlen
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strbuf_addstr
	movl	-48(%rbp), %edi
	callq	_opendir
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_strbuf_release
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	callq	_is_dot_or_dotdot
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_5:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%rbx, %rdi
	callq	_closedir
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_REPOSITORY_FORMAT_INIT,8,3     ## @REPOSITORY_FORMAT_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"/config"

L_.str.4:                               ## @.str.4
	.asciz	"worktrees"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_submodule_uses_worktrees       ; -- Begin function submodule_uses_worktrees
	.p2align	2
_submodule_uses_worktrees:              ; @submodule_uses_worktrees
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
Lloh3:
	adrp	x8, _REPOSITORY_FORMAT_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REPOSITORY_FORMAT_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_git_pathdup_submodule
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x0, sp, #16
	mov	x1, x19
	bl	_get_common_dir_noenv
	mov	x0, x19
	bl	_free
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_addstr
	ldr	w1, [sp, #16]
	add	x0, sp, #8
	bl	_read_repository_format
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.2:
	add	x0, sp, #16
	bl	_strbuf_release
	add	x0, sp, #8
	bl	_clear_repository_format
	mov	w20, #1
	b	LBB0_10
LBB0_3:
	add	x0, sp, #8
	bl	_clear_repository_format
	ldr	x8, [sp, #24]
	sub	x1, x8, #6
	add	x0, sp, #16
	bl	_strbuf_setlen
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_addstr
	ldr	w0, [sp, #16]
	bl	_opendir
	mov	x19, x0
	add	x0, sp, #16
	bl	_strbuf_release
	cbz	x19, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x0]
	bl	_is_dot_or_dotdot
	cbnz	x0, LBB0_4
; %bb.6:
	mov	w20, #1
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_10
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_closedir
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_REPOSITORY_FORMAT_INIT,8,3     ; @REPOSITORY_FORMAT_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"/config"

l_.str.4:                               ; @.str.4
	.asciz	"worktrees"

.subsections_via_symbols
