	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_tag_buffer               ## -- Begin function parse_tag_buffer
	.p2align	4, 0x90
_parse_tag_buffer:                      ## @parse_tag_buffer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -88(%rbp)
	xorl	%r14d, %r14d
	cmpl	$0, 16(%rsi)
	jne	LBB0_24
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, %r13
	movl	$1, 16(%rsi)
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	addq	$24, %rax
	movl	$-1, %r14d
	cmpq	%rcx, %rax
	ja	LBB0_24
## %bb.2:
	movq	%rdx, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_24
## %bb.3:
	leaq	7(%r15), %rdi
	leaq	-96(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_parse_oid_hex
	testq	%rax, %rax
	jne	LBB0_24
## %bb.4:
	movq	-88(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	%rdi, -88(%rbp)
	cmpb	$10, (%rax)
	jne	LBB0_24
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_24
## %bb.6:
	addq	%rbx, %r15
	movq	-88(%rbp), %rdi
	addq	$5, %rdi
	movq	%rdi, -88(%rbp)
	movl	%r15d, %edx
	subl	%edi, %edx
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_24
## %bb.7:
	movq	%rax, %rbx
	movq	-88(%rbp), %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	cmpq	$19, %rdx
	ja	LBB0_24
## %bb.8:
	leaq	-80(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-88(%rbp), %rax
	movq	%rbx, %rcx
	subq	%rax, %rcx
	movb	$0, -80(%rbp,%rcx)
	incq	%rbx
	movq	%rbx, -88(%rbp)
	movq	_blob_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	_tree_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_commit_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	_tag_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	leaq	-80(%rbp), %rsi
	callq	_error
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_9:
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lookup_blob
	jmp	LBB0_17
LBB0_11:
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lookup_tree
	jmp	LBB0_17
LBB0_13:
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lookup_commit
	jmp	LBB0_17
LBB0_15:
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lookup_tag
LBB0_17:
	movq	%rax, 8(%r13)
	movq	-88(%rbp), %rdi
	leaq	4(%rdi), %rax
	cmpq	%r15, %rax
	jae	LBB0_24
## %bb.18:
	leaq	L_.str.3(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_24
## %bb.19:
	movq	-88(%rbp), %rdi
	addq	$4, %rdi
	movq	%rdi, -88(%rbp)
	movl	%r15d, %edx
	subl	%edi, %edx
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	%rax, %rbx
	movq	-88(%rbp), %rdi
	movl	%ebx, %esi
	subl	%edi, %esi
	callq	_xmemdupz
	movl	%eax, 4(%r13)
	leaq	1(%rbx), %rdi
	movq	%rdi, -88(%rbp)
	addq	$8, %rbx
	xorl	%r14d, %r14d
	movl	$0, %eax
	cmpq	%r15, %rbx
	jae	LBB0_23
## %bb.21:
	leaq	L_.str.4(%rip), %rsi
	callq	_starts_with
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.22:
	movq	-88(%rbp), %rdi
	movq	%r15, %rsi
	callq	_parse_tag_date
LBB0_23:
	movl	%eax, (%r13)
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"object "

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

	.comm	_blob_type,4,2                  ## @blob_type
	.comm	_tree_type,4,2                  ## @tree_type
	.comm	_commit_type,4,2                ## @commit_type
	.comm	_tag_type,4,2                   ## @tag_type
L_.str.2:                               ## @.str.2
	.asciz	"Unknown type %s"

L_.str.3:                               ## @.str.3
	.asciz	"tag "

L_.str.4:                               ## @.str.4
	.asciz	"tagger "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_tag_buffer               ; -- Begin function parse_tag_buffer
	.p2align	2
_parse_tag_buffer:                      ; @parse_tag_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	x2, [sp, #8]
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_25
LBB0_2:
	mov	x20, x3
	mov	x19, x1
	mov	w8, #1
	str	w8, [x1, #16]
Lloh3:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	add	x8, x8, #24
	cmp	x8, x3
	b.hi	LBB0_24
; %bb.3:
	mov	x22, x2
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	w2, #7
	bl	_memcmp
	cbnz	x0, LBB0_24
; %bb.4:
	add	x0, x22, #7
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_parse_oid_hex
	cbnz	x0, LBB0_24
; %bb.5:
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #10
	b.ne	LBB0_24
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_24
; %bb.7:
	ldr	x8, [sp, #8]
	add	x0, x8, #5
	str	x0, [sp, #8]
	add	x20, x22, x20
	sub	w2, w20, w0
	mov	w1, #10
	bl	_memchr
	cbz	x0, LBB0_24
; %bb.8:
	mov	x22, x0
	ldr	x1, [sp, #8]
	sub	x2, x0, x1
	cmp	x2, #19
	b.hi	LBB0_24
; %bb.9:
	add	x23, sp, #20
	add	x0, sp, #20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	x8, [sp, #8]
	sub	x8, x22, x8
	strb	wzr, [x23, x8]
	add	x8, x22, #1
	str	x8, [sp, #8]
Lloh10:
	adrp	x8, _blob_type@GOTPAGE
Lloh11:
	ldr	x8, [x8, _blob_type@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x0, sp, #20
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.10:
Lloh13:
	adrp	x8, _tree_type@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tree_type@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x0, sp, #20
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.11:
Lloh16:
	adrp	x8, _commit_type@GOTPAGE
Lloh17:
	ldr	x8, [x8, _commit_type@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x0, sp, #20
	bl	_strcmp
	cbz	w0, LBB0_16
; %bb.12:
Lloh19:
	adrp	x8, _tag_type@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tag_type@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x0, sp, #20
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.13:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #20
	bl	_error
	mov	x0, #0
	b	LBB0_18
LBB0_14:
	add	x1, sp, #16
	mov	x0, x21
	bl	_lookup_blob
	b	LBB0_18
LBB0_15:
	add	x1, sp, #16
	mov	x0, x21
	bl	_lookup_tree
	b	LBB0_18
LBB0_16:
	add	x1, sp, #16
	mov	x0, x21
	bl	_lookup_commit
	b	LBB0_18
LBB0_17:
	add	x1, sp, #16
	mov	x0, x21
	bl	_lookup_tag
LBB0_18:
	str	x0, [x19, #8]
	ldr	x0, [sp, #8]
	add	x8, x0, #4
	cmp	x8, x20
	b.hs	LBB0_24
; %bb.19:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_24
; %bb.20:
	ldr	x8, [sp, #8]
	add	x0, x8, #4
	str	x0, [sp, #8]
	sub	w2, w20, w0
	mov	w1, #10
	bl	_memchr
	cbz	x0, LBB0_24
; %bb.21:
	mov	x21, x0
	ldr	x0, [sp, #8]
	sub	w1, w21, w0
	bl	_xmemdupz
	str	w0, [x19, #4]
	add	x0, x21, #1
	str	x0, [sp, #8]
	add	x8, x21, #8
	cmp	x8, x20
	b.hs	LBB0_27
; %bb.22:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_27
; %bb.23:
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_parse_tag_date
	mov	x8, x0
	b	LBB0_28
LBB0_24:
	mov	w0, #-1
LBB0_25:
	ldr	x8, [sp, #40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.26:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_27:
	mov	w8, #0
LBB0_28:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_25
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"object "

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

	.comm	_blob_type,4,2                  ; @blob_type
	.comm	_tree_type,4,2                  ; @tree_type
	.comm	_commit_type,4,2                ; @commit_type
	.comm	_tag_type,4,2                   ; @tag_type
l_.str.2:                               ; @.str.2
	.asciz	"Unknown type %s"

l_.str.3:                               ; @.str.3
	.asciz	"tag "

l_.str.4:                               ; @.str.4
	.asciz	"tagger "

.subsections_via_symbols
