	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_shallow_update
_prepare_shallow_update:                ## @prepare_shallow_update
	.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	%rdi, %r15
	movq	48(%rdi), %rax
	movl	(%rax), %edi
	movl	$32, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	movq	(%r15), %rdi
	movq	40(%r15), %rax
	movl	(%rax), %esi
	callq	_ALLOC_ARRAY
	movq	(%r15), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_assign_shallow_commits_to_refs
	movq	40(%r15), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, 8(%r15)
	movq	40(%r15), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, 56(%r15)
	movq	48(%r15), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, 32(%r15)
	cmpl	$0, 16(%r15)
	jle	LBB0_3
## %bb.1:
	movq	8(%r15), %rcx
	movq	24(%r15), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	movl	$1, (%rcx,%rdi,4)
	incq	%rsi
	movslq	16(%r15), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_2
LBB0_3:
	movq	40(%r15), %r8
	movl	(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.4:
	movq	(%r15), %r9
	movl	%r14d, %r10d
	addq	$4, %rax
	xorl	%r11d, %r11d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %rcx
	xorl	%edx, %edx
	cmpl	$2, (%rcx,%r11,4)
	setge	%dl
	movl	%edx, (%rcx,%r11,4)
	movl	(%r8), %edx
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r11
	movslq	%edx, %rcx
	cmpq	%rcx, %r11
	jge	LBB0_18
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	(%r9,%r11,8), %r12
	testq	%r12, %r12
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rdx
	cmpq	%r10, %rdx
	je	LBB0_16
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	cmpl	$0, (%r12,%rdx,4)
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%edx, %ebx
	andl	$134217727, %ebx                ## imm = 0x7FFFFFF
	shlq	$7, %rbx
	addq	%rax, %rbx
	movq	8(%r15), %rsi
	incl	(%rsi,%r11,4)
	xorl	%edi, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=3
	incq	%rsi
	movq	%rsi, %rdi
	cmpq	$32, %rsi
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12,%rdx,4), %esi
	btl	%edi, %esi
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	incl	-4(%rbx,%rdi,4)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=3
	movl	(%r12,%rdx,4), %ecx
	leaq	1(%rdi), %rsi
	btl	%esi, %ecx
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=3
	incl	(%rbx,%rdi,4)
	jmp	LBB0_14
LBB0_18:
	movq	_GIT_SHALLOW_FILE_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_alt_shallow_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setenv                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GIT_SHALLOW_FILE_ENVIRONMENT,4,2 ## @GIT_SHALLOW_FILE_ENVIRONMENT
	.comm	_alt_shallow_file,4,2           ## @alt_shallow_file
	.no_dead_strip	_prepare_shallow_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_shallow_update
_prepare_shallow_update:                ; @prepare_shallow_update
	.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, x0
	ldr	x8, [x0, #48]
	ldr	w0, [x8]
	mov	w1, #32
	bl	_DIV_ROUND_UP
	mov	x20, x0
	ldr	x0, [x19]
	ldr	x8, [x19, #40]
	ldr	w1, [x8]
	bl	_ALLOC_ARRAY
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, #0
	bl	_assign_shallow_commits_to_refs
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	mov	w1, #4
	bl	_xcalloc
	str	x0, [x19, #8]
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	mov	w21, #1
	mov	w1, #1
	bl	_xcalloc
	str	x0, [x19, #56]
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	mov	w1, #4
	bl	_xcalloc
	str	x0, [x19, #32]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x19, #8]
	ldr	x10, [x19, #24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	str	w21, [x9, x11, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x19, #16]
	cmp	x8, x11
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #40]
	ldr	w13, [x8]
	cmp	w13, #1
	b.lt	LBB0_16
; %bb.4:
	mov	x9, #0
	ldr	x10, [x19]
	mov	w11, w20
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x19, #8]
	ldr	w14, [x12, x13]
	cmp	w14, #1
	cset	w14, gt
	str	w14, [x12, x13]
	ldr	w13, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	cmp	x9, w13, sxtw
	b.ge	LBB0_16
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	x12, [x10, x9, lsl #3]
	cbz	x12, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x13, x9, #2
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x14, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x14, x14, #1
	cmp	x14, x11
	b.eq	LBB0_5
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	w15, [x12, x14, lsl #2]
	cbz	w15, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x15, #0
	and	x16, x14, #0x7ffffff
	add	x16, x0, x16, lsl #7
	ldr	x17, [x19, #8]
	ldr	w1, [x17, x13]
	add	w1, w1, #1
	str	w1, [x17, x13]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x15, x15, #1
	cmp	x15, #32
	b.eq	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w17, [x12, x14, lsl #2]
	lsr	w17, w17, w15
	tbz	w17, #0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	lsl	x17, x15, #2
	ldr	w1, [x16, x17]
	add	w1, w1, #1
	str	w1, [x16, x17]
	b	LBB0_13
LBB0_16:
Lloh0:
	adrp	x8, _GIT_SHALLOW_FILE_ENVIRONMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIT_SHALLOW_FILE_ENVIRONMENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _alt_shallow_file@GOTPAGE
Lloh4:
	ldr	x8, [x8, _alt_shallow_file@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #1
	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
	b	_setenv
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GIT_SHALLOW_FILE_ENVIRONMENT,4,2 ; @GIT_SHALLOW_FILE_ENVIRONMENT
	.comm	_alt_shallow_file,4,2           ; @alt_shallow_file
	.no_dead_strip	_prepare_shallow_update
.subsections_via_symbols
