	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsck_loose
_fsck_loose:                            ## @fsck_loose
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-32(%rbp), %r8
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_read_loose_object
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-32(%rbp), %r8
	testq	%r8, %r8
	jne	LBB0_6
## %bb.3:
	movl	-40(%rbp), %eax
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	xorl	%r8d, %r8d
	jmp	LBB0_6
LBB0_1:
	movq	_ERROR_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_error
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_BUG
	movq	-32(%rbp), %r8
LBB0_6:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-40(%rbp), %edx
	movq	-48(%rbp), %rcx
	leaq	-36(%rbp), %r9
	movq	%rbx, %rsi
	callq	_parse_object_buffer
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_REACHABLE@GOTPCREL(%rip), %rcx
	movq	_SEEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	(%rax), %edx
	movl	%edx, (%rax)
	movq	_HAS_OBJ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	-32(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_fsck_obj
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_ERROR_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_10:
	cmpl	$0, -36(%rbp)
	je	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ERROR_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_error
	cmpl	$0, -36(%rbp)
	jne	LBB0_12
LBB0_11:
	movq	-32(%rbp), %rdi
	callq	_free
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_OBJECT,4,2               ## @ERROR_OBJECT
	.comm	_errors_found,4,2               ## @errors_found
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: object corrupt or missing: %s"

	.comm	_OBJ_BLOB,4,2                   ## @OBJ_BLOB
L_.str.1:                               ## @.str.1
	.asciz	"read_loose_object streamed a non-blob"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.2:                               ## @.str.2
	.asciz	"%s: object could not be parsed: %s"

	.comm	_REACHABLE,4,2                  ## @REACHABLE
	.comm	_SEEN,4,2                       ## @SEEN
	.comm	_HAS_OBJ,4,2                    ## @HAS_OBJ
	.no_dead_strip	_fsck_loose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsck_loose
_fsck_loose:                            ; @fsck_loose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	add	x2, sp, #28
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x1
	mov	x1, x20
	bl	_read_loose_object
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x4, [sp, #8]
	cbnz	x4, LBB0_6
; %bb.2:
	ldr	w8, [sp, #28]
Lloh0:
	adrp	x9, _OBJ_BLOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_BLOB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	mov	x4, #0
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ERROR_OBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_OBJECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errors_found@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x21, x0
	mov	x0, x20
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_error
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BUG
	ldr	x4, [sp, #8]
LBB0_6:
Lloh12:
	adrp	x8, _the_repository@GOTPAGE
Lloh13:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [sp, #28]
	ldr	x3, [sp, #16]
	add	x5, sp, #4
	mov	x1, x20
	bl	_parse_object_buffer
	cbz	x0, LBB0_11
; %bb.7:
Lloh15:
	adrp	x8, _REACHABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REACHABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SEEN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SEEN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	bic	w8, w9, w8
Lloh21:
	adrp	x9, _HAS_OBJ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HAS_OBJ@GOTPAGEOFF]
	str	w8, [x0]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	ldp	x1, x2, [sp, #8]
	bl	_fsck_obj
	cbz	x0, LBB0_9
; %bb.8:
Lloh24:
	adrp	x8, _ERROR_OBJECT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERROR_OBJECT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _errors_found@GOTPAGE
Lloh28:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_9:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_12
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh29:
	adrp	x8, _ERROR_OBJECT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR_OBJECT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _errors_found@GOTPAGE
Lloh33:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x21, x0
	mov	x0, x20
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_error
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_10
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_free
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_OBJECT,4,2               ; @ERROR_OBJECT
	.comm	_errors_found,4,2               ; @errors_found
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: object corrupt or missing: %s"

	.comm	_OBJ_BLOB,4,2                   ; @OBJ_BLOB
l_.str.1:                               ; @.str.1
	.asciz	"read_loose_object streamed a non-blob"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.2:                               ; @.str.2
	.asciz	"%s: object could not be parsed: %s"

	.comm	_REACHABLE,4,2                  ; @REACHABLE
	.comm	_SEEN,4,2                       ; @SEEN
	.comm	_HAS_OBJ,4,2                    ; @HAS_OBJ
	.no_dead_strip	_fsck_loose
.subsections_via_symbols
