	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prune_shallow                  ## -- Begin function prune_shallow
	.p2align	4, 0x90
_prune_shallow:                         ## @prune_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SEEN_ONLY@GOTPCREL(%rip), %rax
	movq	_PRUNE_QUICK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%edi, %ebx
	je	LBB0_2
## %bb.1:
	movq	_QUICK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	movq	_PRUNE_SHOW_ONLY@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_write_shallow_commits_1
	jmp	LBB0_9
LBB0_4:
	movq	_the_repository@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_git_path_shallow
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-32(%rbp), %rdi
	movl	%eax, %esi
	callq	_hold_lock_file_for_update
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_check_shallow_file_for_update
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_write_shallow_commits_1
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	movl	%r14d, %edi
	callq	_write_in_full
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	-32(%rbp), %rdi
	callq	_get_lock_file_path
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_die_errno
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_commit_lock_file
	jmp	LBB0_9
LBB0_8:
	movl	(%r15), %edi
	callq	_git_path_shallow
	movl	%eax, %edi
	callq	_unlink
	leaq	-32(%rbp), %rdi
	callq	_rollback_lock_file
LBB0_9:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_SEEN_ONLY,4,2                  ## @SEEN_ONLY
	.comm	_PRUNE_QUICK,4,2                ## @PRUNE_QUICK
	.comm	_QUICK,4,2                      ## @QUICK
	.comm	_PRUNE_SHOW_ONLY,4,2            ## @PRUNE_SHOW_ONLY
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write to %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prune_shallow                  ; -- Begin function prune_shallow
	.p2align	2
_prune_shallow:                         ; @prune_shallow
	.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
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh6:
	adrp	x8, _SEEN_ONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEN_ONLY@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PRUNE_QUICK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PRUNE_QUICK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _QUICK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _QUICK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w19, w9, w8
Lloh15:
	adrp	x8, _PRUNE_SHOW_ONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PRUNE_SHOW_ONLY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w3, w8, w19
	mov	x0, sp
	mov	w1, #0
	mov	x2, #0
	bl	_write_shallow_commits_1
	b	LBB0_7
LBB0_2:
Lloh21:
	adrp	x21, _the_repository@GOTPAGE
Lloh22:
	ldr	x21, [x21, _the_repository@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_git_path_shallow
	mov	x1, x0
Lloh23:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_hold_lock_file_for_update
	mov	x20, x0
	ldr	w0, [x21]
	bl	_check_shallow_file_for_update
	mov	x0, sp
	mov	w1, #0
	mov	x2, #0
	mov	x3, x19
	bl	_write_shallow_commits_1
	cbz	x0, LBB0_6
; %bb.3:
	ldp	w2, w1, [sp]
	mov	x0, x20
	bl	_write_in_full
	tbz	x0, #63, LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_get_lock_file_path
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
LBB0_5:
	add	x0, sp, #8
	bl	_commit_lock_file
	b	LBB0_7
LBB0_6:
	ldr	w0, [x21]
	bl	_git_path_shallow
	bl	_unlink
	add	x0, sp, #8
	bl	_rollback_lock_file
LBB0_7:
	mov	x0, sp
	bl	_strbuf_release
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_SEEN_ONLY,4,2                  ; @SEEN_ONLY
	.comm	_PRUNE_QUICK,4,2                ; @PRUNE_QUICK
	.comm	_QUICK,4,2                      ; @QUICK
	.comm	_PRUNE_SHOW_ONLY,4,2            ; @PRUNE_SHOW_ONLY
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write to %s"

.subsections_via_symbols
