	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ref_match
_get_ref_match:                         ## @get_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.1:
	movl	%ecx, %r13d
	movq	%rdi, %rbx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	$-1, %r14d
	movl	$32, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %r14d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$40, %r12
	cmpq	%rcx, %r15
	jge	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	cmpq	$0, -16(%rcx,%r12)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %r14d
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rcx,%r12)
	jne	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -8(%rcx,%r12)
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-32(%rcx,%r12), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-24(%rcx,%r12), %rax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_FROM_SRC@GOTPCREL(%rip), %rdx
	cmpl	%r13d, (%rdx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-24(%rcx,%r12), %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	movq	%rax, %rdx
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %esi
	movq	-24(%rcx,%r12), %rdx
	movq	%rax, %rdi
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-56(%rbp), %rcx
	callq	_match_name_with_pattern
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %eax
	jmp	LBB0_3
LBB0_17:
	movl	%r15d, %r14d
LBB0_18:
	cmpl	$-1, %r14d
	je	LBB0_26
## %bb.19:
	movq	8(%rbx), %r15
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rbx
	cmpq	$0, 16(%r15,%rbx,8)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_23
## %bb.20:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testl	%eax, %eax
	je	LBB0_26
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_xstrdup
	movq	%rax, -56(%rbp)
LBB0_23:
	testq	%r14, %r14
	je	LBB0_25
## %bb.24:
	leaq	(%r15,%rbx,8), %rax
	movq	%rax, (%r14)
LBB0_25:
	movq	-56(%rbp), %rax
	jmp	LBB0_27
LBB0_26:
	xorl	%eax, %eax
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FROM_SRC,4,2                   ## @FROM_SRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

	.no_dead_strip	_get_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_ref_match
_get_ref_match:                         ; @get_ref_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x26, #0
	mov	x24, #0
	mov	w25, #-1
Lloh0:
	adrp	x27, _FROM_SRC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FROM_SRC@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x26, x26, #40
	cmp	x24, w8, sxtw
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	add	x10, x9, x26
	ldr	x11, [x10, #16]
	cbz	x11, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	w25, #1
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x9, x26
	ldr	x11, [x11, #32]
	cbnz	x11, LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x10, #24]
	cbz	x10, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x9, x26]
	cbnz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, x26
	ldr	x8, [x8, #8]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x27]
	cmp	w10, w23
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, x26
	ldr	x0, [x9, #8]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x2, x8
	bl	_match_name_with_pattern
	cbz	w0, LBB0_13
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20]
	add	x9, x9, x26
	ldr	x2, [x9, #8]
	add	x3, sp, #8
	mov	x0, x8
	bl	_match_name_with_pattern
	cbnz	w0, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	b	LBB0_3
LBB0_14:
	mov	x25, x24
LBB0_15:
	cmn	w25, #1
	b.eq	LBB0_23
; %bb.16:
	ldr	x8, [x22, #8]
	mov	w9, #40
	smaddl	x22, w25, w9, x8
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_20
; %bb.17:
	cbnz	w21, LBB0_19
; %bb.18:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_starts_with
	cbz	w0, LBB0_23
LBB0_19:
	ldr	w0, [x20]
	bl	_xstrdup
	str	x0, [sp, #8]
LBB0_20:
	cbz	x19, LBB0_22
; %bb.21:
	str	x22, [x19]
LBB0_22:
	ldr	x0, [sp, #8]
	b	LBB0_24
LBB0_23:
	mov	x0, #0
LBB0_24:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FROM_SRC,4,2                   ; @FROM_SRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

	.no_dead_strip	_get_ref_match
.subsections_via_symbols
