	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_object
_check_object:                          ## @check_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_FLAG_WRITTEN@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	testl	%eax, (%r15)
	jne	LBB0_18
## %bb.3:
	movq	_OBJ_ANY@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_6
## %bb.4:
	cmpl	%esi, 4(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	movl	(%rbx), %eax
LBB0_6:
	movq	_FLAG_OPEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.11:
	movq	%rbx, %rdi
	callq	_lookup_object_buffer
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	8(%rbx), %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_13:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	_fsck_options@GOTPCREL(%rip), %r12
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_fsck_object
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_15:
	leaq	_check_object(%rip), %rax
	movq	%rax, (%r12)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_fsck_walk
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	8(%rbx), %rdi
	callq	_oid_to_hex
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_17:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_write_cached_object
	jmp	LBB0_18
LBB0_1:
	movl	$1, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	leaq	-40(%rbp), %rdx
	callq	_oid_object_info
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	cmpl	4(%rbx), %eax
	je	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_10:
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_WRITTEN,4,2               ## @FLAG_WRITTEN
	.comm	_OBJ_ANY,4,2                    ## @OBJ_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"object type mismatch"

	.comm	_FLAG_OPEN,4,2                  ## @FLAG_OPEN
	.comm	_the_repository,4,2             ## @the_repository
L_.str.1:                               ## @.str.1
	.asciz	"object of unexpected type"

L_.str.2:                               ## @.str.2
	.asciz	"Whoops! Cannot find object '%s'"

	.comm	_fsck_options,8,3               ## @fsck_options
L_.str.3:                               ## @.str.3
	.asciz	"fsck error in packed object"

L_.str.4:                               ## @.str.4
	.asciz	"Error on reachable objects of %s"

	.no_dead_strip	_check_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_object
_check_object:                          ; @check_object
	.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
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _FLAG_WRITTEN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FLAG_WRITTEN@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.2:
Lloh2:
	adrp	x9, _OBJ_ANY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OBJ_ANY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_5
; %bb.3:
	ldr	w9, [x19, #4]
	cmp	w9, w1
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	ldr	w8, [x19]
LBB0_5:
Lloh7:
	adrp	x9, _FLAG_OPEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FLAG_OPEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.6:
	mov	x0, x19
	bl	_lookup_object_buffer
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
	add	x0, x19, #8
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_8:
	ldp	w2, w1, [x20]
Lloh12:
	adrp	x21, _fsck_options@GOTPAGE
Lloh13:
	ldr	x21, [x21, _fsck_options@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x21
	bl	_fsck_object
	cbz	x0, LBB0_10
; %bb.9:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_10:
Lloh16:
	adrp	x8, _check_object@PAGE
Lloh17:
	add	x8, x8, _check_object@PAGEOFF
	str	x8, [x21]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	bl	_fsck_walk
	cbz	x0, LBB0_12
; %bb.11:
	add	x0, x19, #8
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_die
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_write_cached_object
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #1
LBB0_15:
	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
LBB0_16:
Lloh20:
	adrp	x8, _the_repository@GOTPAGE
Lloh21:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x1, x19, #8
	add	x2, sp, #8
	bl	_oid_object_info
	ldr	w8, [x19, #4]
	cmp	w0, #1
	ccmp	w0, w8, #0, ge
	b.eq	LBB0_18
; %bb.17:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_18:
	mov	w0, #0
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_WRITTEN,4,2               ; @FLAG_WRITTEN
	.comm	_OBJ_ANY,4,2                    ; @OBJ_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"object type mismatch"

	.comm	_FLAG_OPEN,4,2                  ; @FLAG_OPEN
	.comm	_the_repository,4,2             ; @the_repository
l_.str.1:                               ; @.str.1
	.asciz	"object of unexpected type"

l_.str.2:                               ; @.str.2
	.asciz	"Whoops! Cannot find object '%s'"

	.comm	_fsck_options,8,3               ; @fsck_options
l_.str.3:                               ; @.str.3
	.asciz	"fsck error in packed object"

l_.str.4:                               ; @.str.4
	.asciz	"Error on reachable objects of %s"

	.no_dead_strip	_check_object
.subsections_via_symbols
