	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_object_file_extended      ## -- Begin function read_object_file_extended
	.p2align	4, 0x90
_read_object_file_extended:             ## @read_object_file_extended
	.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
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %r15
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_lookup_replace_object
	movq	%rax, %r15
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_read_object
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_oid_to_hex
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_die_errno
LBB0_6:
	movq	%r15, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r15
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_oid_to_hex
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_die
	movq	%r15, %rax
LBB0_8:
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r12, %rbx
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	%rax, %rsi
	callq	_stat_loose_object
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	-72(%rbp), %rdx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_die
LBB0_10:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_has_packed_and_bad
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	(%rbx), %rdx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_die
LBB0_12:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read object %s"

L_.str.1:                               ## @.str.1
	.asciz	"replacement %s not found for %s"

L_.str.2:                               ## @.str.2
	.asciz	"loose object %s (stored in %s) is corrupt"

L_.str.3:                               ## @.str.3
	.asciz	"packed object %s (stored in %s) is corrupt"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_object_file_extended      ; -- Begin function read_object_file_extended
	.p2align	2
_read_object_file_extended:             ; @read_object_file_extended
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	mov	x19, x1
	cbz	w4, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_lookup_replace_object
	mov	x19, x0
LBB0_2:
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	bl	_read_object
	mov	x20, x0
	cbnz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x24]
Lloh2:
	adrp	x9, _ENOENT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x23, x0
	mov	x0, x22
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x23
	bl	_die_errno
LBB0_5:
	cmp	x19, x22
	b.eq	LBB0_7
; %bb.6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x23, x0
	mov	x0, x19
	bl	_oid_to_hex
	mov	x24, x0
	mov	x0, x22
	bl	_oid_to_hex
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_die
LBB0_7:
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_stat_loose_object
	cbnz	w0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x22, x0
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
	ldr	x2, [sp, #8]
	mov	x0, x22
	bl	_die
LBB0_9:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_has_packed_and_bad
	cbz	x0, LBB0_11
; %bb.10:
	mov	x21, x0
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x22, x0
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
	ldr	x2, [x21]
	mov	x0, x22
	bl	_die
LBB0_11:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read object %s"

l_.str.1:                               ; @.str.1
	.asciz	"replacement %s not found for %s"

l_.str.2:                               ; @.str.2
	.asciz	"loose object %s (stored in %s) is corrupt"

l_.str.3:                               ; @.str.3
	.asciz	"packed object %s (stored in %s) is corrupt"

.subsections_via_symbols
