	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_eol__detect_eol            ## -- Begin function svn_eol__detect_eol
	.p2align	4, 0x90
_svn_eol__detect_eol:                   ## @svn_eol__detect_eol
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_svn_eol__find_eol_start
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	%rax, (%r15)
LBB0_4:
	cmpb	$10, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	incq	%rax
	movslq	%r14d, %rcx
	addq	%rcx, %rbx
	cmpq	%rbx, %rax
	je	LBB0_7
## %bb.8:
	cmpb	$10, (%rax)
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rcx, %rax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"\r"

L_.str.2:                               ## @.str.2
	.asciz	"\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_eol__detect_eol            ; -- Begin function svn_eol__detect_eol
	.p2align	2
_svn_eol__detect_eol:                   ; @svn_eol__detect_eol
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_svn_eol__find_eol_start
	cbz	x0, LBB0_7
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	str	x0, [x21]
LBB0_3:
	ldrb	w8, [x0]
	cmp	w8, #10
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	add	x8, x0, #1
	add	x9, x20, w19, sxtw
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldrb	w8, [x8]
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w8, #10
	csel	x0, x9, x0, eq
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"\r"

l_.str.2:                               ; @.str.2
	.asciz	"\r\n"

.subsections_via_symbols
