	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put_sbuf_line                  ## -- Begin function put_sbuf_line
	.p2align	4, 0x90
_put_sbuf_line:                         ## @put_sbuf_line
	.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	%rdi, %r15
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movl	$1, %ebx
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	cmpb	$10, (%r13)
	leaq	1(%r13), %r13
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %r12
	negq	%r12
	movq	_LINECHARS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_10
## %bb.4:
	movq	_seek_write@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_sfp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseeko
	testq	%rax, %rax
	js	LBB0_12
## %bb.6:
	movq	_sfp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ftello
	movq	_sfseek@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_seek_write@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_7:
	movq	_sfp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_fwrite
	addq	%rbx, %rax
	jne	LBB0_11
## %bb.8:
	movq	%r12, (%r14)
	movq	_sfseek@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_add_line_node
	subq	%rbx, (%r15)
	jmp	LBB0_15
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	leaq	L_.str.1(%rip), %rax
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_sfseek@GOTPCREL(%rip), %rax
	movq	$-1, (%rax)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	leaq	L_.str.3(%rip), %rax
LBB0_13:
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_free
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_errmsg,8,3                     ## @errmsg
	.comm	_LINECHARS,4,2                  ## @LINECHARS
L_.str.2:                               ## @.str.2
	.asciz	"line too long"

	.comm	_seek_write,8,3                 ## @seek_write
	.comm	_sfp,4,2                        ## @sfp
	.comm	_SEEK_END,4,2                   ## @SEEK_END
L_.str.3:                               ## @.str.3
	.asciz	"cannot seek temp file"

	.comm	_sfseek,8,3                     ## @sfseek
L_.str.4:                               ## @.str.4
	.asciz	"cannot write temp file"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put_sbuf_line                  ; -- Begin function put_sbuf_line
	.p2align	2
_put_sbuf_line:                         ; @put_sbuf_line
	.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
	mov	x20, x0
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x22]
	add	x22, x22, #1
	cmp	w8, #10
	b.ne	LBB0_2
; %bb.3:
	sub	x21, x22, #1
Lloh0:
	adrp	x8, _LINECHARS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINECHARS@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_10
; %bb.4:
Lloh3:
	adrp	x24, _seek_write@GOTPAGE
Lloh4:
	ldr	x24, [x24, _seek_write@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh5:
	adrp	x23, _sfp@GOTPAGE
Lloh6:
	ldr	x23, [x23, _sfp@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w0, [x23]
Lloh7:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseeko
	tbnz	x0, #63, LBB0_12
; %bb.6:
	ldr	w0, [x23]
	bl	_ftello
Lloh10:
	adrp	x8, _sfseek@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sfseek@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
	str	xzr, [x24]
LBB0_7:
	ldr	w3, [x23]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_fwrite
	add	x8, x0, #1
	cmp	x8, x22
	b.ne	LBB0_11
; %bb.8:
	add	x20, x20, x22
	str	x21, [x19]
Lloh13:
	adrp	x21, _sfseek@GOTPAGE
Lloh14:
	ldr	x21, [x21, _sfseek@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_add_line_node
	ldr	x8, [x21]
	add	x8, x8, x22
	sub	x8, x8, #1
	str	x8, [x21]
	b	LBB0_14
LBB0_9:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	x20, #0
Lloh23:
	adrp	x8, _errmsg@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh25:
	adrp	x9, l_.str.1@PAGE
Lloh26:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh27:
	str	x9, [x8]
	b	LBB0_14
LBB0_10:
Lloh28:
	adrp	x8, _errmsg@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh30:
	adrp	x9, l_.str.2@PAGE
Lloh31:
	add	x9, x9, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh32:
	adrp	x8, _sfseek@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sfseek@GOTPAGEOFF]
	mov	x9, #-1
Lloh34:
	str	x9, [x8]
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fprintf
Lloh43:
	adrp	x8, _errmsg@GOTPAGE
Lloh44:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh45:
	adrp	x9, l_.str.4@PAGE
Lloh46:
	add	x9, x9, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh47:
	adrp	x8, _stderr@GOTPAGE
Lloh48:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh49:
	ldr	w20, [x8]
Lloh50:
	adrp	x8, _errno@GOTPAGE
Lloh51:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh53:
	adrp	x1, l_.str@PAGE
Lloh54:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fprintf
Lloh55:
	adrp	x8, _errmsg@GOTPAGE
Lloh56:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh57:
	adrp	x9, l_.str.3@PAGE
Lloh58:
	add	x9, x9, l_.str.3@PAGEOFF
LBB0_13:
	str	x9, [x8]
	mov	x0, x19
	bl	_free
	mov	x20, #0
LBB0_14:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh27
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_errmsg,8,3                     ; @errmsg
	.comm	_LINECHARS,4,2                  ; @LINECHARS
l_.str.2:                               ; @.str.2
	.asciz	"line too long"

	.comm	_seek_write,8,3                 ; @seek_write
	.comm	_sfp,4,2                        ; @sfp
	.comm	_SEEK_END,4,2                   ; @SEEK_END
l_.str.3:                               ; @.str.3
	.asciz	"cannot seek temp file"

	.comm	_sfseek,8,3                     ; @sfseek
l_.str.4:                               ; @.str.4
	.asciz	"cannot write temp file"

.subsections_via_symbols
