	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_symref_reflog
_update_symref_reflog:                  ## @update_symref_reflog
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	testq	%r8, %r8
	je	LBB0_4
## %bb.1:
	movq	%r8, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_RESOLVE_REF_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_refs_read_ref_full
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-40(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_files_log_ref_write
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-40(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_error
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_RESOLVE_REF_READING,4,2        ## @RESOLVE_REF_READING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_update_symref_reflog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_symref_reflog
_update_symref_reflog:                  ; @update_symref_reflog
	.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
Lloh0:
	adrp	x9, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	cbz	x4, LBB0_4
; %bb.1:
	mov	x19, x4
	mov	x8, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh3:
	adrp	x9, _RESOLVE_REF_READING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RESOLVE_REF_READING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x3, sp
	mov	x1, x8
	mov	x4, #0
	bl	_refs_read_ref_full
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x3, sp
	add	x6, sp, #8
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x4, x19
	mov	w5, #0
	bl	_files_log_ref_write
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [sp, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_RESOLVE_REF_READING,4,2        ; @RESOLVE_REF_READING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_update_symref_reflog
.subsections_via_symbols
