	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_remote_heads               ## -- Begin function get_remote_heads
	.p2align	4, 0x90
_get_remote_heads:                      ## @get_remote_heads
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)
	movl	$0, -44(%rbp)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rsi)
	movl	$134, %r14d
	leaq	LJTI0_0(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %edi
	movl	-44(%rbp), %esi
	movq	%r13, %rdx
	callq	_process_shallow
	movl	$132, %r14d
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$135, %r14d
	je	LBB0_14
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_packet_reader_read
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_die_initial_contact
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$132, %r14d
	je	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$133, %r14d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$134, %r14d
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %edi
	leaq	-44(%rbp), %rsi
	callq	_process_capabilities
	movl	4(%rbx), %edi
	callq	_process_dummy_ref
	movl	$132, %r14d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %edi
	movl	-44(%rbp), %esi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %ecx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_process_ref
	movl	$133, %r14d
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
	cmpl	$132, %r14d
	jne	LBB0_7
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	4(%rbx), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_13
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_annotate_refs_with_symref_info
	movq	-56(%rbp), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid packet"

L_.str.1:                               ## @.str.1
	.asciz	"protocol error: unexpected '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_remote_heads               ; -- Begin function get_remote_heads
	.p2align	2
_get_remote_heads:                      ; @get_remote_heads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	str	x1, [sp, #24]
	str	wzr, [sp, #20]
	str	xzr, [x1]
	mov	w27, #134
Lloh0:
	adrp	x24, l_.str.1@PAGE
Lloh1:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh2:
	adrp	x26, lJTI0_0@PAGE
Lloh3:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x25, l_.str@PAGE
Lloh5:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [sp, #20]
	mov	x2, x19
	bl	_process_shallow
	cbz	w0, LBB0_15
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #132
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #135
	b.eq	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_packet_reader_read
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_6
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_die_initial_contact
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	str	w8, [sp, #20]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #132
	b.eq	LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #133
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #134
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #4]
	add	x1, sp, #20
	bl	_process_capabilities
	ldr	w0, [x23, #4]
	bl	_process_dummy_ref
	cbnz	w0, LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [sp, #20]
	add	x2, sp, #24
	mov	x3, x22
	mov	x4, x20
	bl	_process_ref
	cbz	w0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #133
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	__
	bl	_die
	cmp	w27, #132
	b.ne	LBB0_9
	b	LBB0_1
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	__
	ldr	w8, [x23, #4]
	str	x8, [sp]
	bl	_die
	b	LBB0_2
LBB0_16:
	ldr	x0, [x21]
	bl	_annotate_refs_with_symref_info
	ldr	x0, [sp, #24]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid packet"

l_.str.1:                               ; @.str.1
	.asciz	"protocol error: unexpected '%s'"

.subsections_via_symbols
