	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_exact_ref_match
_get_exact_ref_match:                   ## @get_exact_ref_match
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tip_table@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rsi
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movl	16(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.2:
	movq	%rdi, %r14
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_tipcmp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_QSORT
	movl	$1, (%rbx)
	movq	8(%rbx), %rsi
	movl	16(%rbx), %edx
LBB0_4:
	movl	(%r14), %edi
	movq	_nth_tip_table_ent@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_sha1_pos
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	8(%rbx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tip_table,24,3                 ## @tip_table
	.comm	_tipcmp,4,2                     ## @tipcmp
	.comm	_nth_tip_table_ent,4,2          ## @nth_tip_table_ent
	.no_dead_strip	_get_exact_ref_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_exact_ref_match
_get_exact_ref_match:                   ; @get_exact_ref_match
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _tip_table@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tip_table@GOTPAGEOFF]
	ldr	x1, [x20, #8]
	ldr	w2, [x20, #16]
	cmp	x1, #0
	ccmp	w2, #0, #4, ne
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _tipcmp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tipcmp@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	bl	_QSORT
	mov	w8, #1
	str	w8, [x20]
	ldr	x1, [x20, #8]
	ldr	w2, [x20, #16]
LBB0_3:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _nth_tip_table_ent@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nth_tip_table_ent@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_sha1_pos
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, w0, uxtw #3]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tip_table,24,3                 ; @tip_table
	.comm	_tipcmp,4,2                     ; @tipcmp
	.comm	_nth_tip_table_ent,4,2          ; @nth_tip_table_ent
	.no_dead_strip	_get_exact_ref_match
.subsections_via_symbols
