	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crlf_to_git
_crlf_to_git:                           ## @crlf_to_git
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CRLF_BINARY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	%r9d, (%rax)
	je	LBB0_64
## %bb.1:
	movl	%r9d, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_64
LBB0_3:
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:
	testq	%r8, %r8
	je	LBB0_63
LBB0_5:
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rsi
	callq	_gather_stats
	movq	-88(%rbp), %rsi
	testq	%rsi, %rsi
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_CRLF_AUTO@GOTPCREL(%rip), %rdx
	movq	_CRLF_AUTO_INPUT@GOTPCREL(%rip), %rcx
	movq	_CRLF_AUTO_CRLF@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rdx)
	je	LBB0_8
## %bb.6:
	cmpl	%r12d, (%rcx)
	je	LBB0_8
## %bb.7:
	cmpl	%r12d, (%rax)
	je	LBB0_8
LBB0_11:
	movl	16(%rbp), %r14d
LBB0_12:
	movq	_CONV_EOL_RNDTRP_WARN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	movb	-41(%rbp), %r15b                ## 1-byte Reload
	jne	LBB0_15
## %bb.13:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_20
## %bb.14:
	movq	_CONV_EOL_RNDTRP_DIE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	je	LBB0_20
LBB0_15:
	leaq	-64(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	testb	%r15b, %r15b
	je	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rax
	addq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
LBB0_17:
	leaq	-64(%rbp), %rdi
	movl	%r12d, %esi
	callq	_will_convert_lf_to_crlf
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	-64(%rbp), %rax
	addq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
LBB0_19:
	leaq	-96(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %r8d
	callq	_check_global_conv_flags_eol
LBB0_20:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	sete	%al
	movl	%r15d, %ecx
	xorb	$1, %cl
	orb	%al, %cl
	jne	LBB0_21
## %bb.22:
	callq	_strbuf_avail
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rcx
	addq	%rcx, %rax
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	cmpq	%r9, %rax
	jae	LBB0_24
## %bb.23:
	movq	%r9, %rsi
	subq	%rcx, %rsi
	callq	_strbuf_grow
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
LBB0_24:
	movq	8(%rdi), %rsi
	movq	_CRLF_AUTO@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_45
## %bb.25:
	movq	_CRLF_AUTO_INPUT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_45
## %bb.26:
	movq	_CRLF_AUTO_CRLF@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_45
## %bb.27:
	testb	$1, %r9b
	jne	LBB0_29
## %bb.28:
	movq	%r9, %rax
	jmp	LBB0_34
LBB0_8:
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	leaq	-96(%rbp), %rdi
	callq	_convert_is_binary
	testq	%rax, %rax
	jne	LBB0_64
## %bb.9:
	movq	_CONV_EOL_RENORMALIZE@GOTPCREL(%rip), %rax
	movl	16(%rbp), %r14d
	testl	%r14d, (%rax)
	jne	LBB0_12
## %bb.10:
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	setne	%r14b
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_has_crlf_in_index
	testq	%rax, %rax
	sete	%al
	andb	%r14b, %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	jmp	LBB0_11
LBB0_21:
	movzbl	%r15b, %r14d
	jmp	LBB0_64
LBB0_45:
	leaq	-1(%r9), %r8
	movq	%r9, %rdx
	andq	$3, %rdx
	je	LBB0_51
## %bb.46:
	xorl	%ecx, %ecx
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_47 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	je	LBB0_50
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %eax
	cmpb	$13, %al
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movb	%al, (%rsi)
	incq	%rsi
	jmp	LBB0_49
LBB0_50:
	subq	%rcx, %r9
	addq	%rcx, %rbx
LBB0_51:
	cmpq	$3, %r8
	jb	LBB0_62
## %bb.52:
	xorl	%eax, %eax
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_61:                                ##   in Loop: Header=BB0_53 Depth=1
	addq	$4, %rax
	cmpq	%rax, %r9
	je	LBB0_62
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	cmpb	$13, %cl
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	movb	%cl, (%rsi)
	incq	%rsi
LBB0_55:                                ##   in Loop: Header=BB0_53 Depth=1
	movzbl	1(%rbx,%rax), %ecx
	cmpb	$13, %cl
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_53 Depth=1
	movb	%cl, (%rsi)
	incq	%rsi
LBB0_57:                                ##   in Loop: Header=BB0_53 Depth=1
	movzbl	2(%rbx,%rax), %ecx
	cmpb	$13, %cl
	je	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_53 Depth=1
	movb	%cl, (%rsi)
	incq	%rsi
LBB0_59:                                ##   in Loop: Header=BB0_53 Depth=1
	movzbl	3(%rbx,%rax), %ecx
	cmpb	$13, %cl
	je	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_53 Depth=1
	movb	%cl, (%rsi)
	incq	%rsi
	jmp	LBB0_61
LBB0_29:
	movb	(%rbx), %al
	incq	%rbx
	cmpb	$13, %al
	jne	LBB0_32
## %bb.30:
	cmpq	$2, %r9
	jb	LBB0_32
## %bb.31:
	cmpb	$10, (%rbx)
	je	LBB0_33
LBB0_32:
	movb	%al, (%rsi)
	incq	%rsi
LBB0_33:
	leaq	-1(%r9), %rax
LBB0_34:
	cmpq	$1, %r9
	jne	LBB0_35
LBB0_62:
	subl	8(%rdi), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_strbuf_setlen
LBB0_63:
	movl	$1, %r14d
LBB0_64:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	addq	$2, %rbx
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_36 Depth=1
	movb	%cl, (%rsi)
	incq	%rsi
LBB0_44:                                ##   in Loop: Header=BB0_36 Depth=1
	addq	$2, %rbx
	incq	%rax
	je	LBB0_62
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-2(%rbx), %ecx
	cmpb	$13, %cl
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpq	$2, %rax
	jb	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpb	$10, -1(%rbx)
	je	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_36 Depth=1
	movb	%cl, (%rsi)
	incq	%rsi
LBB0_40:                                ##   in Loop: Header=BB0_36 Depth=1
	movzbl	-1(%rbx), %ecx
	addq	$-3, %rax
	cmpb	$13, %cl
	jne	LBB0_43
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpq	$-3, %rax
	ja	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpb	$10, (%rbx)
	jne	LBB0_43
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_CRLF_BINARY,4,2                ## @CRLF_BINARY
	.comm	_CRLF_AUTO,4,2                  ## @CRLF_AUTO
	.comm	_CRLF_AUTO_INPUT,4,2            ## @CRLF_AUTO_INPUT
	.comm	_CRLF_AUTO_CRLF,4,2             ## @CRLF_AUTO_CRLF
	.comm	_CONV_EOL_RENORMALIZE,4,2       ## @CONV_EOL_RENORMALIZE
	.comm	_CONV_EOL_RNDTRP_WARN,4,2       ## @CONV_EOL_RNDTRP_WARN
	.comm	_CONV_EOL_RNDTRP_DIE,4,2        ## @CONV_EOL_RNDTRP_DIE
	.no_dead_strip	_crlf_to_git
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crlf_to_git
_crlf_to_git:                           ; @crlf_to_git
	.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
Lloh0:
	adrp	x8, _CRLF_BINARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRLF_BINARY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w5
	b.eq	LBB0_3
; %bb.1:
	mov	x23, x6
	mov	x22, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x26, x0
	cbz	x2, LBB0_5
; %bb.2:
	cbnz	x20, LBB0_5
LBB0_3:
	mov	w25, #0
LBB0_4:
	mov	x0, x25
	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_5:
	cbnz	x21, LBB0_7
; %bb.6:
	cbz	x19, LBB0_34
LBB0_7:
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	bl	_gather_stats
	ldr	x28, [sp, #24]
	cmp	x28, #0
	cset	w25, ne
Lloh3:
	adrp	x27, _CRLF_AUTO@GOTPAGE
Lloh4:
	ldr	x27, [x27, _CRLF_AUTO@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh5:
	adrp	x9, _CRLF_AUTO_INPUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CRLF_AUTO_INPUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _CRLF_AUTO_CRLF@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CRLF_AUTO_CRLF@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, w22
	ccmp	w9, w22, #4, ne
	ccmp	w10, w22, #4, ne
	b.ne	LBB0_11
; %bb.8:
	add	x0, sp, #16
	bl	_convert_is_binary
	cbnz	x0, LBB0_3
; %bb.9:
Lloh11:
	adrp	x8, _CONV_EOL_RENORMALIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONV_EOL_RENORMALIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x26
	mov	x1, x24
	bl	_has_crlf_in_index
	cmp	x0, #0
	ccmp	x28, #0, #4, eq
	cset	w25, ne
LBB0_11:
Lloh14:
	adrp	x8, _CONV_EOL_RNDTRP_WARN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CONV_EOL_RNDTRP_WARN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_14
; %bb.12:
	cbz	x20, LBB0_19
; %bb.13:
Lloh17:
	adrp	x8, _CONV_EOL_RNDTRP_DIE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CONV_EOL_RNDTRP_DIE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w23
	cbz	w8, LBB0_19
LBB0_14:
	mov	x0, sp
	add	x1, sp, #16
	mov	w2, #16
	bl	_memcpy
	cbz	w25, LBB0_16
; %bb.15:
	ldp	x9, x8, [sp]
	add	x8, x9, x8
	stp	x8, xzr, [sp]
LBB0_16:
	mov	x0, sp
	mov	x1, x22
	bl	_will_convert_lf_to_crlf
	cbz	x0, LBB0_18
; %bb.17:
	ldp	x8, x9, [sp]
	add	x8, x9, x8
	stp	xzr, x8, [sp]
LBB0_18:
	add	x2, sp, #16
	mov	x3, sp
	mov	x0, x24
	mov	x1, x22
	mov	x4, x23
	bl	_check_global_conv_flags_eol
LBB0_19:
	cmp	x19, #0
	cset	w8, eq
	eor	w9, w25, #0x1
	orr	w8, w8, w9
	tbnz	w8, #0, LBB0_4
; %bb.20:
	mov	x0, x19
	bl	_strbuf_avail
	ldr	x8, [x19]
	add	x9, x8, x0
	cmp	x9, x20
	b.hs	LBB0_22
; %bb.21:
	sub	x1, x20, x8
	mov	x0, x19
	bl	_strbuf_grow
LBB0_22:
	ldr	x8, [x19, #8]
	ldr	w9, [x27]
	cmp	w9, w22
	b.eq	LBB0_27
; %bb.23:
Lloh20:
	adrp	x9, _CRLF_AUTO_INPUT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CRLF_AUTO_INPUT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w9, w22
	b.eq	LBB0_27
; %bb.24:
Lloh23:
	adrp	x9, _CRLF_AUTO_CRLF@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CRLF_AUTO_CRLF@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w9, w22
	b.eq	LBB0_27
; %bb.25:
	add	x9, x21, #1
	b	LBB0_31
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	subs	x20, x20, #1
	b.eq	LBB0_33
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21], #1
	cmp	w9, #13
	b.eq	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	strb	w9, [x8], #1
	b	LBB0_26
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=1
	strb	w10, [x8], #1
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x9, x9, #1
	subs	x20, x20, #1
	b.eq	LBB0_33
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldurb	w10, [x9, #-1]
	cmp	w10, #13
	ccmp	x20, #2, #0, eq
	b.lo	LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldrb	w11, [x9]
	cmp	w11, #10
	b.ne	LBB0_29
	b	LBB0_30
LBB0_33:
	ldr	w9, [x19, #8]
	sub	w1, w8, w9
	mov	x0, x19
	bl	_strbuf_setlen
LBB0_34:
	mov	w25, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CRLF_BINARY,4,2                ; @CRLF_BINARY
	.comm	_CRLF_AUTO,4,2                  ; @CRLF_AUTO
	.comm	_CRLF_AUTO_INPUT,4,2            ; @CRLF_AUTO_INPUT
	.comm	_CRLF_AUTO_CRLF,4,2             ; @CRLF_AUTO_CRLF
	.comm	_CONV_EOL_RENORMALIZE,4,2       ; @CONV_EOL_RENORMALIZE
	.comm	_CONV_EOL_RNDTRP_WARN,4,2       ; @CONV_EOL_RNDTRP_WARN
	.comm	_CONV_EOL_RNDTRP_DIE,4,2        ; @CONV_EOL_RNDTRP_DIE
	.no_dead_strip	_crlf_to_git
.subsections_via_symbols
