	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function files_log_ref_write
_files_log_ref_write:                   ## @files_log_ref_write
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rbp), %r8
	movq	_log_all_ref_updates@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_LOG_REFS_UNSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_is_bare_repository
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_LOG_REFS_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_LOG_REFS_NONE@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	16(%rbp), %r8
LBB0_5:
	movq	_REF_FORCE_CREATE_REFLOG@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_log_ref_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movl	-44(%rbp), %ebx
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.7:
	xorl	%edi, %edi
	callq	_git_committer_info
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_log_ref_write_fd
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-56(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_files_reflog_path
	movl	-56(%rbp), %r15d
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	16(%rbp), %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_strbuf_addf
	movq	%r14, %rdi
	callq	_strbuf_release
	movl	-44(%rbp), %edi
	callq	_close
	jmp	LBB0_11
LBB0_9:
	movl	-44(%rbp), %edi
	callq	_close
	testq	%rax, %rax
	movq	16(%rbp), %r14
	je	LBB0_12
## %bb.10:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_files_reflog_path
	movl	-48(%rbp), %r15d
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_strbuf_addf
	movq	%r12, %rdi
	callq	_strbuf_release
LBB0_11:
	movl	$-1, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_all_ref_updates,8,3        ## @log_all_ref_updates
	.comm	_LOG_REFS_UNSET,8,3             ## @LOG_REFS_UNSET
	.comm	_LOG_REFS_NONE,8,3              ## @LOG_REFS_NONE
	.comm	_LOG_REFS_NORMAL,8,3            ## @LOG_REFS_NORMAL
	.comm	_REF_FORCE_CREATE_REFLOG,4,2    ## @REF_FORCE_CREATE_REFLOG
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to append to '%s': %s"

	.no_dead_strip	_files_log_ref_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function files_log_ref_write
_files_log_ref_write:                   ; @files_log_ref_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x6
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _log_all_ref_updates@GOTPAGE
Lloh1:
	ldr	x26, [x26, _log_all_ref_updates@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh2:
	adrp	x9, _LOG_REFS_UNSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LOG_REFS_UNSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_is_bare_repository
Lloh5:
	adrp	x8, _LOG_REFS_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_REFS_NONE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _LOG_REFS_NORMAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LOG_REFS_NORMAL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	str	x8, [x26]
LBB0_2:
Lloh9:
	adrp	x8, _REF_FORCE_CREATE_REFLOG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REF_FORCE_CREATE_REFLOG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w2, w8, w25
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_log_ref_setup
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w25, [sp, #12]
	tbnz	w25, #31, LBB0_6
; %bb.4:
	mov	w0, #0
	bl	_git_committer_info
	mov	x3, x0
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x4, x22
	bl	_log_ref_write_fd
	cbz	w0, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_files_reflog_path
	ldr	w20, [sp, #8]
	mov	x0, x22
	bl	_strerror
	mov	x3, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_strbuf_addf
	add	x0, sp, #8
	bl	_strbuf_release
	ldr	w0, [sp, #12]
	bl	_close
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	w0, [sp, #12]
	bl	_close
	cbz	x0, LBB0_10
; %bb.8:
Lloh20:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	mov	x1, sp
	mov	x0, x21
	mov	x2, x20
	bl	_files_reflog_path
	ldr	w20, [sp]
	mov	x0, x22
	bl	_strerror
	mov	x3, x0
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_strbuf_addf
	mov	x0, sp
	bl	_strbuf_release
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_log_all_ref_updates,8,3        ; @log_all_ref_updates
	.comm	_LOG_REFS_UNSET,8,3             ; @LOG_REFS_UNSET
	.comm	_LOG_REFS_NONE,8,3              ; @LOG_REFS_NONE
	.comm	_LOG_REFS_NORMAL,8,3            ; @LOG_REFS_NORMAL
	.comm	_REF_FORCE_CREATE_REFLOG,4,2    ; @REF_FORCE_CREATE_REFLOG
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to append to '%s': %s"

	.no_dead_strip	_files_log_ref_write
.subsections_via_symbols
