	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crlf_to_worktree
_crlf_to_worktree:                      ## @crlf_to_worktree
	.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
	xorl	%r12d, %r12d
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%ecx, %edi
	callq	_output_eol
	movq	_EOL_CRLF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_gather_stats
	leaq	-56(%rbp), %rdi
	movl	%r13d, %esi
	callq	_will_convert_lf_to_crlf
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	cmpq	%rbx, (%r14)
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_strbuf_grow
	movq	%rbx, %rdi
	movl	$10, %esi
	movq	%r15, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r12
	leaq	L_.str(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_add
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strbuf_addstr
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%rbx, %r15
	movq	%r12, %rbx
	incq	%rbx
	subq	%rbx, %r15
	movq	%rbx, %rdi
	movl	$10, %esi
	movq	%r15, %rdx
	callq	_memchr
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdx
	subq	%rbx, %rdx
	jbe	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$13, -1(%r12)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_add
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_strbuf_add
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	$1, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOL_CRLF,8,3                   ## @EOL_CRLF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.no_dead_strip	_crlf_to_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crlf_to_worktree
_crlf_to_worktree:                      ; @crlf_to_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x3
	bl	_output_eol
Lloh0:
	adrp	x8, _EOL_CRLF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOL_CRLF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_gather_stats
	add	x0, sp, #8
	mov	x1, x22
	bl	_will_convert_lf_to_crlf
	cbz	w0, LBB0_15
; %bb.3:
	ldr	x8, [x19]
	cmp	x8, x21
	b.eq	LBB0_6
; %bb.4:
	mov	x22, #0
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_15
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	bl	_strbuf_detach
	mov	x22, x0
LBB0_7:
	ldr	x8, [sp, #8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_strbuf_grow
	mov	x0, x21
	mov	w1, #10
	mov	x2, x20
	bl	_memchr
	cbz	x0, LBB0_14
; %bb.8:
	mov	x24, x0
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_strbuf_add
	mov	x0, x19
	mov	x1, x23
	bl	_strbuf_addstr
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x21
	add	x21, x24, #1
	add	x8, x20, x8
	sub	x20, x8, x21
	mov	x0, x21
	mov	w1, #10
	mov	x2, x20
	bl	_memchr
	mov	x24, x0
	cbz	x0, LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	subs	x2, x24, x21
	b.ls	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldurb	w8, [x24, #-1]
	cmp	w8, #13
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x2, x2, #1
	mov	x0, x19
	mov	x1, x21
	bl	_strbuf_add
	b	LBB0_10
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_strbuf_add
	mov	x0, x22
	bl	_free
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EOL_CRLF,8,3                   ; @EOL_CRLF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.no_dead_strip	_crlf_to_worktree
.subsections_via_symbols
