	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_reset_branch
_parse_reset_branch:                    ## @parse_reset_branch
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_lookup_branch
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$32, %rdi
	callq	_oidclr
	movq	24(%rbx), %rdi
	callq	_oidclr
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	callq	_oidclr
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_release_tree_content_recursive
	movq	$0, 16(%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_new_branch
	movq	%rax, %rbx
LBB0_4:
	xorl	%eax, %eax
	callq	_read_next_command
	movq	%rbx, %rdi
	callq	_parse_from
	cmpq	$0, 8(%rbx)
	je	LBB0_15
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	_first_tag@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.7:
	movl	8(%rbx), %edi
	movq	-32(%rbp), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r15
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	8(%rbx), %edi
	movq	-32(%rbp), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_9
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	(%rbx), %rax
	movq	%r15, %rcx
	testq	%r15, %r15
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rcx
LBB0_11:
	movq	%rax, (%rcx)
	cmpq	$0, (%rbx)
	jne	LBB0_15
## %bb.12:
	movq	_last_tag@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
LBB0_15:
	movq	_command_buf@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_17
## %bb.16:
	movq	_unread_command_buf@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/tags/"

	.comm	_first_tag,8,3                  ## @first_tag
	.comm	_last_tag,8,3                   ## @last_tag
	.comm	_command_buf,8,3                ## @command_buf
	.comm	_unread_command_buf,4,2         ## @unread_command_buf
	.no_dead_strip	_parse_reset_branch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_reset_branch
_parse_reset_branch:                    ; @parse_reset_branch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_lookup_branch
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #32
	bl	_oidclr
	ldr	x0, [x19, #24]
	bl	_oidclr
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	bl	_oidclr
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_release_tree_content_recursive
	str	xzr, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_new_branch
	mov	x19, x0
LBB0_4:
	bl	_read_next_command
	mov	x0, x19
	bl	_parse_from
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.5:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	x0, LBB0_13
; %bb.6:
Lloh2:
	adrp	x19, _first_tag@GOTPAGE
Lloh3:
	ldr	x19, [x19, _first_tag@GOTPAGEOFF]
	ldr	x20, [x19]
	cbz	x20, LBB0_13
; %bb.7:
	ldr	w0, [x20, #8]
	ldr	x1, [sp, #8]
	bl	_strcmp
	cbz	w0, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x20
	ldr	x20, [x20]
	cbz	x20, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #8]
	ldr	x1, [sp, #8]
	bl	_strcmp
	cbnz	w0, LBB0_8
	b	LBB0_11
LBB0_10:
	mov	x21, #0
LBB0_11:
	ldr	x8, [x20]
	cmp	x21, #0
	csel	x9, x19, x21, eq
	str	x8, [x9]
	ldr	x8, [x20]
	cbnz	x8, LBB0_13
; %bb.12:
Lloh4:
	adrp	x8, _last_tag@GOTPAGE
Lloh5:
	ldr	x8, [x8, _last_tag@GOTPAGEOFF]
Lloh6:
	str	x21, [x8]
LBB0_13:
Lloh7:
	adrp	x8, _command_buf@GOTPAGE
Lloh8:
	ldr	x8, [x8, _command_buf@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.14:
Lloh10:
	adrp	x8, _unread_command_buf@GOTPAGE
Lloh11:
	ldr	x8, [x8, _unread_command_buf@GOTPAGEOFF]
	mov	w9, #1
Lloh12:
	str	w9, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/tags/"

	.comm	_first_tag,8,3                  ; @first_tag
	.comm	_last_tag,8,3                   ; @last_tag
	.comm	_command_buf,8,3                ; @command_buf
	.comm	_unread_command_buf,4,2         ; @unread_command_buf
	.no_dead_strip	_parse_reset_branch
.subsections_via_symbols
