	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_lines                        ## -- Begin function f_lines
	.p2align	4, 0x90
_f_lines:                               ## @f_lines
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r15
	movl	(%rcx), %r8d
	movq	_MINIMUM_SCREEN_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r8d
	jge	LBB0_3
## %bb.1:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	jmp	LBB0_2
LBB0_3:
	cmpl	$501, %r8d                      ## imm = 0x1F5
	jl	LBB0_5
## %bb.4:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	$500, %ecx                      ## imm = 0x1F4
LBB0_2:
	callq	_msgq
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_O_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_o_set
	movl	(%r14), %eax
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.6:
	movl	$1, (%r15)
	movq	_O_WINDOW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_O_VAL
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_O_D_VAL
	cmpl	%eax, %ebx
	je	LBB0_8
## %bb.7:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_O_VAL
	xorl	%ebx, %ebx
	cmpl	(%r14), %eax
	jle	LBB0_14
LBB0_8:
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_o_set
	movl	(%r12), %esi
	movq	_OS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %ecx
	decl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	decl	%eax
	sarl	%eax
	movl	%eax, (%r15)
	movq	_O_WINDOW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_O_VAL
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_O_D_VAL
	cmpl	%eax, %ebx
	jne	LBB0_11
## %bb.10:
	movl	(%r14), %r8d
	jmp	LBB0_12
LBB0_11:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_O_VAL
	movl	(%r14), %r8d
	xorl	%ebx, %ebx
	cmpl	%r8d, %eax
	jle	LBB0_14
LBB0_12:
	movl	(%r12), %esi
	decl	%r8d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_o_set
	movl	(%r12), %esi
	movq	_OS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	decl	%r8d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
LBB0_13:
	callq	_o_set
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MINIMUM_SCREEN_ROWS,4,2        ## @MINIMUM_SCREEN_ROWS
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"042|Screen lines too small, less than %d"

L_.str.1:                               ## @.str.1
	.asciz	"043|Screen lines too large, greater than %d"

	.comm	_O_LINES,4,2                    ## @O_LINES
	.comm	_O_WINDOW,4,2                   ## @O_WINDOW
	.comm	_OS_DEF,4,2                     ## @OS_DEF
	.comm	_MAXIMUM_SCREEN_ROWS,4,2        ## @MAXIMUM_SCREEN_ROWS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_lines                        ; -- Begin function f_lines
	.p2align	2
_f_lines:                               ; @f_lines
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x0
	ldr	w4, [x3]
Lloh0:
	adrp	x8, _MINIMUM_SCREEN_ROWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINIMUM_SCREEN_ROWS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	cmp	w4, w3
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _M_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_4
LBB0_2:
	cmp	w4, #501
	b.lt	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _M_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #500
LBB0_4:
	bl	_msgq
	mov	w0, #1
	b	LBB0_15
LBB0_5:
Lloh13:
	adrp	x8, _O_LINES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_LINES@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_o_set
	ldr	w8, [x20]
	subs	w9, w8, #1
	b.ne	LBB0_9
; %bb.6:
	str	w8, [x19]
Lloh16:
	adrp	x22, _O_WINDOW@GOTPAGE
Lloh17:
	ldr	x22, [x22, _O_WINDOW@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_O_VAL
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_O_D_VAL
	cmp	w21, w0
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_O_VAL
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_14
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	mov	w4, #1
	bl	_o_set
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _OS_DEF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OS_DEF@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	mov	w4, #1
	b	LBB0_13
LBB0_9:
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #1
	str	w8, [x19]
Lloh21:
	adrp	x22, _O_WINDOW@GOTPAGE
Lloh22:
	ldr	x22, [x22, _O_WINDOW@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_O_VAL
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_O_D_VAL
	cmp	w21, w0
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x20]
	b	LBB0_12
LBB0_11:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_O_VAL
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_14
LBB0_12:
	ldr	w1, [x22]
	sub	w4, w8, #1
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_o_set
	ldr	w1, [x22]
Lloh23:
	adrp	x8, _OS_DEF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OS_DEF@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	w8, [x20]
	sub	w4, w8, #1
	mov	x0, x19
	mov	x3, #0
LBB0_13:
	bl	_o_set
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MINIMUM_SCREEN_ROWS,4,2        ; @MINIMUM_SCREEN_ROWS
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"042|Screen lines too small, less than %d"

l_.str.1:                               ; @.str.1
	.asciz	"043|Screen lines too large, greater than %d"

	.comm	_O_LINES,4,2                    ; @O_LINES
	.comm	_O_WINDOW,4,2                   ; @O_WINDOW
	.comm	_OS_DEF,4,2                     ; @OS_DEF
	.comm	_MAXIMUM_SCREEN_ROWS,4,2        ; @MAXIMUM_SCREEN_ROWS
.subsections_via_symbols
