	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_screen                      ## -- Begin function cl_screen
	.p2align	4, 0x90
_cl_screen:                             ## @cl_screen
	.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, %r13
	movq	16(%rdi), %r12
	callq	_CLP
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_CLSP
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_CLSP
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_2:
	movq	_stdscr@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_3:
	movq	_G_SRESTART@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_SC_SCR_EX@GOTPCREL(%rip), %rax
	movq	_SC_SCR_VI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_O_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_O_VAL
	movq	%rax, %rbx
	movq	_O_COLUMNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_O_VAL
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_resizeterm
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_cl_quit
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_25
LBB0_7:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_F_CLR
LBB0_8:
	movq	_SC_EX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_SC_SCR_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_25
LBB0_10:
	movq	_SC_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_SC_SCR_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_25
LBB0_12:
	movq	_SC_SCR_EX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_F_CLR
LBB0_14:
	movq	_SC_SCR_VI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_F_CLR
	movq	_q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	8(%r13), %esi
	movq	%r13, %rdi
	callq	_RLNO
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_wmove
	movq	%r15, %rdi
	callq	_wclrtobot
LBB0_17:
	movl	8(%r13), %esi
	movq	%r13, %rdi
	callq	_RLNO
	leaq	-1(%rax), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wmove
	movq	%r15, %rdi
	callq	_wrefresh
LBB0_18:
	movl	(%r12), %edi
	callq	_LF_ISSET
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	%r13, %rdi
	callq	_cl_ex_init
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.20:
	movq	_CL_IN_EX@GOTPCREL(%rip), %rax
	movq	_CL_SCR_EX_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_F_SET
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	(%r14), %r14
	testq	%r14, %r14
	je	LBB0_25
## %bb.22:
	movq	_O_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_O_VAL
	leaq	-1(%rax), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tgoto
	movq	_cl_putchar@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %esi
	callq	_tputs
	jmp	LBB0_25
LBB0_23:
	movq	%r13, %rdi
	callq	_cl_vi_init
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:
	movq	_CL_IN_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_F_CLR
	movq	_CL_SCR_VI_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	xorl	%ebx, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdscr,8,3                     ## @stdscr
	.comm	_G_SRESTART,4,2                 ## @G_SRESTART
	.comm	_SC_SCR_EX,4,2                  ## @SC_SCR_EX
	.comm	_SC_SCR_VI,4,2                  ## @SC_SCR_VI
	.comm	_O_LINES,4,2                    ## @O_LINES
	.comm	_O_COLUMNS,4,2                  ## @O_COLUMNS
	.comm	_SC_EX,4,2                      ## @SC_EX
	.comm	_SC_VI,4,2                      ## @SC_VI
	.comm	_q,4,2                          ## @q
	.comm	_CL_IN_EX,4,2                   ## @CL_IN_EX
	.comm	_CL_SCR_EX_INIT,4,2             ## @CL_SCR_EX_INIT
	.comm	_cl_putchar,4,2                 ## @cl_putchar
	.comm	_CL_SCR_VI_INIT,4,2             ## @CL_SCR_VI_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_screen                      ; -- Begin function cl_screen
	.p2align	2
