	.file	"extr_branch.c_print_ref_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"remotes/"
.LC2:
	.string	"unable to parse format string"
.LC3:
	.string	"%s"
	.text
	.p2align 4
	.type	print_ref_list, @function
print_ref_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	mov	edx, 16
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r15, 32[rsp]
	mov	eax, DWORD PTR FILTER_REFS_REMOTES[rip]
	cmp	DWORD PTR [rdi], eax
	lea	rax, .LC1[rip]
	mov	rdi, r15
	cmovne	r12, rax
	xor	esi, esi
	call	memset@PLT
	mov	edx, DWORD PTR [r14]
	mov	rsi, r14
	mov	rdi, r15
	or	edx, DWORD PTR FILTER_REFS_INCLUDE_BROKEN[rip]
	call	filter_refs@PLT
	xor	esi, esi
	cmp	QWORD PTR 8[r14], 0
	jne	.L25
	mov	QWORD PTR 8[rsp], 0
	cmp	QWORD PTR 0[r13], 0
	je	.L26
.L4:
	mov	eax, DWORD PTR branch_use_color[rip]
	mov	rdi, r13
	mov	DWORD PTR 8[r13], eax
	call	verify_ref_format@PLT
	test	rax, rax
	jne	.L27
.L5:
	mov	rsi, r15
	mov	rdi, rbp
	call	ref_array_sort@PLT
	mov	eax, DWORD PTR 32[rsp]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	lea	r12, 24[rsp]
	lea	rbp, 16[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L29:
	xor	edi, edi
	cmp	QWORD PTR 8[r14], 0
	sete	dil
	call	assert@PLT
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, output[rip]
	call	string_list_append@PLT
.L9:
	mov	rdi, r12
	add	rbx, 1
	call	strbuf_release@PLT
	mov	rdi, rbp
	call	strbuf_release@PLT
	cmp	DWORD PTR 32[rsp], ebx
	jle	.L6
.L10:
	mov	rax, QWORD PTR STRBUF_INIT[rip]
	mov	rcx, r12
	mov	rdx, rbp
	mov	rsi, r13
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	format_ref_array_item@PLT
	test	rax, rax
	jne	.L28
.L7:
	mov	edi, DWORD PTR colopts[rip]
	call	column_active@PLT
	test	rax, rax
	jne	.L29
	mov	edi, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR stdout[rip]
	mov	esi, 1
	mov	edx, DWORD PTR 16[rsp]
	call	fwrite@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, DWORD PTR 28[rsp]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	die@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r15
	call	ref_array_clear@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	free@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdi, r12
	call	strlen@PLT
	mov	rdi, r15
	mov	esi, eax
	call	calc_maxwidth@PLT
	cmp	QWORD PTR 0[r13], 0
	mov	QWORD PTR 8[rsp], 0
	mov	esi, eax
	jne	.L4
.L26:
	mov	rdx, r12
	mov	rdi, r14
	call	build_format@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	QWORD PTR 0[r13], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC2[rip]
	call	_@PLT
	movsx	rdi, eax
	xor	eax, eax
	call	die@PLT
	jmp	.L5
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	print_ref_list, .-print_ref_list
	.comm	stdout,4,4
	.comm	output,4,4
	.comm	colopts,4,4
	.comm	branch_use_color,4,4
	.comm	STRBUF_INIT,8,8
	.comm	FILTER_REFS_REMOTES,4,4
	.comm	FILTER_REFS_INCLUDE_BROKEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_branch.c_print_ref_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"remotes/\000"
	.align	2
.LC2:
	.ascii	"unable to parse format string\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_ref_list, %function
print_ref_list:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	mov	lr, #0
	ldr	r0, .L32
	mov	r8, r2
	ldr	r2, .L32+4
	ldr	r5, [r0]
	ldr	r3, [r9]
	ldr	r2, [r2]
	ldr	r0, .L32+8
	mov	r4, r1
	ldr	r1, .L32+12
	sub	sp, sp, #44
	cmp	r3, r5
	ldr	ip, .L32+16
	ldr	r1, [r1]
	str	r1, [sp, #36]
	mov	r1,#0
	moveq	r5, r0
	mov	r1, r9
	orr	r2, r3, r2
	add	r0, sp, #12
	movne	r5, ip
	str	lr, [sp, #12]
	str	lr, [sp, #16]
	bl	filter_refs
	ldr	r1, [r9, #4]
	cmp	r1, #0
	bne	.L26
.L3:
	ldr	r3, [r8]
	cmp	r3, #0
	movne	r3, #0
	strne	r3, [sp, #4]
	beq	.L27
.L4:
	ldr	r3, .L32+20
	mov	r0, r8
	ldr	r3, [r3]
	str	r3, [r8, #4]
	bl	verify_ref_format
	cmp	r0, #0
	bne	.L28
.L5:
	mov	r0, r4
	add	r1, sp, #12
	bl	ref_array_sort
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ble	.L6
	mov	r7, #0
	ldr	r6, .L32+24
	ldr	r10, .L32+28
	ldr	fp, .L32+32
	add	r5, sp, #20
	add	r4, sp, #28
	b	.L10
.L30:
	ldr	r0, [r9, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, fp
	ldr	r1, [sp, #24]
	bl	string_list_append
.L9:
	mov	r0, r4
	bl	strbuf_release
	mov	r0, r5
	bl	strbuf_release
	ldr	r3, [sp, #12]
	add	r7, r7, #1
	cmp	r3, r7
	ble	.L6
.L10:
	ldm	r6, {r0, r1}
	stm	r5, {r0, r1}
	stm	r4, {r0, r1}
	ldr	r2, [sp, #16]
	mov	r3, r4
	ldr	r0, [r2, r7, lsl #2]
	mov	r1, r8
	mov	r2, r5
	bl	format_ref_array_item
	cmp	r0, #0
	bne	.L29
.L7:
	ldr	r0, [r10]
	bl	column_active
	cmp	r0, #0
	bne	.L30
	ldr	r3, .L32+36
	mov	r1, #1
	ldr	r3, [r3]
	ldr	r2, [sp, #20]
	ldr	r0, [sp, #24]
	bl	fwrite
	mov	r0, #10
	bl	putchar
	b	.L9
.L29:
	ldr	r1, [sp, #32]
	ldr	r0, .L32+40
	bl	die
	b	.L7
.L6:
	add	r0, sp, #12
	bl	ref_array_clear
	ldr	r0, [sp, #4]
	bl	free
	ldr	r3, .L32+12
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, r5
	bl	strlen
	mov	r1, r0
	add	r0, sp, #12
	bl	calc_maxwidth
	mov	r1, r0
	b	.L3
.L28:
	ldr	r0, .L32+44
	bl	_
	bl	die
	b	.L5
.L27:
	mov	r2, r5
	mov	r0, r9
	bl	build_format
	str	r0, [sp, #4]
	str	r0, [r8]
	b	.L4
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	FILTER_REFS_REMOTES
	.word	FILTER_REFS_INCLUDE_BROKEN
	.word	.LC0
	.word	.LC4
	.word	.LC1
	.word	branch_use_color
	.word	STRBUF_INIT
	.word	colopts
	.word	output
	.word	stdout
	.word	.LC3
	.word	.LC2
	.size	print_ref_list, .-print_ref_list
	.comm	stdout,4,4
	.comm	output,4,4
	.comm	colopts,4,4
	.comm	branch_use_color,4,4
	.comm	STRBUF_INIT,8,4
	.comm	FILTER_REFS_REMOTES,4,4
	.comm	FILTER_REFS_INCLUDE_BROKEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
