	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_head
_reset_head:                            ## @reset_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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, -208(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RESET_HEAD_DETACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	_RESET_HEAD_HARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_RESET_HEAD_RUN_POST_CHECKOUT_HOOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	movq	_RESET_HEAD_REFS_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RESET_ORIG_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -160(%rbp)
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_starts_with
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	testl	%r14d, %r12d
	jne	LBB0_6
LBB0_4:
	movq	_LOCK_REPORT_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	callq	_hold_locked_index
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	movl	$-1, %r13d
	jmp	LBB0_53
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_BUG
	testl	%r14d, %r12d
	je	LBB0_4
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movl	%r13d, %eax
	andl	%r14d, %eax
	jne	LBB0_12
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	leaq	-96(%rbp), %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_12:
	testq	%rbx, %rbx
	leaq	-96(%rbp), %rax
	cmovneq	%rbx, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$0, -100(%rbp)                  ## 4-byte Folded Spill
	testl	%r14d, %r12d
	movq	%r15, %r12
	je	LBB0_13
LBB0_28:
	movq	_GIT_REFLOG_ACTION_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_getenv
	testq	%rax, %rax
	leaq	L_.str.8(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.7(%rip), %rsi
	leaq	-160(%rbp), %rdi
	callq	_strbuf_addf
	movq	-160(%rbp), %rsi
	testl	%r14d, -112(%rbp)               ## 4-byte Folded Reload
	je	LBB0_29
## %bb.30:
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	leaq	L_.str.9(%rip), %rdi
	leaq	-216(%rbp), %r15
	movq	%r15, %rsi
	callq	_get_oid
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	testq	%rax, %rax
	cmoveq	%r15, %r13
	leaq	L_.str.2(%rip), %rdi
	leaq	-224(%rbp), %r15
	movq	%r15, %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_31
## %bb.34:
	testq	%rbx, %rbx
	je	LBB0_36
## %bb.35:
	xorl	%r15d, %r15d
	jmp	LBB0_37
LBB0_13:
	leaq	-192(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	callq	_setup_unpack_trees_porcelain
	movl	$1, -192(%rbp)
	movq	_the_repository@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movl	(%rdi), %eax
	movl	%eax, -168(%rbp)
	movl	%eax, -172(%rbp)
	testl	%r14d, %r13d
	je	LBB0_14
## %bb.15:
	movq	_oneway_merge@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_29:
	xorl	%r15d, %r15d
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_39
LBB0_14:
	movq	_twoway_merge@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, -176(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -188(%rbp)
	testl	%r14d, -116(%rbp)               ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.17:
	movl	$1, -180(%rbp)
LBB0_18:
	callq	_repo_read_index_unmerged
	testq	%rax, %rax
	js	LBB0_19
## %bb.20:
	xorl	%ebx, %ebx
	testl	%r14d, %r13d
	jne	LBB0_23
## %bb.21:
	movq	(%r15), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	callq	_fill_tree_descriptor
	movl	$1, %ebx
	testl	%eax, %eax
	je	LBB0_22
LBB0_23:
	movq	(%r15), %rdi
	movl	%ebx, %eax
	incl	%ebx
	shlq	$4, %rax
	leaq	(%rax,%rbp), %rsi
	addq	$-80, %rsi
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	callq	_fill_tree_descriptor
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	leaq	-80(%rbp), %rsi
	leaq	-192(%rbp), %rdx
	movl	%ebx, %edi
	callq	_unpack_trees
	movl	$-1, %r13d
	testq	%rax, %rax
	jne	LBB0_53
## %bb.26:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_parse_tree_indirect
	movq	(%r15), %rdi
	movl	(%rdi), %esi
	movq	%rax, %rdx
	callq	_prime_cache_tree
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rsi
	callq	_write_locked_index
	testq	%rax, %rax
	js	LBB0_58
## %bb.27:
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	jmp	LBB0_28
LBB0_31:
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_33
## %bb.32:
	leaq	L_.str.10(%rip), %rsi
	leaq	-160(%rbp), %rdi
	callq	_strbuf_addstr
	movq	-152(%rbp), %rdi
LBB0_33:
	movq	_UPDATE_REFS_MSG_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_update_ref
	jmp	LBB0_38
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
LBB0_10:
	callq	__
	xorl	%ebx, %ebx
LBB0_11:
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %r13d
	jmp	LBB0_53
LBB0_36:
	leaq	L_.str.9(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_delete_ref
LBB0_37:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
LBB0_38:
	movq	%r12, %rsi
	movq	-112(%rbp), %r12                ## 8-byte Reload
LBB0_39:
	testq	%rbx, %rbx
	movq	-128(%rbp), %r13                ## 8-byte Reload
	je	LBB0_40
## %bb.41:
	testq	%r12, %r12
	je	LBB0_42
LBB0_45:
	movq	_UPDATE_REFS_MSG_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_update_ref
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_48
## %bb.46:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_create_symref
	jmp	LBB0_47
LBB0_40:
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_setlen
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	-152(%rbp), %rbx
	testq	%r12, %r12
	jne	LBB0_45
LBB0_42:
	movl	-116(%rbp), %r8d                ## 4-byte Reload
	andl	%r14d, %r8d
	je	LBB0_44
## %bb.43:
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_44:
	movq	_UPDATE_REFS_MSG_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_update_ref
LBB0_47:
	movl	%eax, %r13d
LBB0_48:
	testl	%r14d, -164(%rbp)               ## 4-byte Folded Reload
	je	LBB0_52
## %bb.49:
	testq	%r15, %r15
	jne	LBB0_51
## %bb.50:
	movq	_null_oid@GOTPCREL(%rip), %r15
LBB0_51:
	movq	%r15, %rdi
	callq	_oid_to_hex
	movl	%eax, %ebx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_oid_to_hex
	leaq	L_.str.12(%rip), %rsi
	leaq	L_.str.13(%rip), %r8
	xorl	%edi, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	callq	_run_hook_le
LBB0_52:
	movl	-100(%rbp), %ebx                ## 4-byte Reload
LBB0_53:
	leaq	-160(%rbp), %rdi
	callq	_strbuf_release
	leaq	-88(%rbp), %rdi
	callq	_rollback_lock_file
	testl	%ebx, %ebx
	je	LBB0_56
## %bb.54:
	movl	%ebx, %ebx
	shlq	$4, %rbx
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp,%rbx), %rdi
	callq	_free
	addq	$-16, %rbx
	jne	LBB0_55
LBB0_56:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_59
## %bb.57:
	movl	%r13d, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_oid_to_hex
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %r13d
	jmp	LBB0_53
LBB0_22:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	leaq	-96(%rbp), %rdi
	callq	_oid_to_hex
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %r13d
	movl	$1, %ebx
	jmp	LBB0_53
LBB0_58:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	jmp	LBB0_11
LBB0_59:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_HEAD_DETACH,4,2          ## @RESET_HEAD_DETACH
	.comm	_RESET_HEAD_HARD,4,2            ## @RESET_HEAD_HARD
	.comm	_RESET_HEAD_RUN_POST_CHECKOUT_HOOK,4,2 ## @RESET_HEAD_RUN_POST_CHECKOUT_HOOK
	.comm	_RESET_HEAD_REFS_ONLY,4,2       ## @RESET_HEAD_REFS_ONLY
	.comm	_RESET_ORIG_HEAD,4,2            ## @RESET_ORIG_HEAD
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/"

L_.str.1:                               ## @.str.1
	.asciz	"Not a fully qualified branch: '%s'"

	.comm	_LOCK_REPORT_ON_ERROR,4,2       ## @LOCK_REPORT_ON_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"HEAD"

L_.str.3:                               ## @.str.3
	.asciz	"could not determine HEAD revision"

	.comm	_the_repository,8,3             ## @the_repository
	.comm	_oneway_merge,4,2               ## @oneway_merge
	.comm	_twoway_merge,4,2               ## @twoway_merge
L_.str.4:                               ## @.str.4
	.asciz	"could not read index"

L_.str.5:                               ## @.str.5
	.asciz	"failed to find tree of %s"

	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
L_.str.6:                               ## @.str.6
	.asciz	"could not write index"

	.comm	_GIT_REFLOG_ACTION_ENVIRONMENT,4,2 ## @GIT_REFLOG_ACTION_ENVIRONMENT
L_.str.7:                               ## @.str.7
	.asciz	"%s: "

L_.str.8:                               ## @.str.8
	.asciz	"rebase"

L_.str.9:                               ## @.str.9
	.asciz	"ORIG_HEAD"

L_.str.10:                              ## @.str.10
	.asciz	"updating ORIG_HEAD"

	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ## @UPDATE_REFS_MSG_ON_ERR
L_.str.11:                              ## @.str.11
	.asciz	"updating HEAD"

	.comm	_REF_NO_DEREF,4,2               ## @REF_NO_DEREF
L_.str.12:                              ## @.str.12
	.asciz	"post-checkout"

	.comm	_null_oid,4,2                   ## @null_oid
L_.str.13:                              ## @.str.13
	.asciz	"1"

	.no_dead_strip	_reset_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_head
_reset_head:                            ; @reset_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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, x5
	str	x4, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _RESET_HEAD_DETACH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET_HEAD_DETACH@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _RESET_HEAD_HARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESET_HEAD_HARD@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _RESET_HEAD_RUN_POST_CHECKOUT_HOOK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RESET_HEAD_RUN_POST_CHECKOUT_HOOK@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x8, _RESET_HEAD_REFS_ONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RESET_HEAD_REFS_ONLY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w28, w8, w3
Lloh15:
	adrp	x8, _RESET_ORIG_HEAD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RESET_ORIG_HEAD@GOTPAGEOFF]
Lloh17:
	ldr	w25, [x8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #112]
Lloh18:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #96]
Lloh21:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh23:
	ldr	q0, [x8]
	str	q0, [sp, #48]
	cbz	x2, LBB0_2
; %bb.1:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_starts_with
	cbz	w0, LBB0_5
LBB0_2:
	cbnz	w28, LBB0_6
LBB0_3:
Lloh26:
	adrp	x8, _LOCK_REPORT_ON_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOCK_REPORT_ON_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x0, sp, #96
	bl	_hold_locked_index
	tbz	x0, #63, LBB0_6
; %bb.4:
	mov	w21, #0
	mov	w22, #-1
	b	LBB0_35
LBB0_5:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_BUG
	cbz	w28, LBB0_3
LBB0_6:
	and	w27, w27, w22
	cbz	x23, LBB0_8
; %bb.7:
	cbnz	w27, LBB0_10
LBB0_8:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #104
	bl	_get_oid
	cbz	x0, LBB0_10
; %bb.9:
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_28
LBB0_10:
	and	w26, w26, w22
	add	x8, sp, #104
	cmp	x23, #0
	csel	x23, x23, x8, ne
	cbz	w28, LBB0_19
; %bb.11:
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
	mov	w21, #0
LBB0_12:
	and	w25, w25, w22
Lloh35:
	adrp	x8, _GIT_REFLOG_ACTION_ENVIRONMENT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GIT_REFLOG_ACTION_ENVIRONMENT@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_getenv
Lloh38:
	adrp	x8, l_.str.8@PAGE
Lloh39:
	add	x8, x8, l_.str.8@PAGEOFF
	cmp	x0, #0
	csel	x2, x8, x0, eq
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x0, sp, #48
	bl	_strbuf_addf
	ldr	x26, [sp, #48]
	cbz	w25, LBB0_15
; %bb.13:
Lloh42:
	adrp	x0, l_.str.9@PAGE
Lloh43:
	add	x0, x0, l_.str.9@PAGEOFF
	add	x27, sp, #32
	add	x1, sp, #32
	bl	_get_oid
	mov	x25, x0
	cmp	x0, #0
	csel	x27, x27, xzr, eq
Lloh44:
	adrp	x0, l_.str.2@PAGE
Lloh45:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #40
	bl	_get_oid
	cbz	x0, LBB0_23
; %bb.14:
	cbz	x25, LBB0_29
LBB0_15:
	mov	x25, #0
	cbz	x20, LBB0_30
LBB0_16:
	and	w24, w24, w22
	cbz	x19, LBB0_31
LBB0_17:
Lloh46:
	adrp	x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGEOFF]
Lloh48:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, #0
	mov	w4, #0
	bl	_update_ref
	mov	x22, x0
	cbnz	w0, LBB0_33
; %bb.18:
Lloh49:
	adrp	x0, l_.str.2@PAGE
Lloh50:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_create_symref
	b	LBB0_32
LBB0_19:
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	add	x0, sp, #64
	mov	x1, x21
	bl	_setup_unpack_trees_porcelain
Lloh51:
	adrp	x28, _the_repository@GOTPAGE
Lloh52:
	ldr	x28, [x28, _the_repository@GOTPAGEOFF]
	ldr	x0, [x28]
	ldr	w8, [x0]
	stp	w8, w8, [sp, #84]
Lloh53:
	adrp	x8, _oneway_merge@GOTPAGE
Lloh54:
	ldr	x8, [x8, _oneway_merge@GOTPAGEOFF]
Lloh55:
	adrp	x9, _twoway_merge@GOTPAGE
Lloh56:
	ldr	x9, [x9, _twoway_merge@GOTPAGEOFF]
	cmp	w27, #0
	csel	x8, x8, x9, ne
	ldr	w9, [x8]
	movi.2s	v0, #1
	str	d0, [sp, #64]
	mov	w8, #1
	str	w9, [sp, #80]
	str	w8, [sp, #72]
	cbz	w26, LBB0_26
; %bb.20:
	bl	_repo_read_index_unmerged
	tbnz	x0, #63, LBB0_27
LBB0_21:
	cbz	w27, LBB0_40
; %bb.22:
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
	mov	w8, #0
	b	LBB0_42
LBB0_23:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	cbnz	x0, LBB0_25
; %bb.24:
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #48
	bl	_strbuf_addstr
	ldr	x0, [sp, #56]
LBB0_25:
Lloh59:
	adrp	x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGEOFF]
Lloh61:
	ldr	w5, [x8]
Lloh62:
	adrp	x1, l_.str.9@PAGE
Lloh63:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x25, sp, #40
	add	x2, sp, #40
	mov	x3, x27
	mov	w4, #0
	bl	_update_ref
	cbnz	x20, LBB0_16
	b	LBB0_30
LBB0_26:
	str	w8, [sp, #76]
	bl	_repo_read_index_unmerged
	tbz	x0, #63, LBB0_21
LBB0_27:
Lloh64:
	adrp	x0, l_.str.4@PAGE
Lloh65:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_28:
	bl	__
	bl	_error
	mov	x22, x0
	mov	w21, #0
	b	LBB0_35
LBB0_29:
Lloh66:
	adrp	x1, l_.str.9@PAGE
Lloh67:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, #0
	mov	x2, x27
	mov	w3, #0
	bl	_delete_ref
	cbnz	x20, LBB0_16
LBB0_30:
	add	x0, sp, #48
	mov	x1, x26
	bl	_strbuf_setlen
Lloh68:
	adrp	x1, l_.str.11@PAGE
Lloh69:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x0, sp, #48
	bl	_strbuf_addstr
	ldr	x20, [sp, #56]
	and	w24, w24, w22
	cbnz	x19, LBB0_17
LBB0_31:
Lloh70:
	adrp	x8, _REF_NO_DEREF@GOTPAGE
Lloh71:
	ldr	x8, [x8, _REF_NO_DEREF@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w9, #0
	csel	w4, wzr, w8, eq
Lloh73:
	adrp	x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGEOFF]
Lloh75:
	ldr	w5, [x8]
Lloh76:
	adrp	x1, l_.str.2@PAGE
Lloh77:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	mov	x3, x25
	bl	_update_ref
LBB0_32:
	mov	x22, x0
LBB0_33:
	cbz	w24, LBB0_35
; %bb.34:
Lloh78:
	adrp	x8, _null_oid@GOTPAGE
Lloh79:
	ldr	x8, [x8, _null_oid@GOTPAGEOFF]
	cmp	x25, #0
	csel	x0, x8, x25, eq
	bl	_oid_to_hex
	mov	x19, x0
	mov	x0, x23
	bl	_oid_to_hex
	mov	x3, x0
Lloh80:
	adrp	x1, l_.str.12@PAGE
Lloh81:
	add	x1, x1, l_.str.12@PAGEOFF
Lloh82:
	adrp	x4, l_.str.13@PAGE
Lloh83:
	add	x4, x4, l_.str.13@PAGEOFF
	mov	x0, #0
	mov	x2, x19
	mov	x5, #0
	bl	_run_hook_le
LBB0_35:
	add	x0, sp, #48
	bl	_strbuf_release
	add	x0, sp, #96
	bl	_rollback_lock_file
	cbz	w21, LBB0_38
; %bb.36:
	mov	w19, w21
	sub	x21, x19, #1
	lsl	x8, x21, #4
	add	x20, sp, #112
	ldr	x0, [x20, x8]
	bl	_free
	cbz	x21, LBB0_38
; %bb.37:
	add	x8, x20, x19, lsl #4
	ldur	x0, [x8, #-32]
	bl	_free
LBB0_38:
	ldur	x8, [x29, #-96]
Lloh84:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh85:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.39:
	mov	x0, x22
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_40:
	ldr	x0, [x28]
	add	x1, sp, #112
	add	x2, sp, #104
	bl	_fill_tree_descriptor
	cbz	w0, LBB0_49
; %bb.41:
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
	mov	w8, #1
LBB0_42:
	ldr	x0, [x28]
	add	w21, w8, #1
	add	x9, sp, #112
	add	x1, x9, w8, uxtw #4
	mov	x2, x23
	bl	_fill_tree_descriptor
	cbz	w0, LBB0_45
; %bb.43:
	add	x1, sp, #112
	add	x2, sp, #64
	mov	x0, x21
	bl	_unpack_trees
	cbz	x0, LBB0_47
; %bb.44:
	mov	w22, #-1
	b	LBB0_35
LBB0_45:
Lloh87:
	adrp	x0, l_.str.5@PAGE
Lloh88:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x19, x0
	mov	x0, x23
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
LBB0_46:
	bl	_error
	mov	x22, x0
	b	LBB0_35
LBB0_47:
	mov	x0, x23
	bl	_parse_tree_indirect
	mov	x2, x0
	ldr	x0, [x28]
	ldr	w1, [x0]
	bl	_prime_cache_tree
	ldr	x8, [x28]
	ldr	w0, [x8]
Lloh89:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh90:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
Lloh91:
	ldr	w2, [x8]
	add	x1, sp, #96
	bl	_write_locked_index
	tbz	x0, #63, LBB0_12
; %bb.48:
Lloh92:
	adrp	x0, l_.str.6@PAGE
Lloh93:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	b	LBB0_46
LBB0_49:
Lloh94:
	adrp	x0, l_.str.5@PAGE
Lloh95:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x19, x0
	add	x0, sp, #104
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	_error
	mov	x22, x0
	mov	w21, #1
	b	LBB0_35
LBB0_50:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_HEAD_DETACH,4,2          ; @RESET_HEAD_DETACH
	.comm	_RESET_HEAD_HARD,4,2            ; @RESET_HEAD_HARD
	.comm	_RESET_HEAD_RUN_POST_CHECKOUT_HOOK,4,2 ; @RESET_HEAD_RUN_POST_CHECKOUT_HOOK
	.comm	_RESET_HEAD_REFS_ONLY,4,2       ; @RESET_HEAD_REFS_ONLY
	.comm	_RESET_ORIG_HEAD,4,2            ; @RESET_ORIG_HEAD
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/"

l_.str.1:                               ; @.str.1
	.asciz	"Not a fully qualified branch: '%s'"

	.comm	_LOCK_REPORT_ON_ERROR,4,2       ; @LOCK_REPORT_ON_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"HEAD"

l_.str.3:                               ; @.str.3
	.asciz	"could not determine HEAD revision"

	.comm	_the_repository,8,3             ; @the_repository
	.comm	_oneway_merge,4,2               ; @oneway_merge
	.comm	_twoway_merge,4,2               ; @twoway_merge
l_.str.4:                               ; @.str.4
	.asciz	"could not read index"

l_.str.5:                               ; @.str.5
	.asciz	"failed to find tree of %s"

	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
l_.str.6:                               ; @.str.6
	.asciz	"could not write index"

	.comm	_GIT_REFLOG_ACTION_ENVIRONMENT,4,2 ; @GIT_REFLOG_ACTION_ENVIRONMENT
l_.str.7:                               ; @.str.7
	.asciz	"%s: "

l_.str.8:                               ; @.str.8
	.asciz	"rebase"

l_.str.9:                               ; @.str.9
	.asciz	"ORIG_HEAD"

l_.str.10:                              ; @.str.10
	.asciz	"updating ORIG_HEAD"

	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ; @UPDATE_REFS_MSG_ON_ERR
l_.str.11:                              ; @.str.11
	.asciz	"updating HEAD"

	.comm	_REF_NO_DEREF,4,2               ; @REF_NO_DEREF
l_.str.12:                              ; @.str.12
	.asciz	"post-checkout"

	.comm	_null_oid,4,2                   ; @null_oid
l_.str.13:                              ; @.str.13
	.asciz	"1"

	.no_dead_strip	_reset_head
.subsections_via_symbols
