	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_submodule_ref_store        ## -- Begin function get_submodule_ref_store
	.p2align	4, 0x90
_get_submodule_ref_store:               ## @get_submodule_ref_store
	.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
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	callq	_strlen
	movq	%rax, %rbx
	incq	%rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$1, %rbx
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	-2(%r12,%rbx), %edi
	callq	_is_dir_sep
	decq	%rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	cmpb	$0, (%r12,%rbx)
	je	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_xmemdupz
	movq	%rax, %r12
	movq	%rax, %r14
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	_submodule_ref_stores@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_lookup_ref_store_map
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strbuf_addstr
	movq	%rbx, %rdi
	callq	_is_nonbare_repository_dir
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	leaq	-40(%rbp), %rdi
	movq	%r12, %rsi
	callq	_submodule_to_gitdir
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_15:
	movl	-40(%rbp), %edi
	movq	_REF_STORE_READ@GOTPCREL(%rip), %rax
	movq	_REF_STORE_ODB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_ref_store_init
	movq	%rax, %r15
	movq	_submodule_ref_stores@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_register_ref_store_map
LBB0_9:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	movq	%r14, %rdi
	callq	_free
LBB0_10:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_submodule_ref_stores,4,2       ## @submodule_ref_stores
	.comm	_REF_STORE_READ,4,2             ## @REF_STORE_READ
	.comm	_REF_STORE_ODB,4,2              ## @REF_STORE_ODB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"submodule"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_submodule_ref_store        ; -- Begin function get_submodule_ref_store
	.p2align	2
_get_submodule_ref_store:               ; @get_submodule_ref_store
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_strlen
	sub	x20, x0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x20, #1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w0, [x19, x20]
	bl	_is_dir_sep
	sub	x20, x20, #1
	cbnz	x0, LBB0_2
; %bb.4:
	add	x8, x19, x20
	ldrb	w8, [x8, #2]
	cbz	w8, LBB0_7
; %bb.5:
	add	x1, x20, #2
	mov	x0, x19
	bl	_xmemdupz
	mov	x19, x0
	mov	x20, x0
	b	LBB0_8
LBB0_6:
	mov	x21, #0
	b	LBB0_14
LBB0_7:
	mov	x20, #0
LBB0_8:
Lloh3:
	adrp	x0, _submodule_ref_stores@GOTPAGE
Lloh4:
	ldr	x0, [x0, _submodule_ref_stores@GOTPAGEOFF]
	mov	x1, x19
	bl	_lookup_ref_store_map
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.9:
	add	x0, sp, #8
	mov	x1, x19
	bl	_strbuf_addstr
	add	x0, sp, #8
	bl	_is_nonbare_repository_dir
	cbz	w0, LBB0_11
; %bb.10:
	add	x0, sp, #8
	mov	x1, x19
	bl	_submodule_to_gitdir
	cbz	x0, LBB0_12
LBB0_11:
	mov	x21, #0
	b	LBB0_13
LBB0_12:
Lloh5:
	adrp	x8, _REF_STORE_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REF_STORE_READ@GOTPAGEOFF]
	ldr	w0, [sp, #8]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _REF_STORE_ODB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REF_STORE_ODB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_ref_store_init
	mov	x21, x0
Lloh11:
	adrp	x0, _submodule_ref_stores@GOTPAGE
Lloh12:
	ldr	x0, [x0, _submodule_ref_stores@GOTPAGEOFF]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_register_ref_store_map
LBB0_13:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x20
	bl	_free
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_submodule_ref_stores,4,2       ; @submodule_ref_stores
	.comm	_REF_STORE_READ,4,2             ; @REF_STORE_READ
	.comm	_REF_STORE_ODB,4,2              ; @REF_STORE_ODB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"submodule"

.subsections_via_symbols
