	.file	"extr_convert.c_crlf_to_git.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crlf_to_git, @function
crlf_to_git:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 8[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR CRLF_BINARY[rip], r9d
	je	.L4
	mov	r11, rdi
	mov	rbx, rdx
	mov	rbp, rcx
	mov	r13, r8
	mov	r12d, r9d
	test	rdx, rdx
	je	.L32
	test	rcx, rcx
	jne	.L32
.L4:
	xor	r15d, r15d
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L64
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L32:
	.cfi_restore_state
	mov	rax, rbx
	or	rax, r13
	jne	.L6
.L17:
	mov	r15d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	r14, 32[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	mov	QWORD PTR 24[rsp], r11
	mov	rdx, r14
	call	gather_stats@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	r11, QWORD PTR 24[rsp]
	cmp	DWORD PTR CRLF_AUTO[rip], r12d
	mov	QWORD PTR 16[rsp], rax
	je	.L7
	cmp	DWORD PTR CRLF_AUTO_INPUT[rip], r12d
	je	.L7
	cmp	DWORD PTR CRLF_AUTO_CRLF[rip], r12d
	je	.L7
.L10:
	xor	r15d, r15d
	cmp	QWORD PTR 16[rsp], 0
	mov	eax, DWORD PTR CONV_EOL_RNDTRP_WARN[rip]
	setne	r15b
	test	DWORD PTR 144[rsp], eax
	jne	.L8
	mov	eax, DWORD PTR CONV_EOL_RNDTRP_DIE[rip]
	test	DWORD PTR 144[rsp], eax
	je	.L14
	test	rbp, rbp
	jne	.L8
.L14:
	test	r15d, r15d
	je	.L4
	test	r13, r13
	je	.L17
	mov	rdi, r13
	call	strbuf_avail@PLT
	mov	rdx, QWORD PTR 0[r13]
	add	rax, rdx
	cmp	rax, rbp
	jb	.L65
.L18:
	cmp	DWORD PTR CRLF_AUTO[rip], r12d
	mov	rsi, QWORD PTR 8[r13]
	je	.L19
	cmp	DWORD PTR CRLF_AUTO_INPUT[rip], r12d
	je	.L19
	cmp	DWORD PTR CRLF_AUTO_CRLF[rip], r12d
	jne	.L20
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L24:
	mov	BYTE PTR [rsi], al
	lea	rdx, 1[rsi]
	test	rbp, rbp
	je	.L66
.L25:
	mov	rsi, rdx
.L20:
	movzx	eax, BYTE PTR [rbx]
	add	rbx, 1
	cmp	al, 13
	setne	cl
	cmp	rbp, 1
	setbe	dl
	sub	rbp, 1
	or	cl, dl
	jne	.L24
	cmp	BYTE PTR [rbx], 10
	jne	.L24
	mov	rdx, rsi
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r14
	mov	QWORD PTR 24[rsp], r11
	call	convert_is_binary@PLT
	test	rax, rax
	jne	.L4
	mov	r15d, DWORD PTR 144[rsp]
	and	r15d, DWORD PTR CONV_EOL_RENORMALIZE[rip]
	mov	r11, QWORD PTR 24[rsp]
	jne	.L10
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r11
	call	has_crlf_in_index@PLT
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR CONV_EOL_RNDTRP_WARN[rip]
	test	DWORD PTR 144[rsp], eax
	jne	.L12
	mov	eax, DWORD PTR CONV_EOL_RNDTRP_DIE[rip]
	test	DWORD PTR 144[rsp], eax
	je	.L4
	test	rbp, rbp
	je	.L4
.L12:
	lea	rcx, 48[rsp]
	mov	edx, 16
	mov	rsi, r14
	mov	rdi, rcx
	mov	QWORD PTR 16[rsp], rcx
	call	memcpy@PLT
	mov	rcx, QWORD PTR 16[rsp]
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rcx
	mov	esi, r12d
	mov	QWORD PTR 16[rsp], rcx
	call	will_convert_lf_to_crlf@PLT
	mov	rcx, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR 48[rsp]
	add	QWORD PTR 56[rsp], rax
	mov	QWORD PTR 48[rsp], 0
.L16:
	mov	r8d, DWORD PTR 144[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, r14
	mov	esi, r12d
	call	check_global_conv_flags_eol@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rcx, 48[rsp]
	mov	edx, 16
	mov	rsi, r14
	xor	r15d, r15d
	mov	rdi, rcx
	mov	QWORD PTR 24[rsp], rcx
	call	memcpy@PLT
	cmp	QWORD PTR 16[rsp], 0
	mov	rcx, QWORD PTR 24[rsp]
	je	.L15
	mov	rax, QWORD PTR 56[rsp]
	mov	r15d, 1
	add	QWORD PTR 48[rsp], rax
	mov	QWORD PTR 56[rsp], 0
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L19:
	add	rbp, rbx
	.p2align 4,,10
	.p2align 3
.L22:
	movzx	eax, BYTE PTR [rbx]
	add	rbx, 1
	cmp	al, 13
	je	.L21
	mov	BYTE PTR [rsi], al
	add	rsi, 1
.L21:
	cmp	rbx, rbp
	jne	.L22
.L23:
	sub	rsi, QWORD PTR 8[r13]
	mov	rdi, r13
	call	strbuf_setlen@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L65:
	mov	rsi, rbp
	mov	rdi, r13
	sub	rsi, rdx
	call	strbuf_grow@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L66:
	mov	rsi, rdx
	jmp	.L23
.L64:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	crlf_to_git, .-crlf_to_git
	.comm	CRLF_BINARY,4,4
	.comm	CRLF_AUTO_INPUT,4,4
	.comm	CRLF_AUTO_CRLF,4,4
	.comm	CRLF_AUTO,4,4
	.comm	CONV_EOL_RNDTRP_WARN,4,4
	.comm	CONV_EOL_RNDTRP_DIE,4,4
	.comm	CONV_EOL_RENORMALIZE,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_convert.c_crlf_to_git.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crlf_to_git, %function
crlf_to_git:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L53
	sub	sp, sp, #44
	ldr	r8, [sp, #84]
	ldr	ip, [ip]
	mov	r5, r3
	ldr	r3, .L53+4
	cmp	ip, r8
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r9, [sp, #80]
	beq	.L4
	clz	r3, r5
	cmp	r2, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	mov	r4, r2
	bne	.L4
	orrs	r3, r2, r9
	bne	.L5
.L15:
	mov	r10, #1
	b	.L1
.L4:
	mov	r10, #0
.L1:
	ldr	r3, .L53+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	mov	r0, r10
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	add	fp, sp, #20
	mov	r7, r0
	mov	r6, r1
	mov	r2, fp
	mov	r1, r5
	mov	r0, r4
	bl	gather_stats
	ldr	r3, .L53+8
	ldr	r1, [r3]
	ldr	r3, [sp, #24]
	cmp	r1, r8
	beq	.L6
	ldr	r1, .L53+12
	ldr	r1, [r1]
	cmp	r1, r8
	beq	.L6
	ldr	r1, .L53+16
	ldr	r1, [r1]
	cmp	r1, r8
	beq	.L6
.L9:
	ldr	r1, .L53+20
	ldr	r2, [sp, #88]
	ldr	r1, [r1]
	subs	r10, r3, #0
	movne	r10, #1
	tst	r2, r1
	bne	.L7
	ldr	r1, .L53+24
	ldr	r2, [sp, #88]
	ldr	r1, [r1]
	tst	r2, r1
	movne	r1, #1
	moveq	r1, #0
	cmp	r5, #0
	moveq	r1, #0
	cmp	r1, #0
	bne	.L7
.L12:
	cmp	r10, #0
	beq	.L4
	cmp	r9, #0
	beq	.L15
	mov	r0, r9
	bl	strbuf_avail
	ldr	r1, [r9]
	add	r0, r0, r1
	cmp	r0, r5
	bcc	.L52
.L16:
	ldr	r3, .L53+8
	ldr	r1, [r9, #4]
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L17
	ldr	r3, .L53+12
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L17
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L17
.L18:
	cmp	r5, #1
	movhi	r3, #0
	movls	r3, #1
	ldrb	r2, [r4], #1	@ zero_extendqisi2
	sub	r5, r5, #1
	cmp	r2, #13
	orrne	r3, r3, #1
	cmp	r3, #0
	bne	.L22
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L18
.L22:
	cmp	r5, #0
	strb	r2, [r1], #1
	bne	.L18
.L21:
	ldr	r3, [r9, #4]
	mov	r0, r9
	sub	r1, r1, r3
	bl	strbuf_setlen
	b	.L1
.L6:
	mov	r0, fp
	str	r3, [sp, #12]
	bl	convert_is_binary
	cmp	r0, #0
	bne	.L4
	ldr	r1, .L53+28
	ldr	r3, [sp, #88]
	ldr	r10, [r1]
	ands	r10, r3, r10
	ldr	r3, [sp, #12]
	bne	.L9
	mov	r0, r7
	mov	r1, r6
	bl	has_crlf_in_index
	cmp	r0, #0
	bne	.L10
	ldr	r3, [sp, #12]
	b	.L9
.L17:
	add	r5, r4, r5
.L20:
	ldrb	r2, [r4], #1	@ zero_extendqisi2
	cmp	r2, #13
	strbne	r2, [r1], #1
	cmp	r4, r5
	bne	.L20
	b	.L21
.L7:
	cmp	r3, #0
	add	r7, sp, #28
	ldm	fp, {r0, r1}
	stm	r7, {r0, r1}
	movne	r0, #0
	movne	r10, #1
	moveq	r10, r3
	ldrne	r3, [sp, #28]
	ldrne	r1, [sp, #32]
	strne	r0, [sp, #32]
	addne	r3, r3, r1
	strne	r3, [sp, #28]
.L13:
	mov	r1, r8
	mov	r0, r7
	bl	will_convert_lf_to_crlf
	cmp	r0, #0
	beq	.L14
	mov	r0, #0
	ldr	r3, [sp, #32]
	ldr	r1, [sp, #28]
	str	r0, [sp, #28]
	add	r3, r3, r1
	str	r3, [sp, #32]
.L14:
	ldr	r3, [sp, #88]
	mov	r2, fp
	str	r3, [sp]
	mov	r0, r6
	mov	r3, r7
	mov	r1, r8
	bl	check_global_conv_flags_eol
	b	.L12
.L52:
	mov	r0, r9
	sub	r1, r5, r1
	bl	strbuf_grow
	b	.L16
.L10:
	ldr	r3, .L53+20
	ldr	r2, [sp, #88]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L11
	ldr	r3, .L53+24
	ldr	r2, [sp, #88]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r3, #1
	moveq	r3, #0
	cmp	r5, #0
	moveq	r3, #0
	cmp	r3, #0
	beq	.L4
.L11:
	ldm	fp, {r0, r1}
	add	r7, sp, #28
	stm	r7, {r0, r1}
	b	.L13
.L51:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	CRLF_BINARY
	.word	.LC0
	.word	CRLF_AUTO
	.word	CRLF_AUTO_INPUT
	.word	CRLF_AUTO_CRLF
	.word	CONV_EOL_RNDTRP_WARN
	.word	CONV_EOL_RNDTRP_DIE
	.word	CONV_EOL_RENORMALIZE
	.size	crlf_to_git, .-crlf_to_git
	.comm	CRLF_BINARY,4,4
	.comm	CRLF_AUTO_INPUT,4,4
	.comm	CRLF_AUTO_CRLF,4,4
	.comm	CRLF_AUTO,4,4
	.comm	CONV_EOL_RNDTRP_WARN,4,4
	.comm	CONV_EOL_RNDTRP_DIE,4,4
	.comm	CONV_EOL_RENORMALIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
