	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_repository_shallow          ## -- Begin function is_repository_shallow
	.p2align	4, 0x90
_is_repository_shallow:                 ## @is_repository_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rcx
	movl	8(%rcx), %eax
	testl	%eax, %eax
	jns	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	cmpb	$0, (%rdi)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_git_path_shallow
	movq	%rax, %rdi
	cmpb	$0, (%rdi)
	je	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	(%r15), %rax
	movl	12(%rax), %ebx
	movq	%r14, %rdi
	callq	_fileno
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_stat_validity_update
	movq	(%r15), %rax
	movl	$1, 8(%rax)
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	-1072(%rbp), %rbx
	leaq	-1080(%rbp), %r12
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_register_shallow
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_get_oid_hex
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_die
	jmp	LBB0_10
LBB0_5:
	movq	(%r15), %rax
	movl	12(%rax), %edi
	callq	_stat_validity_clear
	movq	(%r15), %rax
	movl	$0, 8(%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_fclose
	movq	(%r15), %rax
	movl	8(%rax), %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_repository_shallow          ; -- Begin function is_repository_shallow
	.p2align	2
_is_repository_shallow:                 ; @is_repository_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
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0]
	ldr	w0, [x8, #8]
	tbz	w0, #31, LBB0_12
; %bb.1:
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.2:
	ldrb	w8, [x0]
	cbnz	w8, LBB0_4
	b	LBB0_10
LBB0_3:
	mov	x0, x19
	bl	_git_path_shallow
	ldrb	w8, [x0]
	cbz	w8, LBB0_10
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w21, [x8, #12]
	bl	_fileno
	mov	x1, x0
	mov	x0, x21
	bl	_stat_validity_update
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8, #8]
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.6:
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_register_shallow
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, sp
	bl	_get_oid_hex
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_die
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_stat_validity_clear
	mov	w0, #0
	ldr	x8, [x19]
	str	wzr, [x8, #8]
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_fclose
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1040
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

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

.subsections_via_symbols
