	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_room
_write_room:                            ## @write_room
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movl	(%rdi), %ecx
	subl	4(%rdi), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jg	LBB0_4
## %bb.3:
	movq	_LINE_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addl	%ecx, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_LINE_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	decl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_BUFSIZE,4,2               ## @LINE_BUFSIZE
	.no_dead_strip	_write_room
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_room
_write_room:                            ; @write_room
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w8, w9, [x0]
	sub	w8, w8, w9
Lloh0:
	adrp	x9, _LINE_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LINE_BUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w9, wzr, w9, gt
	add	w8, w9, w8
	sub	w0, w8, #1
	ret
LBB0_2:
Lloh3:
	adrp	x8, _LINE_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINE_BUFSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w0, w8, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_BUFSIZE,4,2               ; @LINE_BUFSIZE
	.no_dead_strip	_write_room
.subsections_via_symbols
