	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_tag                      ## -- Begin function parse_tag
	.p2align	4, 0x90
_parse_tag:                             ## @parse_tag
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	leaq	-28(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_read_object_file
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	movl	-28(%rbp), %eax
	movq	_OBJ_TAG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %rcx
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_parse_tag_buffer
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_2:
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movl	%eax, %esi
	callq	_error
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read %s"

	.comm	_OBJ_TAG,4,2                    ## @OBJ_TAG
L_.str.1:                               ## @.str.1
	.asciz	"Object %s not a tag"

	.comm	_the_repository,4,2             ## @the_repository
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_tag                      ; -- Begin function parse_tag
	.p2align	2
_parse_tag:                             ; @parse_tag
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	add	x1, sp, #12
	mov	x2, sp
	bl	_read_object_file
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _OBJ_TAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _the_repository@GOTPAGE
Lloh4:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x3, [sp]
	mov	x1, x19
	mov	x2, x20
	bl	_parse_tag_buffer
	mov	x19, x0
	mov	x0, x20
	bl	_free
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_error
	mov	x19, x0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read %s"

	.comm	_OBJ_TAG,4,2                    ; @OBJ_TAG
l_.str.1:                               ; @.str.1
	.asciz	"Object %s not a tag"

	.comm	_the_repository,4,2             ; @the_repository
.subsections_via_symbols
