	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_fetch_head
_handle_fetch_head:                     ## @handle_fetch_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	testq	%rsi, %rsi
	leaq	-96(%rbp), %r12
	movq	%rsi, %rbx
	cmoveq	%r12, %rbx
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_git_path_fetch_head
	movq	%rax, %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_die_errno
LBB0_2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_strbuf_read
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_die_errno
LBB0_4:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_close
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_die_errno
LBB0_6:
	testq	%r14, %r14
	movq	%r14, %rax
	cmoveq	%r12, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.7:
	testq	%r14, %r14
	leaq	-96(%rbp), %rax
	cmoveq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$2, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	addq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ebx
	cmpl	%ebx, %r13d
	jge	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movslq	%r13d, %r15
	leaq	(%r14,%r15), %r12
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strchr
	movq	%rax, %rcx
	movl	%ecx, %r13d
	subl	%r14d, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	incl	%r13d
	testq	%rax, %rax
	cmovel	%ebx, %r13d
	movl	%r13d, %eax
	subl	%r15d, %eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	leaq	-120(%rbp), %rsi
	movq	%rcx, %r12
	callq	_get_oid_hex
	movq	%r12, %rcx
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movb	$0, (%rcx)
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	addq	8(%r14), %r15
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_die
	xorl	%edi, %edi
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_commit_list_insert
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rax
	addl	%r15d, %ebx
	movzbl	(%rax,%rbx), %r14d
	movb	$0, (%rax,%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	addq	%r15, %rdi
	callq	_get_merge_parent
	movq	%rax, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movb	%r14b, (%rax,%rbx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%rdi, %rdi
	movq	%r12, %rcx
	jne	LBB0_15
	jmp	LBB0_12
LBB0_17:
	leaq	-96(%rbp), %rax
	cmpq	%rax, -104(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_19
## %bb.18:
	leaq	-96(%rbp), %rdi
	callq	_strbuf_release
LBB0_19:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open '%s' for reading"

L_.str.1:                               ## @.str.1
	.asciz	"could not read '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"could not close '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"\t\t"

L_.str.4:                               ## @.str.4
	.asciz	"not something we can merge in %s: %s"

	.no_dead_strip	_handle_fetch_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_fetch_head
_handle_fetch_head:                     ; @handle_fetch_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #32]
Lloh3:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w21, [x8]
	add	x8, sp, #32
	cmp	x1, #0
	csel	x22, x8, x1, eq
Lloh6:
	adrp	x8, _the_repository@GOTPAGE
Lloh7:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_git_path_fetch_head
Lloh9:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	bl	_open
	mov	x23, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_die_errno
LBB0_2:
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_strbuf_read
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_die_errno
LBB0_4:
	stp	x22, x21, [sp]                  ; 16-byte Folded Spill
	mov	x0, x23
	bl	_close
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_die_errno
LBB0_6:
	add	x8, sp, #32
	cmp	x20, #0
	csel	x28, x8, x20, eq
	ldr	w22, [x28]
	cmp	w22, #1
	b.lt	LBB0_17
; %bb.7:
	mov	w21, #0
	cmp	x20, #0
	add	x8, sp, #32
	csel	x27, x8, x20, eq
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	w20, w8, #2
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x27, #8]
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x8, x21
	add	x0, x8, x26
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w22, [x28]
	mov	x21, x23
	cmp	w23, w22
	b.ge	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x27, #8]
	sxtw	x26, w21
	add	x25, x23, x26
	mov	x0, x25
	mov	w1, #10
	bl	_strchr
	mov	x24, x0
	sub	w8, w24, w23
	cmp	x0, #0
	csinc	w23, w22, w8, eq
	sub	w8, w23, w21
	cmp	w8, w20
	b.lo	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #24
	mov	x0, x25
	bl	_get_oid_hex
	cbz	x0, LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	cbz	x24, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	strb	wzr, [x24]
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	x8, [x27, #8]
	add	x2, x8, x26
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_die
	mov	x0, #0
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x19
	bl	_commit_list_insert
	mov	x19, x0
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x27, #8]
	add	w21, w26, w21
	ldrb	w22, [x8, x21]
	strb	wzr, [x8, x21]
	ldr	x8, [x27, #8]
	add	x0, x8, x26
	bl	_get_merge_parent
	ldr	x8, [x27, #8]
	strb	w22, [x8, x21]
	cbnz	x0, LBB0_15
	b	LBB0_12
LBB0_17:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x9, sp, #32
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	add	x0, sp, #32
	bl	_strbuf_release
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open '%s' for reading"

l_.str.1:                               ; @.str.1
	.asciz	"could not read '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"could not close '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"\t\t"

l_.str.4:                               ; @.str.4
	.asciz	"not something we can merge in %s: %s"

	.no_dead_strip	_handle_fetch_head
.subsections_via_symbols
