	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_line_write                     ## -- Begin function line_write
	.p2align	4, 0x90
_line_write:                            ## @line_write
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_1
## %bb.2:
	leaq	32(%rbx), %rdi
	movq	24(%rbx), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_write_chan
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	subl	%r13d, %r12d
	jle	LBB0_5
## %bb.4:
	movl	%r13d, %eax
	addq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_buffer_data
	addl	%eax, %r13d
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_buffer_data
	movl	%eax, %r13d
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_line_write                     ; -- Begin function line_write
	.p2align	2
_line_write:                            ; @line_write
	.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	x22, x2
	mov	x20, x1
	ldr	x21, [x0]
	add	x19, x21, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	add	x0, x21, #32
	ldr	x8, [x21, #24]
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x22
	bl	_write_chan
	mov	x23, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	sub	w2, w22, w23
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.3:
	add	x1, x20, w23, uxtw
	mov	x0, x21
	bl	_buffer_data
	add	w23, w0, w23
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_buffer_data
	mov	x23, x0
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
