	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_resolve                     ## -- Begin function vs_resolve
	.p2align	4, 0x90
_vs_resolve:                            ## @vs_resolve
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	56(%rdi), %rbx
	callq	_VIP
	movq	%rax, %r13
	testq	%r14, %r14
	cmoveq	%r12, %r14
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	*48(%rbx)
	movq	_G_BELLSCHED@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	movq	%r12, %rdi
	callq	*40(%rbx)
LBB0_2:
	movq	_SC_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_F_CLR
	movl	32(%r12), %esi
	movq	_MSTAT_TRUNCATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_msgq_status
LBB0_4:
	movq	%r12, %rdi
	callq	_mod_rpt
	movl	16(%rbx), %edi
	callq	_SLIST_EMPTY
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	_SC_SCR_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	16(%rbx), %edi
	callq	_SLIST_FIRST
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r13
	movq	_q@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %esi
	movq	(%r13), %rdx
	movl	8(%r13), %ecx
	movq	%r12, %rdi
	callq	*24(%rbx)
	movl	16(%rbx), %edi
	movl	(%r15), %esi
	callq	_SLIST_REMOVE_HEAD
	movq	(%r13), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	movl	16(%rbx), %edi
	callq	_SLIST_FIRST
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	movq	_VIP_CUR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_F_SET
LBB0_11:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.14:
	movq	_SCROLL_W@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vs_scroll
	jmp	LBB0_17
LBB0_15:
	movq	_SCROLL_W@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vs_scroll
	movq	_E_REPAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %eax
	movl	%eax, %ecx
	subl	(%r13), %ecx
	movl	$1, %edx
	cmovgl	%ecx, %edx
	movl	%edx, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	$0, (%r13)
	movl	$0, 8(%r13)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_vs_repaint
	jmp	LBB0_18
LBB0_6:
	movl	$1, %r13d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_vs_refresh
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_7
LBB0_16:
	movq	_VIP_S_MODELINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_SET
LBB0_17:
	movq	$0, (%r13)
	movl	$0, 8(%r13)
LBB0_18:
	movq	-80(%rbp), %rsi
	movq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%rbx)
	xorl	%r13d, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G_BELLSCHED,4,2                ## @G_BELLSCHED
	.comm	_SC_STATUS,4,2                  ## @SC_STATUS
	.comm	_MSTAT_TRUNCATE,4,2             ## @MSTAT_TRUNCATE
	.comm	_SC_SCR_VI,4,2                  ## @SC_SCR_VI
	.comm	_q,4,2                          ## @q
	.comm	_VIP_CUR_INVALID,4,2            ## @VIP_CUR_INVALID
	.comm	_SCROLL_W,4,2                   ## @SCROLL_W
	.comm	_VIP_S_MODELINE,4,2             ## @VIP_S_MODELINE
	.comm	_E_REPAINT,4,2                  ## @E_REPAINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_resolve                     ; -- Begin function vs_resolve
	.p2align	2
_vs_resolve:                            ; @vs_resolve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #56]
	bl	_VIP
	mov	x21, x0
	cmp	x20, #0
	csel	x20, x22, x20, eq
	ldr	x8, [x19, #48]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	blr	x8
Lloh0:
	adrp	x24, _G_BELLSCHED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _G_BELLSCHED@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_CLR
	ldr	x8, [x19, #40]
	mov	x0, x22
	blr	x8
LBB0_2:
Lloh2:
	adrp	x24, _SC_STATUS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SC_STATUS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_F_ISSET
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x24]
	mov	x0, x22
	bl	_F_CLR
	ldr	w1, [x22, #32]
Lloh4:
	adrp	x8, _MSTAT_TRUNCATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSTAT_TRUNCATE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_msgq_status
LBB0_4:
	mov	x0, x22
	bl	_mod_rpt
	ldr	w0, [x19, #16]
	bl	_SLIST_EMPTY
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x21]
	cbnz	w8, LBB0_11
	b	LBB0_17
LBB0_6:
Lloh7:
	adrp	x8, _SC_SCR_VI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SC_SCR_VI@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_F_ISSET
	cbz	x0, LBB0_15
LBB0_7:
	ldr	w0, [x19, #16]
	bl	_SLIST_FIRST
	cbz	x0, LBB0_10
; %bb.8:
	mov	x24, x0
Lloh10:
	adrp	x25, _q@GOTPAGE
Lloh11:
	ldr	x25, [x25, _q@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x2, [x24]
	ldp	w3, w1, [x24, #8]
	mov	x0, x22
	blr	x8
	ldr	w0, [x19, #16]
	ldr	w1, [x25]
	bl	_SLIST_REMOVE_HEAD
	ldr	x0, [x24]
	bl	_free
	mov	x0, x24
	bl	_free
	ldr	w0, [x19, #16]
	bl	_SLIST_FIRST
	mov	x24, x0
	cbnz	x0, LBB0_9
LBB0_10:
Lloh12:
	adrp	x8, _VIP_CUR_INVALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIP_CUR_INVALID@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_F_SET
	ldr	w8, [x21]
	cbz	w8, LBB0_17
LBB0_11:
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.12:
	cbz	w23, LBB0_16
; %bb.13:
Lloh15:
	adrp	x8, _SCROLL_W@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCROLL_W@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, #0
	bl	_vs_scroll
	b	LBB0_17
LBB0_14:
Lloh18:
	adrp	x8, _SCROLL_W@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCROLL_W@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, #0
	bl	_vs_scroll
Lloh21:
	adrp	x8, _E_REPAINT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E_REPAINT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w8, [x21]
	ldr	w9, [x22]
	subs	w8, w9, w8
	csinc	w8, w8, wzr, gt
	stp	w8, w9, [sp, #16]
	str	wzr, [x21, #8]
	str	xzr, [x21]
	add	x1, sp, #16
	mov	x0, x22
	bl	_vs_repaint
	b	LBB0_18
LBB0_15:
	mov	w24, #1
	mov	x0, x22
	mov	w1, #1
	bl	_vs_refresh
	cbnz	x0, LBB0_19
	b	LBB0_7
LBB0_16:
Lloh24:
	adrp	x8, _VIP_S_MODELINE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VIP_S_MODELINE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_F_SET
LBB0_17:
	str	wzr, [x21, #8]
	str	xzr, [x21]
LBB0_18:
	ldr	x8, [x19, #8]
	ldp	x2, x1, [sp]
	mov	x0, x20
	blr	x8
	mov	w24, #0
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_G_BELLSCHED,4,2                ; @G_BELLSCHED
	.comm	_SC_STATUS,4,2                  ; @SC_STATUS
	.comm	_MSTAT_TRUNCATE,4,2             ; @MSTAT_TRUNCATE
	.comm	_SC_SCR_VI,4,2                  ; @SC_SCR_VI
	.comm	_q,4,2                          ; @q
	.comm	_VIP_CUR_INVALID,4,2            ; @VIP_CUR_INVALID
	.comm	_SCROLL_W,4,2                   ; @SCROLL_W
	.comm	_VIP_S_MODELINE,4,2             ; @VIP_S_MODELINE
	.comm	_E_REPAINT,4,2                  ; @E_REPAINT
.subsections_via_symbols
