	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_crlf
_copy_crlf:                             ## @copy_crlf
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %eax
	movq	%rsi, %rbx
	movq	%rdi, -1080(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -48(%rbp)
	cmpl	$0, (%rcx)
	je	LBB0_3
## %bb.1:
	cmpb	$10, (%rbx)
	jne	LBB0_4
## %bb.2:
	leaq	-1072(%rbp), %rdx
	jmp	LBB0_5
LBB0_3:
	leaq	-1072(%rbp), %rdx
	testl	%eax, %eax
	jg	LBB0_6
	jmp	LBB0_17
LBB0_4:
	leaq	-1071(%rbp), %rdx
	movb	$13, -1072(%rbp)
LBB0_5:
	movl	$0, (%rcx)
	testl	%eax, %eax
	jle	LBB0_17
LBB0_6:
	movq	%rcx, -1088(%rbp)               ## 8-byte Spill
	movslq	%eax, %r14
	addq	%rbx, %r14
	leaq	-48(%rbp), %r15
	leaq	-1072(%rbp), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	%r14, %rbx
	jae	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$13, %al
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%rbx), %rcx
	cmpq	%r14, %rcx
	jae	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$10, 1(%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rcx
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	(%rcx), %eax
	movq	%rcx, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movb	%al, (%rdx)
	incq	%rdx
	cmpq	%r15, %rdx
	jb	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	subl	%r12d, %edx
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mbuf_append
	movq	%r12, %rdx
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_20
LBB0_16:
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movl	$1, (%rax)
LBB0_17:
	leaq	-1072(%rbp), %rax
	subq	%rax, %rdx
	testq	%rdx, %rdx
	jle	LBB0_19
## %bb.18:
	leaq	-1072(%rbp), %rsi
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mbuf_append
	testl	%eax, %eax
	js	LBB0_20
LBB0_19:
	leaq	-1072(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_px_memset
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %r13d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r13d, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_crlf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_crlf
_copy_crlf:                             ; @copy_crlf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #1040
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x9, sp, #8
	ldr	w8, [x3]
	cbz	w8, LBB0_4
; %bb.1:
	add	x8, sp, #8
	ldrb	w10, [x21]
	cmp	w10, #10
	b.eq	LBB0_3
; %bb.2:
	add	x8, x8, #1
	mov	w10, #13
	strb	w10, [sp, #8]
LBB0_3:
	str	wzr, [x20]
	cmp	w2, #1
	b.ge	LBB0_5
	b	LBB0_13
LBB0_4:
	add	x8, sp, #8
	cmp	w2, #1
	b.lt	LBB0_13
LBB0_5:
	add	x22, x21, w2, sxtw
	add	x23, x9, #1024
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x21, x22
	b.hs	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21]
	cmp	w9, #13
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x21, #1
	cmp	x9, x22
	b.hs	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w10, [x21, #1]
	cmp	w10, #10
	csel	x21, x9, x21, eq
	ldrb	w9, [x21]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w9, [x8], #1
	cmp	x8, x23
	b.lo	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x9, sp, #8
	sub	w2, w8, w9
	add	x1, sp, #8
	mov	x0, x19
	bl	_mbuf_append
	add	x8, sp, #8
	tbz	w0, #31, LBB0_6
	b	LBB0_16
LBB0_12:
	mov	w9, #1
	str	w9, [x20]
LBB0_13:
	add	x9, sp, #8
	sub	x2, x8, x9
	cmp	x2, #1
	b.lt	LBB0_15
; %bb.14:
	add	x1, sp, #8
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_mbuf_append
	tbnz	w0, #31, LBB0_16
LBB0_15:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #1024
	bl	_px_memset
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_copy_crlf
.subsections_via_symbols
