	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_one_shallow
_write_one_shallow:                     ## @write_one_shallow
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	4(%rdi), %r12
	movq	%r12, %rdi
	callq	_oid_to_hex
	cmpl	$-1, (%rbx)
	je	LBB0_1
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_QUICK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	callq	_has_object_file
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_11
LBB0_5:
	movq	_SEEN_ONLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.6:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_lookup_commit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_SEEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
LBB0_3:
	incl	16(%r15)
	cmpq	$0, 8(%r15)
	movl	4(%r15), %edi
	je	LBB0_10
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_packet_buf_write
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rsi
	callq	_strbuf_addstr
	movl	4(%r15), %edi
	movl	$10, %esi
	callq	_strbuf_addch
	jmp	LBB0_11
LBB0_8:
	movq	_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_11
## %bb.9:
	addq	$4, %rax
	movq	%rax, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_QUICK,4,2                      ## @QUICK
	.comm	_SEEN_ONLY,4,2                  ## @SEEN_ONLY
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_SEEN,4,2                       ## @SEEN
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing %s from .git/shallow\n"

L_.str.1:                               ## @.str.1
	.asciz	"shallow %s"

	.no_dead_strip	_write_one_shallow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_one_shallow
_write_one_shallow:                     ; @write_one_shallow
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x22, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_oid_to_hex
	ldr	w8, [x22]
	cmn	w8, #1
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _QUICK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QUICK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_has_object_file
	cbnz	w0, LBB0_7
	b	LBB0_1
LBB0_4:
Lloh3:
	adrp	x9, _SEEN_ONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEEN_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _the_repository@GOTPAGE
Lloh7:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_lookup_commit
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _SEEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SEEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_7:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #4]
	cbz	x8, LBB0_9
; %bb.8:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_packet_buf_write
	b	LBB0_1
LBB0_9:
	mov	x1, x20
	bl	_strbuf_addstr
	ldr	w0, [x19, #4]
	mov	w1, #10
	bl	_strbuf_addch
	b	LBB0_1
LBB0_10:
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _VERBOSE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VERBOSE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.11:
	add	x0, x0, #4
	bl	_oid_to_hex
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_QUICK,4,2                      ; @QUICK
	.comm	_SEEN_ONLY,4,2                  ; @SEEN_ONLY
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_SEEN,4,2                       ; @SEEN
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing %s from .git/shallow\n"

l_.str.1:                               ; @.str.1
	.asciz	"shallow %s"

	.no_dead_strip	_write_one_shallow
.subsections_via_symbols
