	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_head
_update_head:                           ## @update_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%edx, %edx
	callq	_create_symref
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_4:
	movq	_option_bare@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.5:
	movq	_UPDATE_REFS_DIE_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_update_ref
	movq	-24(%rbp), %rsi
	movq	_option_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	xorl	%edi, %edi
	callq	_install_branch_config
	jmp	LBB0_9
LBB0_6:
	movq	%rsi, %rdx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_UPDATE_REFS_DIE_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_update_ref                     ## TAILCALL
LBB0_8:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_lookup_commit_reference
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_UPDATE_REFS_DIE_ON_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_update_ref
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

L_.str.1:                               ## @.str.1
	.asciz	"HEAD"

L_.str.2:                               ## @.str.2
	.asciz	"unable to update HEAD"

	.comm	_option_bare,4,2                ## @option_bare
	.comm	_UPDATE_REFS_DIE_ON_ERR,4,2     ## @UPDATE_REFS_DIE_ON_ERR
	.comm	_option_origin,4,2              ## @option_origin
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_REF_NO_DEREF,4,2               ## @REF_NO_DEREF
	.no_dead_strip	_update_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_head
_update_head:                           ; @update_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w1, [x20, #4]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_create_symref
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
LBB0_4:
Lloh6:
	adrp	x8, _option_bare@GOTPAGE
Lloh7:
	ldr	x8, [x8, _option_bare@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.5:
Lloh9:
	adrp	x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	mov	w4, #0
	bl	_update_ref
	ldr	x1, [sp, #8]
Lloh14:
	adrp	x8, _option_origin@GOTPAGE
Lloh15:
	ldr	x8, [x8, _option_origin@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x20, #4]
	mov	w0, #0
	bl	_install_branch_config
	b	LBB0_9
LBB0_6:
	mov	x2, x1
	cbz	x1, LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _REF_NO_DEREF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REF_NO_DEREF@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
Lloh20:
	adrp	x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_update_ref
LBB0_8:
Lloh25:
	adrp	x8, _the_repository@GOTPAGE
Lloh26:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_lookup_commit_reference
	mov	x2, x0
Lloh28:
	adrp	x8, _REF_NO_DEREF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REF_NO_DEREF@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
Lloh31:
	adrp	x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGEOFF]
Lloh33:
	ldr	w5, [x8]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	bl	_update_ref
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

l_.str.1:                               ; @.str.1
	.asciz	"HEAD"

l_.str.2:                               ; @.str.2
	.asciz	"unable to update HEAD"

	.comm	_option_bare,4,2                ; @option_bare
	.comm	_UPDATE_REFS_DIE_ON_ERR,4,2     ; @UPDATE_REFS_DIE_ON_ERR
	.comm	_option_origin,4,2              ; @option_origin
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_REF_NO_DEREF,4,2               ; @REF_NO_DEREF
	.no_dead_strip	_update_head
.subsections_via_symbols
