	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function should_pack_ref
_should_pack_ref:                       ## @should_pack_ref
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ref_type
	movq	_REF_TYPE_NORMAL@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_PACK_REFS_ALL@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_starts_with
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ref_resolves_to_object
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_TYPE_NORMAL,8,3            ## @REF_TYPE_NORMAL
	.comm	_PACK_REFS_ALL,4,2              ## @PACK_REFS_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/tags/"

	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
	.no_dead_strip	_should_pack_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function should_pack_ref
_should_pack_ref:                       ; @should_pack_ref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ref_type
Lloh0:
	adrp	x8, _REF_TYPE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REF_TYPE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _PACK_REFS_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACK_REFS_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_starts_with
	cbz	w0, LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _REF_ISSYMREF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REF_ISSYMREF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ref_resolves_to_object
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_TYPE_NORMAL,8,3            ; @REF_TYPE_NORMAL
	.comm	_PACK_REFS_ALL,4,2              ; @PACK_REFS_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/tags/"

	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
	.no_dead_strip	_should_pack_ref
.subsections_via_symbols
