	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phpdbg_eol_convert             ## -- Begin function phpdbg_eol_convert
	.p2align	4, 0x90
_phpdbg_eol_convert:                    ## @phpdbg_eol_convert
	.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
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r12d
	movq	_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHPDBG_G
	movq	_PHPDBG_IS_REMOTE@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_26
## %bb.1:
	movq	_PHPDBG_EOL_CRLF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_eol@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_PHPDBG_G
	cmpl	%eax, %ebx
	jne	LBB0_14
## %bb.2:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_count_lf_and_cr
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %edi
	callq	_emalloc
	movq	%rax, %r14
	testl	%r12d, %r12d
	jle	LBB0_22
## %bb.3:
	movb	(%r13), %bl
	movq	%r12, %rsi
	negq	%rsi
	xorl	%eax, %eax
	movl	$1, %edx
	movl	%ebx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	cltq
	movb	$13, (%r14,%rax)
	incl	%eax
	movb	$10, %bl
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	cltq
	movb	%bl, (%r14,%rax)
	incl	%eax
	movzbl	(%r13,%rdx), %ebx
	leaq	(%rsi,%rdx), %rdi
	incq	%rdi
	incq	%rdx
	cmpq	$1, %rdi
	je	LBB0_23
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$10, %bl
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$13, %cl
	jne	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$13, %bl
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	$13, %bl
	cmpq	%r12, %rdx
	jae	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movb	$10, %cl
	cmpb	$10, (%r13,%rdx)
	jne	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$13, %cl
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %ecx
	jmp	LBB0_5
LBB0_14:
	movq	_PHPDBG_EOL_LF@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	(%r15), %edi
	callq	_PHPDBG_G
	cmpl	%eax, %ebx
	je	LBB0_16
## %bb.15:
	movq	_PHPDBG_EOL_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_PHPDBG_G
	cmpl	%eax, %ebx
	jne	LBB0_26
LBB0_16:
	movl	(%r14), %r14d
	movl	(%r15), %edi
	callq	_PHPDBG_G
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	cmpl	%eax, %r14d
	sete	-42(%rbp)                       ## 1-byte Folded Spill
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movl	%r12d, %edi
	callq	_emalloc
	movq	%rax, %r14
	testl	%r12d, %r12d
	jle	LBB0_22
## %bb.17:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	leal	(%r15,%r15,2), %edi
	addl	$10, %edi
	movb	-42(%rbp), %al                  ## 1-byte Reload
	movb	%al, %bl
	leal	(%rbx,%rbx,2), %esi
	addl	$10, %esi
	movb	(%r13), %cl
	movzbl	%dil, %r8d
	cmpl	$1, %r12d
	jne	LBB0_27
## %bb.18:
	xorl	%edx, %edx
	movl	%ecx, %r10d
LBB0_19:
	testb	$1, %r12b
	je	LBB0_24
## %bb.20:
	movsbl	%cl, %eax
	cmpl	%eax, %esi
	jne	LBB0_37
## %bb.21:
	movl	%edi, %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_22:
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_23:
	movl	%eax, %r12d
LBB0_24:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	movq	(%rbx), %rdi
	callq	_efree
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_erealloc
	movq	%rax, (%rbx)
	movl	%r12d, (%r15)
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	%r12d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	movl	%ecx, %r10d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=1
	movb	%al, 1(%r14,%rdx)
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	movzbl	2(%r13,%rdx), %ecx
	addq	$2, %rdx
	cmpq	%rdx, %r9
	je	LBB0_19
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %ebx
	movl	%edi, %eax
	cmpl	%ebx, %esi
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	%ecx, %eax
	cmpl	%ebx, %r8d
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movsbl	%r10b, %ecx
	movl	%edi, %eax
	cmpl	%ecx, %esi
	je	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	movb	%al, (%r14,%rdx)
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=1
	movzbl	1(%r13,%rdx), %r10d
	movsbl	%r10b, %ecx
	movl	%edi, %eax
	cmpl	%ecx, %esi
	je	LBB0_28
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	%r10d, %eax
	cmpl	%ecx, %r8d
	jne	LBB0_28
## %bb.36:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	%edi, %eax
	cmpl	%ebx, %esi
	jne	LBB0_28
	jmp	LBB0_29
LBB0_37:
	cmpl	%eax, %r8d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_39
## %bb.38:
	movsbl	%r10b, %eax
	movl	%edi, %ecx
	cmpl	%eax, %esi
	je	LBB0_25
