	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function index_mem
_index_mem:                             ## @index_mem
	.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	%r8d, %ebx
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)
	movq	_HASH_WRITE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovel	%eax, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%r9, %r9
	je	LBB0_5
## %bb.1:
	cmpl	%eax, %ebx
	jne	LBB0_5
## %bb.2:
	movq	%r9, %r12
	movq	%rcx, %r13
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	16(%rbp), %edi
	callq	_get_conv_flags
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	%eax, %r9d
	callq	_convert_to_git
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_strbuf_detach
	movq	%rax, %r15
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	16(%rbp), %r13d
	movq	_HASH_FORMAT_CHECK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_12
## %bb.6:
	movq	_OBJ_TREE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_check_tree
LBB0_8:
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_check_commit
LBB0_10:
	movq	_OBJ_TAG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_check_tag
LBB0_12:
	movq	-56(%rbp), %r14
	movl	%ebx, %edi
	callq	_type_name
	testl	%r13d, -68(%rbp)                ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_write_object_file
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_hash_object_file
LBB0_15:
	movl	%eax, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_free
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_WRITE_OBJECT,4,2          ## @HASH_WRITE_OBJECT
	.comm	_OBJ_BLOB,4,2                   ## @OBJ_BLOB
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_HASH_FORMAT_CHECK,4,2          ## @HASH_FORMAT_CHECK
	.comm	_OBJ_TREE,4,2                   ## @OBJ_TREE
	.comm	_OBJ_COMMIT,4,2                 ## @OBJ_COMMIT
	.comm	_OBJ_TAG,4,2                    ## @OBJ_TAG
	.no_dead_strip	_index_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function index_mem
_index_mem:                             ; @index_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x6
	mov	x19, x2
	mov	x20, x1
	mov	w26, #0
	str	x3, [sp, #8]
Lloh0:
	adrp	x8, _HASH_WRITE_OBJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_WRITE_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x8, _OBJ_BLOB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OBJ_BLOB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w4, #0
	csel	w21, w8, w4, eq
	cbz	x5, LBB0_5
; %bb.1:
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.2:
	mov	x23, x5
	mov	x24, x3
	mov	x25, x0
Lloh6:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x22
	bl	_get_conv_flags
	mov	x5, x0
	mov	x4, sp
	mov	x0, x25
	mov	x1, x23
	mov	x2, x19
	mov	x3, x24
	bl	_convert_to_git
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, sp
	add	x1, sp, #8
	bl	_strbuf_detach
	mov	x19, x0
	mov	w26, #1
	b	LBB0_5
LBB0_4:
	mov	w26, #0
LBB0_5:
	and	w23, w27, w22
Lloh9:
	adrp	x8, _HASH_FORMAT_CHECK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HASH_FORMAT_CHECK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.6:
Lloh12:
	adrp	x8, _OBJ_TREE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OBJ_TREE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_check_tree
LBB0_8:
Lloh15:
	adrp	x8, _OBJ_COMMIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OBJ_COMMIT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_check_commit
LBB0_10:
Lloh18:
	adrp	x8, _OBJ_TAG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OBJ_TAG@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_check_tag
LBB0_12:
	ldr	x22, [sp, #8]
	mov	x0, x21
	bl	_type_name
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	cbz	w23, LBB0_16
; %bb.13:
	bl	_write_object_file
	mov	x20, x0
	cbz	w26, LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_free
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	bl	_hash_object_file
	mov	x20, x0
	cbnz	w26, LBB0_14
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_WRITE_OBJECT,4,2          ; @HASH_WRITE_OBJECT
	.comm	_OBJ_BLOB,4,2                   ; @OBJ_BLOB
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_HASH_FORMAT_CHECK,4,2          ; @HASH_FORMAT_CHECK
	.comm	_OBJ_TREE,4,2                   ; @OBJ_TREE
	.comm	_OBJ_COMMIT,4,2                 ; @OBJ_COMMIT
	.comm	_OBJ_TAG,4,2                    ; @OBJ_TAG
	.no_dead_strip	_index_mem
.subsections_via_symbols
