	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_ex_resolve                  ## -- Begin function vs_ex_resolve
	.p2align	4, 0x90
_vs_ex_resolve:                         ## @vs_ex_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	24(%rdi), %r13
	callq	_VIP
	movq	%rax, %r14
	movl	$0, (%r15)
	movq	_VIP_CUR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_SET
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movl	32(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_vs_output
	movq	$0, (%r14)
	movq	_M_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
LBB0_2:
	movq	_SC_SCR_EXWROTE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	24(%rbx), %rax
	movq	_SC_VI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_26
	jmp	LBB0_4
LBB0_8:
	movq	_SC_EX_WAIT_YES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:
	cmpl	$1, 8(%r14)
	jg	LBB0_4
## %bb.10:
	movq	_SC_EX_WAIT_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	jmp	LBB0_25
LBB0_4:
	movq	_SC_EX_WAIT_YES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	movq	_SC_EX_WAIT_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:
	movq	%rbx, %rdi
	callq	_INTERRUPTED
	testl	%eax, %eax
	je	LBB0_6
LBB0_16:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_VIP_N_EX_PAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_SET
LBB0_18:
	movq	_q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_SC_SCR_REDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
LBB0_20:
	movq	_VIP_N_EX_REDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_SC_SCR_REFORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
LBB0_22:
	movq	_SA_ALTERNATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r15d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	*(%r13)
	movq	_SC_EX_WAIT_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	movl	8(%r14), %eax
	cmpl	$2, %eax
	jl	LBB0_24
## %bb.23:
	movq	_E_REPAINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movl	12(%rbx), %ecx
	movl	%ecx, %edx
	subl	%eax, %edx
	cmovgl	%edx, %r15d
	movl	%r15d, -56(%rbp)
	movl	%ecx, -52(%rbp)
	movl	$0, 8(%r14)
	movq	$0, (%r14)
	movq	$0, 16(%r14)
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vs_repaint
	jmp	LBB0_25
LBB0_24:
	movl	$0, 8(%r14)
	movq	$0, (%r14)
	movq	$0, 16(%r14)
LBB0_25:
	xorl	%eax, %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_SC_EXIT@GOTPCREL(%rip), %rax
	movq	_SC_EXIT_FORCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SC_FSWITCH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_SC_SSWITCH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:
	movq	_SCROLL_W_EX@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_SCROLL_W@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	movq	%rbx, %rdi
	movq	%r15, %rsi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_vs_wait
	jmp	LBB0_15
LBB0_14:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_vs_scroll
LBB0_15:
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	jne	LBB0_26
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VIP_CUR_INVALID,4,2            ## @VIP_CUR_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_M_NONE,4,2                     ## @M_NONE
	.comm	_SC_SCR_EXWROTE,4,2             ## @SC_SCR_EXWROTE
	.comm	_SC_VI,4,2                      ## @SC_VI
	.comm	_SC_EX_WAIT_YES,4,2             ## @SC_EX_WAIT_YES
	.comm	_SC_EX_WAIT_NO,4,2              ## @SC_EX_WAIT_NO
	.comm	_SC_EXIT,4,2                    ## @SC_EXIT
	.comm	_SC_EXIT_FORCE,4,2              ## @SC_EXIT_FORCE
	.comm	_SC_FSWITCH,4,2                 ## @SC_FSWITCH
	.comm	_SC_SSWITCH,4,2                 ## @SC_SSWITCH
	.comm	_SCROLL_W,4,2                   ## @SCROLL_W
	.comm	_SCROLL_W_EX,4,2                ## @SCROLL_W_EX
	.comm	_VIP_N_EX_PAINT,4,2             ## @VIP_N_EX_PAINT
	.comm	_q,4,2                          ## @q
	.comm	_SC_SCR_REDRAW,4,2              ## @SC_SCR_REDRAW
	.comm	_VIP_N_EX_REDRAW,4,2            ## @VIP_N_EX_REDRAW
	.comm	_SC_SCR_REFORMAT,4,2            ## @SC_SCR_REFORMAT
	.comm	_SA_ALTERNATE,4,2               ## @SA_ALTERNATE
	.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_ex_resolve                  ; -- Begin function vs_ex_resolve
	.p2align	2
_vs_ex_resolve:                         ; @vs_ex_resolve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #24]
	bl	_VIP
	mov	x20, x0
	str	wzr, [x21]
Lloh0:
	adrp	x8, _VIP_CUR_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIP_CUR_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_F_SET
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20, #32]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_vs_output
	str	xzr, [x20]
Lloh5:
	adrp	x8, _M_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #32]
LBB0_2:
Lloh8:
	adrp	x24, _SC_SCR_EXWROTE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SC_SCR_EXWROTE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
Lloh10:
	adrp	x9, _SC_VI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SC_VI@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_8
; %bb.4:
	mov	w0, #1
	b	LBB0_19
LBB0_5:
Lloh13:
	adrp	x8, _SC_EX_WAIT_YES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SC_EX_WAIT_YES@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.gt	LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _SC_EX_WAIT_NO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SC_EX_WAIT_NO@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_CLR
	mov	w0, #0
	b	LBB0_19
LBB0_8:
Lloh19:
	adrp	x8, _SC_EX_WAIT_YES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SC_EX_WAIT_YES@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_CLR
Lloh22:
	adrp	x25, _SC_EX_WAIT_NO@GOTPAGE
Lloh23:
	ldr	x25, [x25, _SC_EX_WAIT_NO@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_F_ISSET
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_INTERRUPTED
	cbz	w0, LBB0_20
LBB0_10:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_12
; %bb.11:
Lloh24:
	adrp	x8, _VIP_N_EX_PAINT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VIP_N_EX_PAINT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_SET
LBB0_12:
Lloh27:
	adrp	x8, _q@GOTPAGE
Lloh28:
	ldr	x8, [x8, _q@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_14
; %bb.13:
Lloh30:
	adrp	x8, _SC_SCR_REDRAW@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SC_SCR_REDRAW@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
LBB0_14:
Lloh33:
	adrp	x8, _VIP_N_EX_REDRAW@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VIP_N_EX_REDRAW@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_16
; %bb.15:
Lloh36:
	adrp	x8, _SC_SCR_REFORMAT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SC_SCR_REFORMAT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
LBB0_16:
	ldr	x8, [x23]
Lloh39:
	adrp	x9, _SA_ALTERNATE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SA_ALTERNATE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_CLR
	ldr	w8, [x20, #8]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.17:
Lloh42:
	adrp	x9, _E_REPAINT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _E_REPAINT@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x9]
	ldr	w9, [x19, #12]
	subs	w8, w9, w8
	csinc	w8, w8, wzr, gt
	str	w8, [sp]
	stp	w9, w10, [sp, #4]
	str	wzr, [x20, #8]
	str	xzr, [x20]
	str	xzr, [x20, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_vs_repaint
	mov	w0, #0
	b	LBB0_19
LBB0_18:
	mov	w0, #0
	str	wzr, [x20, #8]
	str	xzr, [x20]
	str	xzr, [x20, #16]
LBB0_19:
	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
	add	sp, sp, #96
	ret
LBB0_20:
Lloh45:
	adrp	x8, _SC_EXIT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SC_EXIT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _SC_EXIT_FORCE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _SC_EXIT_FORCE@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh51:
	adrp	x9, _SC_FSWITCH@GOTPAGE
Lloh52:
	ldr	x9, [x9, _SC_FSWITCH@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh54:
	adrp	x9, _SC_SSWITCH@GOTPAGE
Lloh55:
	ldr	x9, [x9, _SC_SSWITCH@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_F_ISSET
Lloh57:
	adrp	x8, _SCROLL_W@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SCROLL_W@GOTPAGEOFF]
Lloh59:
	adrp	x9, _SCROLL_W_EX@GOTPAGE
Lloh60:
	ldr	x9, [x9, _SCROLL_W_EX@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w22, [x8]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_vs_wait
	ldr	w8, [x21]
	cbnz	w8, LBB0_23
	b	LBB0_10
LBB0_22:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_vs_scroll
	ldr	w8, [x21]
	cbz	w8, LBB0_10
LBB0_23:
	mov	w0, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_VIP_CUR_INVALID,4,2            ; @VIP_CUR_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_M_NONE,4,2                     ; @M_NONE
	.comm	_SC_SCR_EXWROTE,4,2             ; @SC_SCR_EXWROTE
	.comm	_SC_VI,4,2                      ; @SC_VI
	.comm	_SC_EX_WAIT_YES,4,2             ; @SC_EX_WAIT_YES
	.comm	_SC_EX_WAIT_NO,4,2              ; @SC_EX_WAIT_NO
	.comm	_SC_EXIT,4,2                    ; @SC_EXIT
	.comm	_SC_EXIT_FORCE,4,2              ; @SC_EXIT_FORCE
	.comm	_SC_FSWITCH,4,2                 ; @SC_FSWITCH
	.comm	_SC_SSWITCH,4,2                 ; @SC_SSWITCH
	.comm	_SCROLL_W,4,2                   ; @SCROLL_W
	.comm	_SCROLL_W_EX,4,2                ; @SCROLL_W_EX
	.comm	_VIP_N_EX_PAINT,4,2             ; @VIP_N_EX_PAINT
	.comm	_q,4,2                          ; @q
	.comm	_SC_SCR_REDRAW,4,2              ; @SC_SCR_REDRAW
	.comm	_VIP_N_EX_REDRAW,4,2            ; @VIP_N_EX_REDRAW
	.comm	_SC_SCR_REFORMAT,4,2            ; @SC_SCR_REFORMAT
	.comm	_SA_ALTERNATE,4,2               ; @SA_ALTERNATE
	.comm	_E_REPAINT,4,2                  ; @E_REPAINT
.subsections_via_symbols
