	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_git_refs
_parse_git_refs:                        ## @parse_git_refs
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movl	8(%rdi), %ecx
	movq	_PACKET_READ_CHOMP_NEWLINE@GOTPCREL(%rip), %rax
	movq	_PACKET_READ_GENTLE_ON_EOF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movl	12(%rdi), %edx
	movq	_PACKET_READ_DIE_ON_ERR_PACKET@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_packet_reader_init
	movq	%r15, %rdi
	callq	_discover_version
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%rbx)
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_REF_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_get_remote_heads
	movq	-40(%rbp), %rax
	jmp	LBB0_7
LBB0_1:
	cmpl	$131, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_READ_CHOMP_NEWLINE,4,2  ## @PACKET_READ_CHOMP_NEWLINE
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ## @PACKET_READ_GENTLE_ON_EOF
	.comm	_PACKET_READ_DIE_ON_ERR_PACKET,4,2 ## @PACKET_READ_DIE_ON_ERR_PACKET
	.comm	_REF_NORMAL,4,2                 ## @REF_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown protocol version"

	.no_dead_strip	_parse_git_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_git_refs
_parse_git_refs:                        ; @parse_git_refs
	.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, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldp	w3, w2, [x0, #8]
Lloh0:
	adrp	x8, _PACKET_READ_CHOMP_NEWLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET_READ_CHOMP_NEWLINE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PACKET_READ_GENTLE_ON_EOF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PACKET_READ_GENTLE_ON_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _PACKET_READ_DIE_ON_ERR_PACKET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PACKET_READ_DIE_ON_ERR_PACKET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w4, w8, w9
	mov	x0, sp
	mov	w1, #-1
	bl	_packet_reader_init
	mov	x0, sp
	bl	_discover_version
	str	w0, [x19, #4]
	sub	w9, w0, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _REF_NORMAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REF_NORMAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w2, wzr, w8, eq
	mov	x0, sp
	add	x1, sp, #8
	mov	x3, #0
	mov	x4, x19
	bl	_get_remote_heads
	ldr	x0, [sp, #8]
	b	LBB0_4
LBB0_2:
	mov	x8, x0
	mov	x0, #0
	cmp	w8, #131
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
	mov	x0, #0
LBB0_4:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_READ_CHOMP_NEWLINE,4,2  ; @PACKET_READ_CHOMP_NEWLINE
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ; @PACKET_READ_GENTLE_ON_EOF
	.comm	_PACKET_READ_DIE_ON_ERR_PACKET,4,2 ; @PACKET_READ_DIE_ON_ERR_PACKET
	.comm	_REF_NORMAL,4,2                 ; @REF_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown protocol version"

	.no_dead_strip	_parse_git_refs
.subsections_via_symbols
