	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_ref_at                    ## -- Begin function read_ref_at
	.p2align	4, 0x90
_read_ref_at:                           ## @read_ref_at
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	%rbx, -128(%rbp)
	movl	%r15d, -56(%rbp)
	movl	%r12d, -120(%rbp)
	movq	16(%rbp), %rax
	movq	%rax, -112(%rbp)
	movq	24(%rbp), %rax
	movq	%rax, -64(%rbp)
	movaps	32(%rbp), %xmm0
	movups	%xmm0, -104(%rbp)
	movq	%r13, -72(%rbp)
	movq	_read_ref_at_ent@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-128(%rbp), %rcx
	callq	_refs_for_each_reflog_ent_reverse
	cmpl	$0, -80(%rbp)
	jne	LBB0_3
## %bb.1:
	movq	_GET_OID_QUIETLY@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_die
LBB0_3:
	cmpq	$0, -88(%rbp)
	movl	$0, %eax
	jne	LBB0_5
## %bb.4:
	movq	_read_ref_at_ent_oldest@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-128(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_refs_for_each_reflog_ent
	movl	$1, %eax
LBB0_5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$128, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_read_ref_at_ent,4,2            ## @read_ref_at_ent
	.comm	_GET_OID_QUIETLY,4,2            ## @GET_OID_QUIETLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"log for %s is empty"

	.comm	_read_ref_at_ent_oldest,4,2     ## @read_ref_at_ent_oldest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_ref_at                    ; -- Begin function read_ref_at
	.p2align	2
_read_ref_at:                           ; @read_ref_at
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	x28, x27, [x29, #16]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	str	x19, [sp]
	str	w26, [sp, #72]
	str	w25, [sp, #8]
	stp	x24, x22, [sp, #56]
	stp	x23, x28, [sp, #16]
	str	x27, [sp, #32]
Lloh0:
	adrp	x8, _read_ref_at_ent@GOTPAGE
Lloh1:
	ldr	x8, [x8, _read_ref_at_ent@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_refs_for_each_reflog_ent_reverse
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_5
LBB0_2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _GET_OID_QUIETLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GET_OID_QUIETLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
	ldr	x8, [sp, #40]
	cbnz	x8, LBB0_2
LBB0_5:
Lloh8:
	adrp	x8, _read_ref_at_ent_oldest@GOTPAGE
Lloh9:
	ldr	x8, [x8, _read_ref_at_ent_oldest@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_refs_for_each_reflog_ent
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	mov	w0, #128
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_read_ref_at_ent,4,2            ; @read_ref_at_ent
	.comm	_GET_OID_QUIETLY,4,2            ; @GET_OID_QUIETLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"log for %s is empty"

	.comm	_read_ref_at_ent_oldest,4,2     ; @read_ref_at_ent_oldest
.subsections_via_symbols
