	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_stream                   ## -- Begin function write_stream
	.p2align	4, 0x90
_write_stream:                          ## @write_stream
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_get_addressed_line_node
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	cmpq	%r14, %rbx
	jg	LBB0_12
## %bb.2:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_get_sbuf_line
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %r15d
	movq	_addr_last@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_isbinary@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_newline_added@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rcx
	leal	1(%rcx), %r15d
	movb	$10, (%rax,%rcx)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_put_stream_line
	testq	%rax, %rax
	js	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %r12
	incq	%rbx
	addq	$-1, %rbx
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %r13
	leaq	1(%rbx), %rax
	cmpq	%r14, %rbx
	movq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_12
LBB0_4:
	movq	_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR,8,3                        ## @ERR
	.comm	_addr_last,8,3                  ## @addr_last
	.comm	_isbinary,4,2                   ## @isbinary
	.comm	_newline_added,4,2              ## @newline_added
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_stream                   ; -- Begin function write_stream
	.p2align	2
_write_stream:                          ; @write_stream
	.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
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_get_addressed_line_node
	mov	x19, #0
	cbz	x23, LBB0_10
; %bb.1:
	cmp	x23, x20
	b.gt	LBB0_10
; %bb.2:
	mov	x22, x0
	mov	x19, #0
Lloh0:
	adrp	x25, _addr_last@GOTPAGE
Lloh1:
	ldr	x25, [x25, _addr_last@GOTPAGEOFF]
Lloh2:
	adrp	x26, _isbinary@GOTPAGE
Lloh3:
	ldr	x26, [x26, _isbinary@GOTPAGEOFF]
	mov	w27, #10
Lloh4:
	adrp	x28, _newline_added@GOTPAGE
Lloh5:
	ldr	x28, [x28, _newline_added@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_get_sbuf_line
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	ldr	w24, [x22]
	ldr	x8, [x25]
	ldr	w9, [x26]
	ldr	w10, [x28]
	cmp	x23, x8
	ccmp	w9, #0, #4, eq
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w24
	add	w24, w24, #1
	strb	w27, [x1, x8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x2, x24
	bl	_put_stream_line
	tbnz	x0, #63, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, w24, sxtw
	add	x8, x23, #1
	subs	x8, x8, #1
	b.lo	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #8]
	add	x23, x8, #1
	cmp	x8, x20
	b.lt	LBB0_3
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
LBB0_10:
	mov	x0, x19
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR,8,3                        ; @ERR
	.comm	_addr_last,8,3                  ; @addr_last
	.comm	_isbinary,4,2                   ; @isbinary
	.comm	_newline_added,4,2              ; @newline_added
.subsections_via_symbols
