	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_fetch
_parse_fetch:                           ## @parse_fetch
	.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	%rdi, %rbx
	movq	$0, -64(%rbp)
	movq	(%rdi), %rdi
	leaq	-64(%rbp), %r13
	xorl	%r14d, %r14d
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	callq	_parse_oid_hex
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_die
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax
	movzbl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r15
	testb	%cl, %cl
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$32, %cl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rax
	movq	%rax, %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_die
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_alloc_ref
	movq	%rax, %r12
	leaq	8(%rax), %rdi
	leaq	-48(%rbp), %rsi
	callq	_oidcpy
	movq	%r12, (%r13)
	incl	%r14d
	xorl	%edi, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_strbuf_reset
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strbuf_getline_lf
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_1
## %bb.12:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_fetch
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	-64(%rbp), %rdi
	callq	_free_refs
	xorl	%edi, %edi
	callq	_free
	movl	$10, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	%rbx, %rdi
	callq	_strbuf_reset
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$128, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fetch "

L_.str.1:                               ## @.str.1
	.asciz	"protocol error: expected sha/ref, got '%s'"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"http transport does not support %s"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_EOF,8,3                        ## @EOF
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_parse_fetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_fetch
_parse_fetch:                           ; @parse_fetch
	.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, x0
	mov	w20, #0
	str	xzr, [sp, #24]
	ldr	x0, [x0]
	add	x28, sp, #24
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x22, l_.str.3@PAGE
Lloh3:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh4:
	adrp	x26, _stdin@GOTPAGE
Lloh5:
	ldr	x26, [x26, _stdin@GOTPAGEOFF]
Lloh6:
	adrp	x27, _EOF@GOTPAGE
Lloh7:
	ldr	x27, [x27, _EOF@GOTPAGEOFF]
                                        ; implicit-def: $x24
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	mov	x1, x21
	bl	_skip_prefix
	cbz	x0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #16]
	add	x1, sp, #8
	mov	x2, sp
	bl	_parse_oid_hex
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	__
	ldr	x1, [sp, #16]
	bl	_die
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp]
	ldrb	w9, [x8]
	cbz	w9, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w9, #32
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x24, x8, #1
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	__
	ldr	x1, [x19]
	bl	_die
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x24, l_.str.2@PAGE
Lloh11:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	__
	ldr	x1, [sp, #16]
	bl	_die
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_alloc_ref
	mov	x25, x0
	add	x0, x0, #8
	add	x1, sp, #8
	bl	_oidcpy
	str	x25, [x28]
	add	w20, w20, #1
	mov	x0, #0
	mov	x1, x20
	mov	w2, #0
	bl	_ALLOC_GROW
	mov	x28, x25
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_strbuf_reset
	ldr	w1, [x26]
	mov	x0, x19
	bl	_strbuf_getline_lf
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_1
; %bb.13:
	mov	x0, x20
	mov	x1, #0
	bl	_fetch
	cbnz	x0, LBB0_16
; %bb.14:
	ldr	x0, [sp, #24]
	bl	_free_refs
	mov	x0, #0
	bl	_free
	mov	w0, #10
	bl	_putchar
Lloh12:
	adrp	x8, _stdout@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_fflush
	mov	x0, x19
	bl	_strbuf_reset
LBB0_15:
	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
LBB0_16:
	mov	w0, #128
	bl	_exit
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fetch "

l_.str.1:                               ; @.str.1
	.asciz	"protocol error: expected sha/ref, got '%s'"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"http transport does not support %s"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_EOF,8,3                        ; @EOF
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_parse_fetch
.subsections_via_symbols
