	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_to_net
_convert_to_net:                        ## @convert_to_net
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	$-1, _convert_to_net.newline(%rip)
	movq	$0, _convert_to_net.n(%rip)
	movq	$0, _convert_to_net.in(%rip)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	_convert_to_net.newline(%rip), %eax
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movb	%al, (%r14)
	movl	$-1, _convert_to_net.newline(%rip)
	movl	$1, %ebx
	cmpq	%r15, %rbx
	jb	LBB0_6
	jmp	LBB0_16
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	%r15, %rbx
	jae	LBB0_16
LBB0_6:
	movq	_convert_to_net.n(%rip), %rcx
	movq	_convert_to_net.in(%rip), %rax
	movq	_file@GOTPCREL(%rip), %r12
	movq	_convbuffer@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movw	$2573, (%r14,%rbx)              ## imm = 0xA0D
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rbx
	incq	%rcx
	movq	%rcx, _convert_to_net.n(%rip)
	cmpq	%r15, %rbx
	jae	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rcx
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %edi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdi
	movl	(%r12), %ecx
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_fread
	movq	%rax, _convert_to_net.in(%rip)
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	$10, %dl
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$13, %dl
	jne	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movw	$13, (%r14,%rbx)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	movq	%rcx, _convert_to_net.n(%rip)
	movb	%dl, (%r14,%rbx)
	incq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_7
LBB0_16:
	cmpq	%r15, %rbx
	jbe	LBB0_18
## %bb.17:
	movsbl	-1(%rbx,%r14), %eax
	movl	%eax, _convert_to_net.newline(%rip)
LBB0_18:
	cmpq	%r15, %rbx
	cmovbq	%rbx, %r15
	movq	%r15, %rax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_convert_to_net.n,8,3 ## @convert_to_net.n
.zerofill __DATA,__bss,_convert_to_net.in,8,3 ## @convert_to_net.in
	.section	__DATA,__data
	.p2align	2                               ## @convert_to_net.newline
_convert_to_net.newline:
	.long	4294967295                      ## 0xffffffff

	.comm	_file,4,2                       ## @file
	.comm	_convbuffer,8,3                 ## @convbuffer
	.no_dead_strip	_convert_to_net
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_to_net
_convert_to_net:                        ; @convert_to_net
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w2, LBB0_2
; %bb.1:
	mov	w8, #-1
	adrp	x9, _convert_to_net.newline@PAGE
	str	w8, [x9, _convert_to_net.newline@PAGEOFF]
Lloh0:
	adrp	x8, _convert_to_net.n@PAGE
	str	xzr, [x8, _convert_to_net.n@PAGEOFF]
Lloh1:
	adrp	x8, _convert_to_net.in@PAGE
	str	xzr, [x8, _convert_to_net.in@PAGEOFF]
	mov	x0, #0
	b	LBB0_19
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	adrp	x21, _convert_to_net.newline@PAGE
	ldr	w8, [x21, _convert_to_net.newline@PAGEOFF]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	strb	w8, [x20]
	mov	w8, #-1
	str	w8, [x21, _convert_to_net.newline@PAGEOFF]
	mov	w22, #1
	cmp	x22, x19
	b.lo	LBB0_5
	b	LBB0_16
LBB0_4:
	mov	x22, #0
	cmp	x22, x19
	b.hs	LBB0_16
LBB0_5:
	adrp	x23, _convert_to_net.n@PAGE
	ldr	x8, [x23, _convert_to_net.n@PAGEOFF]
	adrp	x24, _convert_to_net.in@PAGE
	ldr	x0, [x24, _convert_to_net.in@PAGEOFF]
Lloh2:
	adrp	x25, _file@GOTPAGE
Lloh3:
	ldr	x25, [x25, _file@GOTPAGEOFF]
	mov	w26, #2573
	mov	w27, #13
Lloh4:
	adrp	x28, _convbuffer@GOTPAGE
Lloh5:
	ldr	x28, [x28, _convbuffer@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	strh	w26, [x20, x22]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #2
	add	x8, x8, #1
	str	x8, [x23, _convert_to_net.n@PAGEOFF]
	cmp	x22, x19
	b.hs	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x0
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x25]
	bl	_feof
	cbnz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x28]
	ldr	w3, [x25]
	mov	w1, #1
	mov	x2, x19
	bl	_fread
	str	x0, [x24, _convert_to_net.in@PAGEOFF]
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x28]
	ldrb	w9, [x9, x8]
	cmp	w9, #10
	b.eq	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w9, #13
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	strh	w27, [x20, x22]
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	str	x8, [x23, _convert_to_net.n@PAGEOFF]
	strb	w9, [x20, x22]
	add	x22, x22, #1
	cmp	x22, x19
	b.lo	LBB0_8
LBB0_16:
	cmp	x22, x19
	b.ls	LBB0_18
; %bb.17:
	add	x8, x22, x20
	ldursb	w8, [x8, #-1]
	str	w8, [x21, _convert_to_net.newline@PAGEOFF]
LBB0_18:
	cmp	x22, x19
	csel	x0, x22, x19, lo
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdrp	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_convert_to_net.n,8,3 ; @convert_to_net.n
.zerofill __DATA,__bss,_convert_to_net.in,8,3 ; @convert_to_net.in
	.section	__DATA,__data
	.p2align	2                               ; @convert_to_net.newline
_convert_to_net.newline:
	.long	4294967295                      ; 0xffffffff

	.comm	_file,4,2                       ; @file
	.comm	_convbuffer,8,3                 ; @convbuffer
	.no_dead_strip	_convert_to_net
.subsections_via_symbols
