	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_guess_remote_head              ## -- Begin function guess_remote_head
	.p2align	4, 0x90
_guess_remote_head:                     ## @guess_remote_head
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_find_ref_by_name
	movq	%rax, %rdi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copy_ref                       ## TAILCALL
LBB0_5:
	movl	%edx, %r14d
	testl	%edx, %edx
	je	LBB0_15
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.7:
	leaq	16(%r15), %r12
	leaq	-48(%rbp), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %rbx
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_copy_ref
	movq	%rax, (%r13)
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$8, %rax
	movq	%rax, %r13
	jmp	LBB0_8
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_14:
	movq	-48(%rbp), %rax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_find_ref_by_name
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:
	movq	%rax, %r12
	leaq	16(%rax), %rdi
	leaq	16(%r15), %rsi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_6
## %bb.17:
	movq	%r12, %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/master"

L_.str.1:                               ## @.str.1
	.asciz	"refs/heads/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_guess_remote_head              ; -- Begin function guess_remote_head
	.p2align	2
_guess_remote_head:                     ; @guess_remote_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	x1, [x0]
	cbz	x1, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_find_ref_by_name
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_ref
LBB0_4:
	mov	x20, x2
	cbz	w2, LBB0_14
LBB0_5:
	cbz	x19, LBB0_17
; %bb.6:
	add	x22, x21, #16
	add	x24, sp, #8
Lloh0:
	adrp	x23, l_.str.1@PAGE
Lloh1:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x19, x21
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #20]
	mov	x1, x23
	bl	_starts_with
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x19, #16
	mov	x1, x22
	bl	_oideq
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_copy_ref
	str	x0, [x24]
	cbz	w20, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x0, #8
	b	LBB0_7
LBB0_13:
	ldr	x0, [sp, #8]
	b	LBB0_18
LBB0_14:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_find_ref_by_name
	cbz	x0, LBB0_5
; %bb.15:
	mov	x22, x0
	add	x0, x0, #16
	add	x1, x21, #16
	bl	_oideq
	cbz	x0, LBB0_5
; %bb.16:
	mov	x0, x22
	b	LBB0_3
LBB0_17:
	mov	x0, #0
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/master"

l_.str.1:                               ; @.str.1
	.asciz	"refs/heads/"

.subsections_via_symbols
