	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_symref
_fetch_symref:                          ## @fetch_symref
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rdx
	movq	_repo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_xstrfmt
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_http_get_strbuf
	movq	_HTTP_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_curl_errorstr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_2:
	movq	%rbx, %rdi
	callq	_free
	movq	(%r14), %rdi
	callq	_FREE_AND_NULL
	movq	%r15, %rdi
	callq	_oidclr
	cmpq	$0, -48(%rbp)
	je	LBB0_7
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_rtrim
	movq	-40(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rdi
	movl	-48(%rbp), %esi
	subl	%edi, %esi
	addl	-40(%rbp), %esi
	callq	_xmemdupz
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_5:
	movq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_get_oid_hex
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	_repo,8,3                       ## @repo
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_HTTP_OK,8,3                    ## @HTTP_OK
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get %s for remote symref\n%s"

	.comm	_curl_errorstr,4,2              ## @curl_errorstr
L_.str.2:                               ## @.str.2
	.asciz	"ref: "

	.no_dead_strip	_fetch_symref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_symref
_fetch_symref:                          ; @fetch_symref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x1
	mov	x2, x0
Lloh0:
	adrp	x8, _repo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _repo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xstrfmt
	mov	x21, x0
Lloh5:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh7:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	add	x1, sp, #16
	mov	x2, #0
	bl	_http_get_strbuf
Lloh8:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _curl_errorstr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _curl_errorstr@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_die
LBB0_2:
	mov	x0, x21
	bl	_free
	ldr	x0, [x19]
	bl	_FREE_AND_NULL
	mov	x0, x20
	bl	_oidclr
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.3:
	add	x0, sp, #16
	bl	_strbuf_rtrim
	ldr	x0, [sp, #24]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	ldr	w8, [sp, #16]
	ldr	w9, [sp, #24]
	sub	w8, w8, w0
	add	w1, w8, w9
	bl	_xmemdupz
	str	x0, [x19]
	b	LBB0_6
LBB0_5:
	ldr	x0, [sp, #24]
	mov	x1, x20
	bl	_get_oid_hex
LBB0_6:
	add	x0, sp, #16
	bl	_strbuf_release
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_repo,8,3                       ; @repo
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_HTTP_OK,8,3                    ; @HTTP_OK
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get %s for remote symref\n%s"

	.comm	_curl_errorstr,4,2              ; @curl_errorstr
l_.str.2:                               ; @.str.2
	.asciz	"ref: "

	.no_dead_strip	_fetch_symref
.subsections_via_symbols