LBB0_39:
	movb	%cl, (%r14,%rdx)
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_flags,4,2                      ## @flags
	.comm	_PHPDBG_IS_REMOTE,4,2           ## @PHPDBG_IS_REMOTE
	.comm	_PHPDBG_EOL_CRLF,4,2            ## @PHPDBG_EOL_CRLF
	.comm	_eol,4,2                        ## @eol
	.comm	_PHPDBG_EOL_LF,4,2              ## @PHPDBG_EOL_LF
	.comm	_PHPDBG_EOL_CR,4,2              ## @PHPDBG_EOL_CR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phpdbg_eol_convert             ; -- Begin function phpdbg_eol_convert
	.p2align	2
_phpdbg_eol_convert:                    ; @phpdbg_eol_convert
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w21, [x1]
Lloh0:
	adrp	x8, _flags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flags@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PHPDBG_G
Lloh3:
	adrp	x8, _PHPDBG_IS_REMOTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHPDBG_IS_REMOTE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_26
; %bb.1:
Lloh6:
	adrp	x8, _PHPDBG_EOL_CRLF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHPDBG_EOL_CRLF@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x23, _eol@GOTPAGE
Lloh10:
	ldr	x23, [x23, _eol@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_PHPDBG_G
	cmp	w24, w0
	b.ne	LBB0_14
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	_count_lf_and_cr
	add	w0, w0, w21
	bl	_emalloc
	mov	x23, x0
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.3:
	mov	x8, #0
	mov	w24, #0
	ldrb	w10, [x22], #1
	mov	w9, #13
	mov	x11, x10
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w11, #10
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	strb	w9, [x23, w24, sxtw]
	add	w24, w24, #1
	mov	w10, #10
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	strb	w10, [x23, w24, sxtw]
	ldrb	w10, [x22, x8]
	add	x12, x8, #1
	add	w24, w24, #1
	mov	x8, x12
	cmp	x21, x12
	b.eq	LBB0_25
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w11, #13
	b.ne	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w10, #13
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x8, #1
	cmp	x10, x21
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w10, [x22, x8]
	cmp	w10, #10
	b.ne	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w10, #13
	mov	w11, #13
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x11, x10
	b	LBB0_6
LBB0_14:
Lloh11:
	adrp	x24, _PHPDBG_EOL_LF@GOTPAGE
Lloh12:
	ldr	x24, [x24, _PHPDBG_EOL_LF@GOTPAGEOFF]
	ldr	w25, [x24]
	ldr	w0, [x23]
	bl	_PHPDBG_G
	cmp	w25, w0
	b.eq	LBB0_16
; %bb.15:
Lloh13:
	adrp	x8, _PHPDBG_EOL_CR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PHPDBG_EOL_CR@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
	ldr	w0, [x23]
	bl	_PHPDBG_G
	cmp	w25, w0
	b.ne	LBB0_26
LBB0_16:
	ldr	w24, [x24]
	ldr	w0, [x23]
	bl	_PHPDBG_G
	mov	w8, #13
	mov	w9, #10
	cmp	w24, w0
	csel	w24, w9, w8, eq
	csel	w25, w8, w9, eq
	mov	x0, x21
	bl	_emalloc
	mov	x23, x0
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.17:
	mov	x8, #0
	ldrb	w11, [x22], #1
	mov	x10, x11
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	strb	w11, [x23, x8]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldrb	w11, [x22, x8]
	add	x12, x8, #1
	mov	x8, x12
	mov	x10, x9
	cmp	x21, x12
	b.eq	LBB0_24
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x11
	sxtb	w12, w11
	mov	x11, x24
	cmp	w25, w12
	b.eq	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x11, x9
	cmp	w24, w12
	b.ne	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w25, w10, sxtb
	mov	x11, x24
	b.ne	LBB0_18
	b	LBB0_19
LBB0_23:
	mov	w24, #0
	b	LBB0_25
LBB0_24:
	mov	x24, x21
LBB0_25:
	ldr	x0, [x20]
	bl	_efree
	mov	x0, x23
	mov	x1, x24
	bl	_erealloc
	str	x0, [x20]
	str	w24, [x19]
LBB0_26:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_flags,4,2                      ; @flags
	.comm	_PHPDBG_IS_REMOTE,4,2           ; @PHPDBG_IS_REMOTE
	.comm	_PHPDBG_EOL_CRLF,4,2            ; @PHPDBG_EOL_CRLF
	.comm	_eol,4,2                        ; @eol
	.comm	_PHPDBG_EOL_LF,4,2              ; @PHPDBG_EOL_LF
	.comm	_PHPDBG_EOL_CR,4,2              ; @PHPDBG_EOL_CR
.subsections_via_symbols
