	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_ref_list
_print_ref_list:                        ## @print_ref_list
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_FILTER_REFS_REMOTES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %r14
	cmoveq	%rax, %r14
	leaq	-64(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_FILTER_REFS_INCLUDE_BROKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_filter_refs
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_strlen
	leaq	-64(%rbp), %rdi
	movl	%eax, %esi
	callq	_calc_maxwidth
	movl	%eax, %r15d
LBB0_2:
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_4:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_build_format
	movq	%rax, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r13)
LBB0_5:
	movq	_branch_use_color@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	callq	_verify_ref_format
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movslq	%eax, %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_7:
	leaq	-64(%rbp), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_ref_array_sort
	cmpl	$0, -64(%rbp)
	jle	LBB0_15
## %bb.8:
	leaq	-48(%rbp), %r12
	leaq	-88(%rbp), %rbx
	movq	_colopts@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %edi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	callq	_fwrite
	movl	$10, %edi
	callq	_putchar
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_strbuf_release
	movq	%r12, %rdi
	callq	_strbuf_release
	incq	%r15
	movslq	-64(%rbp), %rax
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, -88(%rbp)
	movq	-56(%rbp), %rax
	movl	(%rax,%r15,4), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_format_ref_array_item
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-84(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %edi
	callq	_column_active
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%edi, %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_assert
	movl	-44(%rbp), %esi
	movq	_output@GOTPCREL(%rip), %rdi
	callq	_string_list_append
	jmp	LBB0_14
LBB0_15:
	leaq	-64(%rbp), %rdi
	callq	_ref_array_clear
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	addq	$56, %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
	.space	1

	.comm	_FILTER_REFS_REMOTES,4,2        ## @FILTER_REFS_REMOTES
L_.str.1:                               ## @.str.1
	.asciz	"remotes/"

	.comm	_FILTER_REFS_INCLUDE_BROKEN,4,2 ## @FILTER_REFS_INCLUDE_BROKEN
	.comm	_branch_use_color,4,2           ## @branch_use_color
L_.str.2:                               ## @.str.2
	.asciz	"unable to parse format string"

	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.comm	_colopts,4,2                    ## @colopts
	.comm	_output,4,2                     ## @output
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_print_ref_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_ref_list
_print_ref_list:                        ; @print_ref_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FILTER_REFS_REMOTES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FILTER_REFS_REMOTES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, l_.str.1@PAGE
Lloh4:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh5:
	adrp	x11, l_.str@PAGE
Lloh6:
	add	x11, x11, l_.str@PAGEOFF
	cmp	w8, w9
	csel	x21, x11, x10, eq
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _FILTER_REFS_INCLUDE_BROKEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FILTER_REFS_INCLUDE_BROKEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x0, sp, #32
	mov	x1, x20
	bl	_filter_refs
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	add	x0, sp, #32
	bl	_calc_maxwidth
	mov	x1, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_4
LBB0_2:
	mov	x21, #0
	b	LBB0_5
LBB0_3:
	mov	w1, #0
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
LBB0_4:
	mov	x0, x20
	mov	x2, x21
	bl	_build_format
	mov	x21, x0
	str	x0, [x19]
LBB0_5:
Lloh10:
	adrp	x8, _branch_use_color@GOTPAGE
Lloh11:
	ldr	x8, [x8, _branch_use_color@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_verify_ref_format
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_die
LBB0_7:
	add	x1, sp, #32
	mov	x0, x22
	bl	_ref_array_sort
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x24, #0
Lloh15:
	adrp	x25, _STRBUF_INIT@GOTPAGE
Lloh16:
	ldr	x25, [x25, _STRBUF_INIT@GOTPAGEOFF]
Lloh17:
	adrp	x26, _colopts@GOTPAGE
Lloh18:
	ldr	x26, [x26, _colopts@GOTPAGEOFF]
Lloh19:
	adrp	x27, _stdout@GOTPAGE
Lloh20:
	ldr	x27, [x27, _stdout@GOTPAGEOFF]
Lloh21:
	adrp	x22, l_.str.3@PAGE
Lloh22:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh23:
	adrp	x23, _output@GOTPAGE
Lloh24:
	ldr	x23, [x23, _output@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldp	w2, w0, [sp, #24]
	ldr	w3, [x27]
	mov	w1, #1
	bl	_fwrite
	mov	w0, #10
	bl	_putchar
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #16
	bl	_strbuf_release
	add	x0, sp, #24
	bl	_strbuf_release
	add	x24, x24, #1
	ldrsw	x8, [sp, #32]
	cmp	x24, x8
	b.ge	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	stp	x8, x8, [sp, #16]
	ldr	x8, [sp, #40]
	ldr	w0, [x8, x24, lsl #2]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x1, x19
	bl	_format_ref_array_item
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #20]
	str	x8, [sp]
	mov	x0, x22
	bl	_die
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x26]
	bl	_column_active
	cbz	x0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w1, [sp, #28]
	mov	x0, x23
	bl	_string_list_append
	b	LBB0_10
LBB0_15:
	add	x0, sp, #32
	bl	_ref_array_clear
	mov	x0, x21
	bl	_free
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_FILTER_REFS_REMOTES,4,2        ; @FILTER_REFS_REMOTES
l_.str.1:                               ; @.str.1
	.asciz	"remotes/"

	.comm	_FILTER_REFS_INCLUDE_BROKEN,4,2 ; @FILTER_REFS_INCLUDE_BROKEN
	.comm	_branch_use_color,4,2           ; @branch_use_color
l_.str.2:                               ; @.str.2
	.asciz	"unable to parse format string"

	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.comm	_colopts,4,2                    ; @colopts
	.comm	_output,4,2                     ; @output
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_print_ref_list
.subsections_via_symbols
