	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_ref_write_fd
_log_ref_write_fd:                      ## @log_ref_write_fd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%edi, %r14d
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_oid_to_hex
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_strbuf_addf
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	cmpb	$0, (%r12)
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_copy_reflog_msg
LBB0_3:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movl	%r14d, %edi
	callq	_write_in_full
	movq	%rax, %rbx
	sarq	$63, %rbx
	movq	%r15, %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s %s"

	.no_dead_strip	_log_ref_write_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_ref_write_fd
_log_ref_write_fd:                      ; @log_ref_write_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, x1
	bl	_oid_to_hex
	mov	x23, x0
	mov	x0, x22
	bl	_oid_to_hex
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x23
	mov	x4, x21
	bl	_strbuf_addf
	cbz	x20, LBB0_3
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_3
; %bb.2:
	add	x0, sp, #8
	mov	x1, x20
	bl	_copy_reflog_msg
LBB0_3:
	add	x0, sp, #8
	mov	w1, #10
	bl	_strbuf_addch
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_write_in_full
	asr	x19, x0, #63
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s %s"

	.no_dead_strip	_log_ref_write_fd
.subsections_via_symbols
