	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_branch
_update_branch:                         ## @update_branch
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_17
## %bb.2:
	movl	4(%rbx), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_delete_ref
	jmp	LBB0_18
LBB0_3:
	movl	4(%rbx), %edi
	leaq	-40(%rbp), %rsi
	callq	_read_ref
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rdi
	callq	_oidclr
LBB0_5:
	movq	_force_update@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.6:
	leaq	-40(%rbp), %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_7
LBB0_12:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_ref_transaction_begin
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	4(%rbx), %esi
	movq	%r15, (%rsp)
	leaq	L_.str(%rip), %r9
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_ref_transaction_update
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ref_transaction_commit
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	callq	_ref_transaction_free
	movl	-32(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_error
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %ebx
	jmp	LBB0_18
LBB0_7:
	movq	_the_repository@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_lookup_commit_reference_gently
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_lookup_commit_reference_gently
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_in_merge_bases
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movl	%eax, %ebx
	leaq	-40(%rbp), %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_warning
	movl	$-1, %ebx
	jmp	LBB0_18
LBB0_16:
	movq	%r14, %rdi
	callq	_ref_transaction_free
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fast-import"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_force_update,4,2               ## @force_update
	.comm	_the_repository,4,2             ## @the_repository
L_.str.1:                               ## @.str.1
	.asciz	"Branch %s is missing commits."

L_.str.2:                               ## @.str.2
	.asciz	"Not updating %s (new tip %s does not contain %s)"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.no_dead_strip	_update_branch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_branch
_update_branch:                         ; @update_branch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	bl	_is_null_oid
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x19, #4]
	mov	x0, #0
	mov	x2, #0
	mov	w3, #0
	bl	_delete_ref
LBB0_3:
	mov	w0, #0
	b	LBB0_13
LBB0_4:
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_read_ref
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, sp, #8
	bl	_oidclr
LBB0_6:
Lloh3:
	adrp	x8, _force_update@GOTPAGE
Lloh4:
	ldr	x8, [x8, _force_update@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.7:
	add	x0, sp, #8
	bl	_is_null_oid
	cbz	x0, LBB0_14
LBB0_8:
	mov	x0, sp
	bl	_ref_transaction_begin
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w1, [x19, #4]
Lloh6:
	adrp	x5, l_.str@PAGE
Lloh7:
	add	x5, x5, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x6, sp
	mov	x0, x20
	mov	x2, x19
	mov	w4, #0
	bl	_ref_transaction_update
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x1, sp
	mov	x0, x20
	bl	_ref_transaction_commit
	cbz	x0, LBB0_16
LBB0_11:
	mov	x0, x20
	bl	_ref_transaction_free
	ldr	w1, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
	mov	x0, sp
	bl	_strbuf_release
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
Lloh10:
	adrp	x21, _the_repository@GOTPAGE
Lloh11:
	ldr	x21, [x21, _the_repository@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #0
	bl	_lookup_commit_reference_gently
	mov	x20, x0
	ldr	w0, [x21]
	mov	x1, x19
	mov	w2, #0
	bl	_lookup_commit_reference_gently
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_17
; %bb.15:
	ldr	w1, [x19, #4]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_13
LBB0_16:
	mov	x0, x20
	bl	_ref_transaction_free
	mov	x0, sp
	bl	_strbuf_release
	b	LBB0_3
LBB0_17:
	mov	x1, x0
	mov	x0, x20
	bl	_in_merge_bases
	cbnz	w0, LBB0_8
; %bb.18:
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_oid_to_hex
	mov	x19, x0
	add	x0, sp, #8
	bl	_oid_to_hex
	mov	x3, x0
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_warning
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fast-import"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_force_update,4,2               ; @force_update
	.comm	_the_repository,4,2             ; @the_repository
l_.str.1:                               ; @.str.1
	.asciz	"Branch %s is missing commits."

l_.str.2:                               ; @.str.2
	.asciz	"Not updating %s (new tip %s does not contain %s)"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.no_dead_strip	_update_branch
.subsections_via_symbols
