	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_refspecs                 ## -- Begin function query_refspecs
	.p2align	4, 0x90
_query_refspecs:                        ## @query_refspecs
	.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, %rbx
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_4:
	movl	(%rdi), %r12d
	movl	$-1, %eax
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.5:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcmp
	testl	%eax, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	%r12d, %rax
	addq	$32, %r15
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rbx
	leaq	(%rbx,%r15), %rax
	testq	%rsi, %rsi
	leaq	8(%rbx,%r15), %rdx
	movq	%rax, %rcx
	cmoveq	%rdx, %rcx
	cmovneq	%rdx, %rax
	cmpq	$0, 8(%rbx,%r15)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rcx), %rsi
	movq	(%rax), %r13
	cmpq	$0, 24(%rbx,%r15)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_match_name_with_pattern
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %r12d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_11:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_13:
	movq	%r13, %rdi
	callq	_xstrdup
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_14:
	movl	16(%rbx,%r15), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	xorl	%eax, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query_refspecs: need either src or dst"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_refspecs                 ; -- Begin function query_refspecs
	.p2align	2
_query_refspecs:                        ; @query_refspecs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x21, x1
	ldr	x24, [x21], #8
	cbz	x24, LBB0_2
; %bb.1:
	mov	x22, x24
	b	LBB0_5
LBB0_2:
	ldr	x22, [x19, #8]
	cbnz	x22, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_4:
	mov	x21, x19
LBB0_5:
	ldr	w27, [x20]
	cmp	w27, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	add	x25, x25, #32
	cmp	x26, w27, sxtw
	b.ge	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x20, #8]
	add	x8, x28, x25
	mov	x9, x8
	ldr	x11, [x9, #8]!
	cmp	x24, #0
	csel	x10, x9, x8, eq
	csel	x9, x8, x9, eq
	cbz	x11, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x10]
	ldr	x23, [x9]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x1
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_match_name_with_pattern
	cbnz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w27, [x20]
	b	LBB0_8
LBB0_13:
	mov	w0, #-1
	b	LBB0_16
LBB0_14:
	mov	x0, x23
	bl	_xstrdup
	str	x0, [x21]
LBB0_15:
	mov	w0, #0
	add	x8, x28, x25
	ldr	w8, [x8, #16]
	str	w8, [x19, #16]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query_refspecs: need either src or dst"

.subsections_via_symbols
