	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function discover_refs
_discover_refs:                         ## @discover_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, -80(%rbp)
	movq	%rax, -56(%rbp)
	movq	%rax, -72(%rbp)
	movq	%rax, -104(%rbp)
	movq	%rax, -88(%rbp)
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_last_discovery@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_get_protocol_version_config
	movl	%eax, %r12d
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_28
LBB0_2:
	movq	%rbx, %rdi
	callq	_free_discovery
	movq	_url@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_strbuf_addf
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	jne	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	movl	$1, %esi
	callq	_git_env_bool
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r13), %rdi
	movl	$63, %ebx
	movl	$63, %esi
	callq	_strchr
	testl	%eax, %eax
	movl	$38, %esi
	cmovel	%ebx, %esi
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_addch
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_strbuf_addf
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_7:
	movb	$1, %r14b
LBB0_8:
	movq	_protocol_v2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_protocol_v0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	leaq	-88(%rbp), %rsi
	movl	%r12d, %edi
	callq	_get_protocol_http_header
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-88(%rbp), %rsi
	leaq	-48(%rbp), %rdi
	callq	_string_list_append
LBB0_13:
	leaq	-152(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-64(%rbp), %rax
	movq	%rax, -112(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, -120(%rbp)
	leaq	-104(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	%r13, -136(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -144(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -152(%rbp)
	movq	-72(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_http_get_strbuf
	cmpl	$128, %eax
	je	LBB0_19
## %bb.14:
	cmpl	$129, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$130, %eax
	jne	LBB0_18
## %bb.16:
	leaq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_show_http_message
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_transport_anonymize_url
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_17:
	leaq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_show_http_message
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_transport_anonymize_url
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_18:
	leaq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_show_http_message
	leaq	L_.str.8(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_transport_anonymize_url
	movq	_curl_errorstr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_19:
	movq	_options@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.20:
	movq	-72(%rbp), %rdi
	movq	(%r13), %rsi
	callq	_starts_with
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	(%r13), %rdi
	callq	_transport_anonymize_url
	movq	%rax, %rbx
	leaq	L_.str.9(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_warning
	movq	%rbx, %rdi
	callq	_free
LBB0_22:
	movl	$1, %edi
	movl	$40, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_xstrdup
	movq	%rax, (%rbx)
	leaq	32(%rbx), %rsi
	leaq	-56(%rbp), %rdi
	callq	_strbuf_detach
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	testb	%r14b, %r14b
	jne	LBB0_24
## %bb.23:
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_check_smart_http
LBB0_24:
	cmpq	$0, 16(%rbx)
	movq	_last_discovery@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	je	LBB0_26
## %bb.25:
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_parse_git_refs
	jmp	LBB0_27
LBB0_26:
	callq	_parse_info_refs
LBB0_27:
	movl	%eax, 8(%rbx)
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	leaq	-104(%rbp), %rdi
	callq	_strbuf_release
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	leaq	-88(%rbp), %rdi
	callq	_strbuf_release
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movq	%rbx, (%r14)
LBB0_28:
	movq	%rbx, %rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_STRING_LIST_INIT_DUP,4,2       ## @STRING_LIST_INIT_DUP
	.comm	_last_discovery,8,3             ## @last_discovery
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sinfo/refs"

	.comm	_url,8,3                        ## @url
L_.str.1:                               ## @.str.1
	.asciz	"http://"

L_.str.2:                               ## @.str.2
	.asciz	"https://"

L_.str.3:                               ## @.str.3
	.asciz	"GIT_SMART_HTTP"

L_.str.4:                               ## @.str.4
	.asciz	"service=%s"

	.comm	_protocol_v2,4,2                ## @protocol_v2
L_.str.5:                               ## @.str.5
	.asciz	"git-receive-pack"

	.comm	_protocol_v0,4,2                ## @protocol_v0
L_.str.6:                               ## @.str.6
	.asciz	"repository '%s' not found"

L_.str.7:                               ## @.str.7
	.asciz	"Authentication failed for '%s'"

L_.str.8:                               ## @.str.8
	.asciz	"unable to access '%s': %s"

	.comm	_curl_errorstr,4,2              ## @curl_errorstr
	.comm	_options,8,3                    ## @options
L_.str.9:                               ## @.str.9
	.asciz	"redirecting to %s"

	.no_dead_strip	_discover_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function discover_refs
_discover_refs:                         ; @discover_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [x29, #-64]
	stur	x8, [x29, #-72]
	stp	x8, x8, [sp, #72]
Lloh3:
	adrp	x9, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
	str	x8, [sp, #64]
Lloh5:
	ldr	w8, [x9]
	str	w8, [sp, #56]
Lloh6:
	adrp	x23, _last_discovery@GOTPAGE
Lloh7:
	ldr	x23, [x23, _last_discovery@GOTPAGEOFF]
	ldr	x22, [x23]
	bl	_get_protocol_version_config
	mov	x21, x0
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x1, [x22]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_25
LBB0_2:
	mov	x0, x22
	bl	_free_discovery
Lloh8:
	adrp	x22, _url@GOTPAGE
Lloh9:
	ldr	x22, [x22, _url@GOTPAGEOFF]
	ldr	x2, [x22]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #80
	bl	_strbuf_addf
	ldr	x0, [x22]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x22]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_26
LBB0_4:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w24, #1
	mov	w1, #1
	bl	_git_env_bool
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x22]
	mov	w24, #63
	mov	w1, #63
	bl	_strchr
	mov	w8, #38
	cmp	w0, #0
	csel	w1, w24, w8, eq
	add	x0, sp, #80
	bl	_strbuf_addch
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #80
	mov	x2, x20
	bl	_strbuf_addf
	mov	w24, #0
LBB0_6:
Lloh20:
	adrp	x8, _protocol_v2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _protocol_v2@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.7:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_strcmp
Lloh25:
	adrp	x8, _protocol_v0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _protocol_v0@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w21, w8, w21, eq
LBB0_8:
	add	x1, sp, #64
	mov	x0, x21
	bl	_get_protocol_http_header
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x1, [sp, #64]
	add	x0, sp, #56
	bl	_string_list_append
LBB0_10:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	sub	x8, x29, #56
	str	x8, [sp, #48]
	sub	x8, x29, #64
	add	x9, sp, #72
	stp	x9, x8, [sp, #32]
	add	x8, sp, #56
	stp	x8, x22, [sp, #16]
	movi.2s	v0, #1
	str	d0, [sp, #8]
	ldr	x0, [sp, #80]
	sub	x1, x29, #72
	add	x2, sp, #8
	bl	_http_get_strbuf
	cmp	w0, #128
	b.eq	LBB0_16
; %bb.11:
	cmp	w0, #129
	b.eq	LBB0_14
; %bb.12:
	cmp	w0, #130
	b.ne	LBB0_15
; %bb.13:
	sub	x0, x29, #56
	sub	x1, x29, #64
	sub	x2, x29, #72
	bl	_show_http_message
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x21, x0
	ldr	x0, [x22]
	bl	_transport_anonymize_url
	mov	x1, x0
	mov	x0, x21
	bl	_die
LBB0_14:
	sub	x0, x29, #56
	sub	x1, x29, #64
	sub	x2, x29, #72
	bl	_show_http_message
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	mov	x21, x0
	ldr	x0, [x22]
	bl	_transport_anonymize_url
	mov	x1, x0
	mov	x0, x21
	bl	_die
LBB0_15:
	sub	x0, x29, #56
	sub	x1, x29, #64
	sub	x2, x29, #72
	bl	_show_http_message
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__
	mov	x21, x0
	ldr	x0, [x22]
	bl	_transport_anonymize_url
	mov	x1, x0
Lloh34:
	adrp	x8, _curl_errorstr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _curl_errorstr@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x21
	bl	_die
LBB0_16:
Lloh37:
	adrp	x8, _options@GOTPAGE
Lloh38:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.17:
	ldr	x0, [sp, #80]
	ldr	x1, [x22]
	bl	_starts_with
	cbnz	x0, LBB0_19
; %bb.18:
	ldr	x0, [x22]
	bl	_transport_anonymize_url
	mov	x21, x0
Lloh40:
	adrp	x0, l_.str.9@PAGE
Lloh41:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_warning
	mov	x0, x21
	bl	_free
LBB0_19:
	mov	w0, #1
	mov	w1, #40
	bl	_xcalloc
	mov	x22, x0
	mov	x0, x20
	bl	_xstrdup
	str	x0, [x22]
	add	x1, x22, #32
	sub	x0, x29, #72
	bl	_strbuf_detach
	stp	w0, w0, [x22, #24]
	tbnz	w24, #0, LBB0_21
; %bb.20:
	sub	x2, x29, #56
	mov	x0, x22
	mov	x1, x20
	bl	_check_smart_http
LBB0_21:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x22
	mov	x1, x19
	bl	_parse_git_refs
	b	LBB0_24
LBB0_23:
	mov	x0, x22
	bl	_parse_info_refs
LBB0_24:
	str	w0, [x22, #8]
	add	x0, sp, #80
	bl	_strbuf_release
	sub	x0, x29, #56
	bl	_strbuf_release
	sub	x0, x29, #64
	bl	_strbuf_release
	add	x0, sp, #72
	bl	_strbuf_release
	sub	x0, x29, #72
	bl	_strbuf_release
	add	x0, sp, #64
	bl	_strbuf_release
	add	x0, sp, #56
	mov	w1, #0
	bl	_string_list_clear
	str	x22, [x23]
LBB0_25:
	mov	x0, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_26:
	mov	w24, #1
	b	LBB0_6
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_STRING_LIST_INIT_DUP,4,2       ; @STRING_LIST_INIT_DUP
	.comm	_last_discovery,8,3             ; @last_discovery
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sinfo/refs"

	.comm	_url,8,3                        ; @url
l_.str.1:                               ; @.str.1
	.asciz	"http://"

l_.str.2:                               ; @.str.2
	.asciz	"https://"

l_.str.3:                               ; @.str.3
	.asciz	"GIT_SMART_HTTP"

l_.str.4:                               ; @.str.4
	.asciz	"service=%s"

	.comm	_protocol_v2,4,2                ; @protocol_v2
l_.str.5:                               ; @.str.5
	.asciz	"git-receive-pack"

	.comm	_protocol_v0,4,2                ; @protocol_v0
l_.str.6:                               ; @.str.6
	.asciz	"repository '%s' not found"

l_.str.7:                               ; @.str.7
	.asciz	"Authentication failed for '%s'"

l_.str.8:                               ; @.str.8
	.asciz	"unable to access '%s': %s"

	.comm	_curl_errorstr,4,2              ; @curl_errorstr
	.comm	_options,8,3                    ; @options
l_.str.9:                               ; @.str.9
	.asciz	"redirecting to %s"

	.no_dead_strip	_discover_refs
.subsections_via_symbols
