	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_eol
_detect_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
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%rdi), %rcx
	movb	-1(%rcx,%rax), %dl
	cmpb	$10, %dl
	je	LBB0_5
## %bb.2:
	cmpb	$13, %dl
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	cmpq	$1, %rax
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rax
	popq	%rbp
	retq
LBB0_8:
	cmpb	$13, -2(%rcx,%rax)
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r"

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

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

	.no_dead_strip	_detect_eol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_eol
_detect_eol:                            ; @detect_eol
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	add	x8, x8, x9
	ldurb	w10, [x8, #-1]
	cmp	w10, #10
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #13
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ret
LBB0_4:
	mov	x0, #0
	ret
LBB0_5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	cmp	x9, #1
	b.eq	LBB0_7
; %bb.6:
	ldurb	w8, [x8, #-2]
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w8, #13
	csel	x0, x9, x0, eq
LBB0_7:
	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	"\r"

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

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

	.no_dead_strip	_detect_eol
.subsections_via_symbols
