	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ls_refs                        ## -- Begin function ls_refs
	.p2align	4, 0x90
_ls_refs:                               ## @ls_refs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_ls_refs_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	movq	%rbx, %rdi
	callq	_packet_reader_read
	movq	_PACKET_READ_FLUSH@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_1
LBB0_9:
	movq	_send_ref@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_head_ref_namespaced
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_for_each_namespaced_ref
	movl	$1, %edi
	callq	_packet_flush
	leaq	-48(%rbp), %rdi
	callq	_argv_array_clear
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -56(%rbp)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_packet_reader_read
	cmpq	(%r14), %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdi
	callq	_argv_array_push
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -52(%rbp)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ls_refs_config,4,2             ## @ls_refs_config
	.comm	_PACKET_READ_FLUSH,8,3          ## @PACKET_READ_FLUSH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"peel"

L_.str.1:                               ## @.str.1
	.asciz	"symrefs"

L_.str.2:                               ## @.str.2
	.asciz	"ref-prefix "

	.comm	_send_ref,4,2                   ## @send_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ls_refs                        ; -- Begin function ls_refs
	.p2align	2
_ls_refs:                               ; @ls_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	add	x25, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _ls_refs_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ls_refs_config@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
	mov	x0, x19
	bl	_packet_reader_read
Lloh3:
	adrp	x26, _PACKET_READ_FLUSH@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PACKET_READ_FLUSH@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
Lloh5:
	adrp	x19, _send_ref@GOTPAGE
Lloh6:
	ldr	x19, [x19, _send_ref@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #16
	bl	_head_ref_namespaced
	ldr	w0, [x19]
	add	x1, sp, #16
	bl	_for_each_namespaced_ref
	mov	w0, #1
	bl	_packet_flush
	add	x0, x25, #8
	bl	_argv_array_clear
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
	add	x21, x25, #8
	mov	w27, #1
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh11:
	adrp	x23, l_.str.2@PAGE
Lloh12:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w27, [sp, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_packet_reader_read
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19]
	mov	x0, x20
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x23
	bl	_skip_prefix
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_argv_array_push
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w27, [sp, #20]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ls_refs_config,4,2             ; @ls_refs_config
	.comm	_PACKET_READ_FLUSH,8,3          ; @PACKET_READ_FLUSH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"peel"

l_.str.1:                               ; @.str.1
	.asciz	"symrefs"

l_.str.2:                               ; @.str.2
	.asciz	"ref-prefix "

	.comm	_send_ref,4,2                   ; @send_ref
.subsections_via_symbols
