	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_refresh                     ## -- Begin function cl_refresh
	.p2align	4, 0x90
_cl_refresh:                            ## @cl_refresh
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_CLP
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_CLSP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_CLSP
	jmp	LBB0_3
LBB0_2:
	movq	_stdscr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	jne	LBB0_22
## %bb.4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:
	movq	_CL_LAYOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_18
LBB0_6:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_stdscr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_getyx
	testq	%r13, %r13
	je	LBB0_16
## %bb.7:
	movq	_q@GOTPCREL(%rip), %r12
	movq	%r13, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_cl_rdiv
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	(%rax,%rcx), %rdx
	incq	%rdx
	movq	8(%r15), %rcx
	movq	%rbx, %rdi
	cmpq	%rcx, %rdx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	16(%r15), %rdx
	addq	%rdx, %rcx
	incq	%rcx
	movq	%r15, %rdi
	cmpq	%rax, %rcx
	je	LBB0_13
	jmp	LBB0_14
LBB0_16:
	movq	_stdscr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_wmove
	movq	_CL_LAYOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_CLR
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:
	movq	_curscr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_clearok
LBB0_18:
	movq	_stdscr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_wnoutrefresh
	movq	_ERR@GOTPCREL(%rip), %r15
	movl	$1, %ebx
	cmpq	(%r15), %rax
	je	LBB0_22
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wnoutrefresh
	cmpq	(%r15), %rax
	je	LBB0_22
## %bb.20:
	movl	$0, %ebx
	cmpq	%r13, (%r14)
	jne	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	callq	_doupdate
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	sete	%bl
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdscr,8,3                     ## @stdscr
	.comm	_CL_LAYOUT,4,2                  ## @CL_LAYOUT
	.comm	_q,4,2                          ## @q
	.comm	_curscr,4,2                     ## @curscr
	.comm	_ERR,8,3                        ## @ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_refresh                     ; -- Begin function cl_refresh
	.p2align	2
_cl_refresh:                            ; @cl_refresh
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	bl	_CLP
	mov	x20, x0
	mov	x0, x19
	bl	_CLSP
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_CLSP
	mov	x21, x0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_21
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _stdscr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdscr@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_21
LBB0_3:
Lloh3:
	adrp	x25, _stdscr@GOTPAGE
Lloh4:
	ldr	x25, [x25, _stdscr@GOTPAGEOFF]
Lloh5:
	adrp	x26, _CL_LAYOUT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _CL_LAYOUT@GOTPAGEOFF]
	cbnz	w22, LBB0_5
; %bb.4:
	ldr	w1, [x26]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_17
LBB0_5:
	ldr	x0, [x25]
	bl	_getyx
	cbz	x19, LBB0_15
; %bb.6:
Lloh7:
	adrp	x27, _q@GOTPAGE
Lloh8:
	ldr	x27, [x27, _q@GOTPAGEOFF]
	mov	x23, x19
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x27]
	mov	x0, x23
	bl	_TAILQ_NEXT
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w1, [x27]
	mov	x0, x23
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	bl	_cl_rdiv
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w1, [x27]
	mov	x0, x24
	bl	_TAILQ_NEXT
	mov	x24, x0
	cbz	x0, LBB0_7
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldp	x8, x9, [x23, #8]
	add	x9, x8, x9
	add	x10, x9, #1
	ldr	x9, [x24, #8]
	mov	x0, x23
	cmp	x10, x9
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x10, [x24, #16]
	add	x9, x9, x10
	add	x9, x9, #1
	mov	x0, x24
	cmp	x9, x8
	b.eq	LBB0_10
	b	LBB0_11
LBB0_15:
	ldr	x0, [x25]
	bl	_wmove
	ldr	w1, [x26]
	mov	x0, x20
	bl	_F_CLR
	cbz	w22, LBB0_17
; %bb.16:
Lloh9:
	adrp	x8, _curscr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _curscr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_clearok
LBB0_17:
	ldr	x0, [x25]
	bl	_wnoutrefresh
Lloh12:
	adrp	x22, _ERR@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ERR@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x21
	bl	_wnoutrefresh
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_20
LBB0_19:
	mov	w0, #1
	b	LBB0_22
LBB0_20:
	ldr	x8, [x20]
	cmp	x8, x19
	b.eq	LBB0_23
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	_doupdate
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_stdscr,8,3                     ; @stdscr
	.comm	_CL_LAYOUT,4,2                  ; @CL_LAYOUT
	.comm	_q,4,2                          ; @q
	.comm	_curscr,4,2                     ; @curscr
	.comm	_ERR,8,3                        ; @ERR
.subsections_via_symbols