_cl_screen:                             ; @cl_screen
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x22, [x0, #16]
	bl	_CLP
	mov	x19, x0
	mov	x0, x20
	bl	_CLSP
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_CLSP
	mov	x21, x0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _stdscr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdscr@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
LBB0_3:
Lloh3:
	adrp	x25, _G_SRESTART@GOTPAGE
Lloh4:
	ldr	x25, [x25, _G_SRESTART@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_F_ISSET
Lloh5:
	adrp	x24, _SC_SCR_EX@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SC_SCR_EX@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x24]
Lloh7:
	adrp	x9, _SC_SCR_VI@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SC_SCR_VI@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _O_LINES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_LINES@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_VAL
	mov	x23, x0
Lloh13:
	adrp	x8, _O_COLUMNS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_COLUMNS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_VAL
	mov	x1, x0
	mov	x0, x23
	bl	_resizeterm
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_cl_quit
	cbnz	x0, LBB0_25
LBB0_7:
	ldr	w1, [x25]
	mov	x0, x22
	bl	_F_CLR
LBB0_8:
Lloh16:
	adrp	x22, _SC_EX@GOTPAGE
Lloh17:
	ldr	x22, [x22, _SC_EX@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_LF_ISSET
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_F_ISSET
	cbnz	x0, LBB0_12
LBB0_10:
Lloh18:
	adrp	x8, _SC_VI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SC_VI@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_LF_ISSET
	cbz	x0, LBB0_13
; %bb.11:
Lloh21:
	adrp	x8, _SC_SCR_VI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SC_SCR_VI@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_13
LBB0_12:
	mov	w0, #0
	b	LBB0_26
LBB0_13:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_F_CLR
LBB0_15:
Lloh24:
	adrp	x23, _SC_SCR_VI@GOTPAGE
Lloh25:
	ldr	x23, [x23, _SC_SCR_VI@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_19
; %bb.16:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_F_CLR
Lloh26:
	adrp	x8, _q@GOTPAGE
Lloh27:
	ldr	x8, [x8, _q@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w1, [x20, #8]
	mov	x0, x20
	bl	_RLNO
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_wmove
	mov	x0, x21
	bl	_wclrtobot
LBB0_18:
	ldr	w1, [x20, #8]
	mov	x0, x20
	bl	_RLNO
	sub	x1, x0, #1
	mov	x0, x21
	mov	w2, #0
	bl	_wmove
	mov	x0, x21
	bl	_wrefresh
LBB0_19:
	ldr	w0, [x22]
	bl	_LF_ISSET
	cbz	x0, LBB0_24
; %bb.20:
	mov	x0, x20
	bl	_cl_ex_init
	cbnz	x0, LBB0_25
; %bb.21:
Lloh29:
	adrp	x8, _CL_IN_EX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CL_IN_EX@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _CL_SCR_EX_INIT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CL_SCR_EX_INIT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_SET
	ldr	w1, [x22]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_26
; %bb.22:
	ldr	x19, [x19]
	cbz	x19, LBB0_12
; %bb.23:
Lloh35:
	adrp	x8, _O_LINES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _O_LINES@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_VAL
	sub	x2, x0, #1
	mov	x0, x19
	mov	w1, #0
	bl	_tgoto
Lloh38:
	adrp	x8, _cl_putchar@GOTPAGE
Lloh39:
	ldr	x8, [x8, _cl_putchar@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	w1, #1
	bl	_tputs
	b	LBB0_12
LBB0_24:
	mov	x0, x20
	bl	_cl_vi_init
	cbz	x0, LBB0_27
LBB0_25:
	mov	w0, #1
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
Lloh41:
	adrp	x8, _CL_IN_EX@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CL_IN_EX@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_CLR
Lloh44:
	adrp	x8, _CL_SCR_VI_INIT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CL_SCR_VI_INIT@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_stdscr,8,3                     ; @stdscr
	.comm	_G_SRESTART,4,2                 ; @G_SRESTART
	.comm	_SC_SCR_EX,4,2                  ; @SC_SCR_EX
	.comm	_SC_SCR_VI,4,2                  ; @SC_SCR_VI
	.comm	_O_LINES,4,2                    ; @O_LINES
	.comm	_O_COLUMNS,4,2                  ; @O_COLUMNS
	.comm	_SC_EX,4,2                      ; @SC_EX
	.comm	_SC_VI,4,2                      ; @SC_VI
	.comm	_q,4,2                          ; @q
	.comm	_CL_IN_EX,4,2                   ; @CL_IN_EX
	.comm	_CL_SCR_EX_INIT,4,2             ; @CL_SCR_EX_INIT
	.comm	_cl_putchar,4,2                 ; @cl_putchar
	.comm	_CL_SCR_VI_INIT,4,2             ; @CL_SCR_VI_INIT
.subsections_via_symbols
