	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_loose_object_1
_map_loose_object_1:                    ## @map_loose_object_1
	.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	%rcx, %r14
	movq	%rsi, -40(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	callq	_git_open
	jmp	LBB0_3
LBB0_2:
	leaq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_open_loose_object
LBB0_3:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	leaq	-32(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	-32(%rbp), %edi
	callq	_xsize_t
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_PROT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	movq	%rax, %rsi
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_xmmap
	movq	%rax, %rbx
LBB0_8:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_error
	movl	%r15d, %edi
	callq	_close
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"object file %s is empty"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.no_dead_strip	_map_loose_object_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_loose_object_1
_map_loose_object_1:                    ; @map_loose_object_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	str	x1, [sp, #8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x1
	bl	_git_open
	mov	x19, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_9
LBB0_2:
	mov	x8, x2
	add	x2, sp, #8
	mov	x1, x8
	bl	_open_loose_object
	mov	x19, x0
	tbnz	w0, #31, LBB0_9
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	bl	_fstat
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, #0
	b	LBB0_7
LBB0_5:
	ldr	w0, [sp]
	bl	_xsize_t
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x0
Lloh0:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x4, x19
	mov	w5, #0
	bl	_xmmap
	mov	x20, x0
LBB0_7:
	mov	x0, x19
	bl	_close
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x1, [sp, #8]
	bl	_error
	mov	x0, x19
	bl	_close
LBB0_9:
	mov	x20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"object file %s is empty"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.no_dead_strip	_map_loose_object_1
.subsections_via_symbols
