	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function import_object
_import_object:                         ## @import_object
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.4:
	movq	_OBJ_TREE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_17
## %bb.5:
	movaps	l___const.import_object.argv(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -80(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$1, -88(%rbp)
	movl	%r15d, -84(%rbp)
	movl	$-1, -80(%rbp)
	leaq	-96(%rbp), %rdi
	callq	_start_command
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	callq	_close
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.2:
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_17:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	_HASH_FORMAT_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_HASH_WRITE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-96(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_18
## %bb.20:
	orl	%r14d, %ebx
	movq	_the_repository@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%ebx, (%rsp)
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %rcx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_index_fd
	testq	%rax, %rax
	jns	LBB0_15
## %bb.21:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_13
LBB0_18:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_error_errno
	movl	%r15d, %edi
	jmp	LBB0_19
LBB0_7:
	movl	-80(%rbp), %esi
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	incq	%rdx
	leaq	-72(%rbp), %rdi
	callq	_strbuf_read
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movl	-80(%rbp), %edi
	callq	_close
	leaq	-96(%rbp), %rdi
	callq	_finish_command
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	leaq	L_.str.4(%rip), %rdi
LBB0_13:
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error_errno
	movl	%r15d, %edi
	callq	_close
	movl	-80(%rbp), %edi
LBB0_19:
	callq	_close
	movl	$-1, %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.22:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	-72(%rbp), %edi
	movq	%r14, %rsi
	callq	_get_oid_hex
	movq	%rax, %rbx
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	testq	%rbx, %rbx
	js	LBB0_12
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to open %s for reading"

	.comm	_OBJ_TREE,4,2                   ## @OBJ_TREE
L_.str.1:                               ## @.str.1
	.asciz	"mktree"

	.section	__DATA,__const
	.p2align	4                               ## @__const.import_object.argv
l___const.import_object.argv:
	.quad	L_.str.1
	.quad	0

	.comm	_CHILD_PROCESS_INIT,24,3        ## @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"unable to spawn mktree"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
L_.str.3:                               ## @.str.3
	.asciz	"unable to read from mktree"

L_.str.4:                               ## @.str.4
	.asciz	"mktree reported failure"

L_.str.5:                               ## @.str.5
	.asciz	"mktree did not return an object name"

	.comm	_HASH_FORMAT_CHECK,4,2          ## @HASH_FORMAT_CHECK
	.comm	_HASH_WRITE_OBJECT,4,2          ## @HASH_WRITE_OBJECT
L_.str.6:                               ## @.str.6
	.asciz	"unable to fstat %s"

	.comm	_the_repository,8,3             ## @the_repository
L_.str.7:                               ## @.str.7
	.asciz	"unable to write object to database"

	.no_dead_strip	_import_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function import_object
_import_object:                         ; @import_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x3
	bl	_open
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x19, x0
	cbnz	w23, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _OBJ_TREE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OBJ_TREE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, l___const.import_object.argv@PAGE
Lloh10:
	add	x8, x8, l___const.import_object.argv@PAGEOFF
Lloh11:
	ldr	q0, [x8]
	str	q0, [sp, #48]
Lloh12:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	str	x9, [sp, #32]
	ldr	q0, [x8]
	str	q0, [sp, #16]
Lloh14:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x8, sp, #48
	str	x8, [sp, #16]
	mov	w8, #1
	stp	w8, w19, [sp, #24]
	mov	w8, #-1
	str	w8, [sp, #32]
	add	x0, sp, #16
	bl	_start_command
	cbz	x0, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_close
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_5:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	str	x21, [sp]
	bl	_error_errno
	b	LBB0_17
LBB0_6:
Lloh21:
	adrp	x8, _HASH_FORMAT_CHECK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HASH_FORMAT_CHECK@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
Lloh24:
	adrp	x8, _HASH_WRITE_OBJECT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HASH_WRITE_OBJECT@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
	add	x1, sp, #16
	mov	x0, x19
	bl	_fstat
	tbnz	x0, #63, LBB0_9
; %bb.7:
	orr	w6, w24, w23
Lloh27:
	adrp	x8, _the_repository@GOTPAGE
Lloh28:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	w0, [x8]
	add	x3, sp, #16
	mov	x1, x20
	mov	x2, x19
	mov	x4, x22
	mov	x5, #0
	bl	_index_fd
	tbnz	x0, #63, LBB0_13
LBB0_8:
	mov	w0, #0
	b	LBB0_17
LBB0_9:
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	str	x21, [sp]
	bl	_error_errno
	mov	x0, x19
	b	LBB0_16
LBB0_10:
	ldr	w1, [sp, #32]
Lloh32:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh33:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x2, x8, #1
	add	x0, sp, #8
	bl	_strbuf_read
	tbnz	x0, #63, LBB0_15
; %bb.11:
	ldr	w0, [sp, #32]
	bl	_close
	add	x0, sp, #16
	bl	_finish_command
	cbz	x0, LBB0_19
; %bb.12:
	add	x0, sp, #8
	bl	_strbuf_release
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh37:
	adrp	x0, l_.str.7@PAGE
Lloh38:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_14:
	bl	__
	bl	_error
	b	LBB0_17
LBB0_15:
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_error_errno
	mov	x0, x19
	bl	_close
	ldr	w0, [sp, #32]
LBB0_16:
	bl	_close
	mov	w0, #-1
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
	ldr	w0, [sp, #8]
	mov	x1, x20
	bl	_get_oid_hex
	mov	x19, x0
	add	x0, sp, #8
	bl	_strbuf_release
	tbz	x19, #63, LBB0_8
; %bb.20:
Lloh44:
	adrp	x0, l_.str.5@PAGE
Lloh45:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAddLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to open %s for reading"

	.comm	_OBJ_TREE,4,2                   ; @OBJ_TREE
l_.str.1:                               ; @.str.1
	.asciz	"mktree"

	.section	__DATA,__const
	.p2align	3                               ; @__const.import_object.argv
l___const.import_object.argv:
	.quad	l_.str.1
	.quad	0

	.comm	_CHILD_PROCESS_INIT,24,3        ; @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"unable to spawn mktree"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
l_.str.3:                               ; @.str.3
	.asciz	"unable to read from mktree"

l_.str.4:                               ; @.str.4
	.asciz	"mktree reported failure"

l_.str.5:                               ; @.str.5
	.asciz	"mktree did not return an object name"

	.comm	_HASH_FORMAT_CHECK,4,2          ; @HASH_FORMAT_CHECK
	.comm	_HASH_WRITE_OBJECT,4,2          ; @HASH_WRITE_OBJECT
l_.str.6:                               ; @.str.6
	.asciz	"unable to fstat %s"

	.comm	_the_repository,8,3             ; @the_repository
l_.str.7:                               ; @.str.7
	.asciz	"unable to write object to database"

	.no_dead_strip	_import_object
.subsections_via_symbols
