	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grab_nth_branch_switch
_grab_nth_branch_switch:                ## @grab_nth_branch_switch
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rdi
	movq	$0, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	callq	_skip_prefix
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	-40(%rbp), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	16(%rbp), %r12
	decq	(%r12)
	jne	LBB0_5
## %bb.4:
	subq	%rbx, %r14
	movl	8(%r12), %edi
	callq	_strbuf_reset
	movl	8(%r12), %edi
	movq	-40(%rbp), %rsi
	movq	%r14, %rdx
	callq	_strbuf_add
	movl	$1, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"checkout: moving from "

L_.str.1:                               ## @.str.1
	.asciz	" to "

	.no_dead_strip	_grab_nth_branch_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grab_nth_branch_switch
_grab_nth_branch_switch:                ; @grab_nth_branch_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x6
	mov	x0, x5
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x20, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.eq	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	sub	x20, x0, x20
	ldr	w0, [x19, #8]
	bl	_strbuf_reset
	ldr	w0, [x19, #8]
	ldr	x1, [sp, #8]
	mov	x2, x20
	bl	_strbuf_add
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"checkout: moving from "

l_.str.1:                               ; @.str.1
	.asciz	" to "

	.no_dead_strip	_grab_nth_branch_switch
.subsections_via_symbols
