	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_fetch_map                  ## -- Begin function get_fetch_map
	.p2align	4, 0x90
_get_fetch_map:                         ## @get_fetch_map
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	cmpq	$0, 32(%rsi)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.10:
	movq	%rbx, %rsi
	callq	_get_expanded_map
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_20
LBB0_1:
	movq	(%rbx), %rax
	cmpb	$0, (%rax)
	leaq	L_.str(%rip), %r15
	cmovneq	%rax, %r15
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_alloc_ref
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	leaq	28(%rax), %rsi
	movq	%r15, %rdi
	callq	_get_oid_hex
	movl	$1, (%r12)
LBB0_7:
	movl	16(%rbx), %edi
	callq	_get_local_ref
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.9:
	movl	$1, 4(%rax)
LBB0_11:
	leaq	-48(%rbp), %r14
	leaq	L_.str.2(%rip), %r13
	leaq	L_.str.3(%rip), %r15
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r12, %rax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r14), %rbx
	movq	%r15, %rdi
	callq	__
	movq	(%r14), %rcx
	movq	16(%rcx), %rcx
	movl	24(%rcx), %esi
	movl	%eax, %edi
	callq	_error
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	%rax, (%r14)
	movq	16(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_18
LBB0_13:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	24(%rcx), %edi
	movq	%r13, %rsi
	callq	_starts_with
	testl	%eax, %eax
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movl	24(%rax), %edi
	xorl	%esi, %esi
	callq	_check_refname_format
	testq	%rax, %rax
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r14), %rax
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rax), %r12
	addq	$8, %rax
	movq	%rax, %r14
	testq	%r12, %r12
	jne	LBB0_12
	jmp	LBB0_18
LBB0_3:
	movl	%ecx, %r13d
	movq	%r15, %rsi
	callq	_get_remote_ref
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.4:
	testq	%r12, %r12
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
	jmp	LBB0_18
LBB0_6:
	testq	%r12, %r12
	jne	LBB0_7
LBB0_18:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_tail_link_ref
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't find remote ref %s"

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

L_.str.3:                               ## @.str.3
	.asciz	"* Ignoring funny ref '%s' locally"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_fetch_map                  ; -- Begin function get_fetch_map
	.p2align	2
_get_fetch_map:                         ; @get_fetch_map
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, x20
	bl	_get_expanded_map
	mov	x22, x0
	str	x0, [sp, #8]
	cbnz	x0, LBB0_7
	b	LBB0_21
LBB0_2:
	ldr	x8, [x20]
	ldrb	w9, [x8]
Lloh0:
	adrp	x10, l_.str@PAGE
Lloh1:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w9, #0
	csel	x21, x10, x8, eq
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_15
; %bb.3:
	mov	x0, x21
	bl	_alloc_ref
	mov	x22, x0
	str	x0, [sp, #8]
	add	x1, x0, #28
	mov	x0, x21
	bl	_get_oid_hex
	mov	w8, #1
	str	w8, [x22]
LBB0_4:
	ldr	w0, [x20, #16]
	bl	_get_local_ref
	str	x0, [x22, #16]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x0, #4]
LBB0_7:
	add	x23, sp, #8
Lloh2:
	adrp	x20, l_.str.2@PAGE
Lloh3:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh4:
	adrp	x21, l_.str.3@PAGE
Lloh5:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x8, x22
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x22, [x23]
	mov	x0, x21
	bl	__
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	w1, [x8, #24]
	bl	_error
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	str	x8, [x23]
	ldr	x0, [x22, #16]
	bl	_free
	mov	x0, x22
	bl	_free
	ldr	x8, [x23]
	cbz	x8, LBB0_19
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x9, #24]
	mov	x1, x20
	bl	_starts_with
	cbz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, #24]
	mov	w1, #0
	bl	_check_refname_format
	cbnz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x22, [x8, #8]!
	mov	x23, x8
	cbnz	x22, LBB0_8
	b	LBB0_19
LBB0_15:
	mov	x23, x3
	mov	x1, x21
	bl	_get_remote_ref
	mov	x22, x0
	str	x0, [sp, #8]
	cbnz	w23, LBB0_18
; %bb.16:
	cbnz	x22, LBB0_18
; %bb.17:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_die
	b	LBB0_19
LBB0_18:
	cbnz	x22, LBB0_4
LBB0_19:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_21
; %bb.20:
	mov	x1, x19
	bl	_tail_link_ref
LBB0_21:
	mov	w0, #0
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't find remote ref %s"

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

l_.str.3:                               ; @.str.3
	.asciz	"* Ignoring funny ref '%s' locally"

.subsections_via_symbols
