	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interpret_nth_prior_checkout
_interpret_nth_prior_checkout:          ## @interpret_nth_prior_checkout
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	cmpl	$4, %edx
	jl	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	cmpb	$64, (%rsi)
	jne	LBB0_8
## %bb.2:
	cmpb	$123, 1(%r14)
	jne	LBB0_8
## %bb.3:
	cmpb	$45, 2(%r14)
	jne	LBB0_8
## %bb.4:
	movq	%rcx, %r12
	movq	%rdi, %r13
	movq	%r14, %rdi
	movl	$125, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r15
	leaq	3(%r14), %rdi
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	cmpq	%r15, -48(%rbp)
	jne	LBB0_8
## %bb.6:
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	movq	%rax, -64(%rbp)
	movq	%r12, -56(%rbp)
	movq	%r13, %rdi
	callq	_get_main_ref_store
	movq	_grab_nth_branch_switch@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rcx
	movl	%eax, %edi
	callq	_refs_for_each_reflog_ent_reverse
	subl	%r14d, %r15d
	incl	%r15d
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovgl	%r15d, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_grab_nth_branch_switch,4,2     ## @grab_nth_branch_switch
	.no_dead_strip	_interpret_nth_prior_checkout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interpret_nth_prior_checkout
_interpret_nth_prior_checkout:          ; @interpret_nth_prior_checkout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	cmp	w2, #4
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	ldrb	w8, [x1]
	cmp	w8, #64
	b.ne	LBB0_8
; %bb.2:
	ldrb	w8, [x19, #1]
	cmp	w8, #123
	b.ne	LBB0_8
; %bb.3:
	ldrb	w8, [x19, #2]
	cmp	w8, #45
	b.ne	LBB0_8
; %bb.4:
	mov	x20, x3
	mov	x21, x0
	mov	x0, x19
	mov	w1, #125
	bl	_memchr
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	add	x0, x19, #3
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x8, x0
	ldr	x9, [sp, #8]
	mov	w0, #-1
	cmp	x9, x22
	b.ne	LBB0_9
; %bb.6:
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	stp	x8, x20, [sp, #16]
	mov	x0, x21
	bl	_get_main_ref_store
Lloh0:
	adrp	x8, _grab_nth_branch_switch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _grab_nth_branch_switch@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #16
	bl	_refs_for_each_reflog_ent_reverse
	sub	w8, w22, w19
	cmp	w0, #0
	csinc	w0, wzr, w8, le
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_grab_nth_branch_switch,4,2     ; @grab_nth_branch_switch
	.no_dead_strip	_interpret_nth_prior_checkout
.subsections_via_symbols
