	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vs_sm_reset
_vs_sm_reset:                           ## @vs_sm_reset
	.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
	movq	%rdi, %rbx
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rax
	addq	$16, %r12
	cmpq	%rsi, (%r14,%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_O_ISSET
	leaq	(%r14,%r12), %r15
	addq	$-16, %r15
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_HANDLE_WEIRDNESS
	movq	%r15, %rbx
	jmp	LBB0_10
LBB0_4:
	movq	_TMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	cmpq	%rax, %r15
	jbe	LBB0_6
## %bb.5:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_6:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	addq	$16, %rbx
	cmpq	%rax, %rbx
	jbe	LBB0_7
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_vs_screens
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_HANDLE_WEIRDNESS
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, %rdx
	subq	%rax, %rdx
	jne	LBB0_16
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_SMAP_FLUSH
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vs_line
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	$16, %r15
	cmpq	%rbx, %r15
	jb	LBB0_11
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_16:
	jae	LBB0_25
## %bb.17:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	subq	%r13, %rbx
	movq	_TMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rax
	subq	%r14, %rax
	subq	%r12, %rax
	addq	$16, %rax
	sarq	$4, %rax
	incq	%rax
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
	cmpq	$2, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jb	LBB0_20
## %bb.18:
	movq	(%r13), %rax
	movq	%r14, %rcx
	movq	_HMAP@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	leaq	(%rcx,%r12), %rsi
	addq	$-16, %rsi
	shrq	$4, %rsi
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_vs_insertln
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_15
## %bb.19:
	movq	%rbx, %rax
	shlq	$4, %rax
	addq	%r14, %rax
	leaq	(%r12,%rax), %rdi
	addq	$-16, %rdi
	movq	_TMAP@GOTPCREL(%rip), %rax
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movl	(%rax), %edx
	shll	$4, %ecx
	addl	%ecx, %r14d
	subl	%r14d, %edx
	subl	%r12d, %edx
	addl	$32, %edx
	andl	$-16, %edx
	movq	%r15, %rsi
	callq	_memmove
	movq	(%rbx), %rcx
LBB0_20:
	xorl	%eax, %eax
	cmpq	%rcx, %r15
	ja	LBB0_15
## %bb.21:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	%rbx, 8(%r15)
	movq	%r15, %rdi
	callq	_SMAP_FLUSH
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vs_line
	testq	%rax, %rax
	jne	LBB0_14
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	xorl	%eax, %eax
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_15
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%rbx
	addq	$16, %r15
	movq	_TMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jbe	LBB0_22
	jmp	LBB0_15
LBB0_25:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	%r14, %rcx
	movq	_HMAP@GOTPCREL(%rip), %rsi
	subq	(%rsi), %rcx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r12), %rsi
	addq	$-16, %rsi
	shrq	$4, %rsi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_vs_deleteln
	testq	%rax, %rax
	je	LBB0_27
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	%r13, %rax
	shlq	$4, %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rcx
	shlq	$4, %rcx
	subq	%rcx, %rax
	addq	%r14, %rax
	leaq	(%r12,%rax), %rsi
	addq	$-16, %rsi
	movl	%edi, %edx
	shll	$4, %edx
	movq	_TMAP@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	shll	$4, %r13d
	addl	%r13d, %r14d
	subl	%r14d, %edx
	subl	%r12d, %edx
	movq	%rdi, %r12
	addl	$32, %edx
	andl	$-16, %edx
	movq	%r15, %rdi
	callq	_memmove
	testq	%r12, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_31
## %bb.28:
	negq	%r12
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	%rbx, 8(%r15)
	movq	%r15, %rdi
	callq	_SMAP_FLUSH
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vs_line
	testq	%rax, %rax
	jne	LBB0_14
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	leaq	(%r12,%rbx), %rax
	incq	%rax
	incq	%rbx
	addq	$16, %r15
	cmpq	$1, %rax
	jne	LBB0_29
LBB0_31:
	movq	_TMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rbx
	jae	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	leaq	16(%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vs_sm_next
	testq	%rax, %rax
	jne	LBB0_14
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	addq	$16, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vs_line
	testq	%rax, %rax
	jne	LBB0_14
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_TMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	jne	LBB0_32
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_HMAP,8,3                       ## @HMAP
	.comm	_O_LEFTRIGHT,4,2                ## @O_LEFTRIGHT
	.comm	_TMAP,8,3                       ## @TMAP
	.no_dead_strip	_vs_sm_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vs_sm_reset
_vs_sm_reset:                           ; @vs_sm_reset
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _HMAP@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HMAP@GOTPAGEOFF]
	ldr	x26, [x27]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x26
	ldr	x8, [x26], #16
	cmp	x8, x20
	b.ne	LBB0_1
; %bb.2:
Lloh2:
	adrp	x8, _O_LEFTRIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_ISSET
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_HANDLE_WEIRDNESS
	mov	x28, x21
	b	LBB0_10
LBB0_4:
Lloh5:
	adrp	x25, _TMAP@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TMAP@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x21, x8
	b.ls	LBB0_6
; %bb.5:
	mov	x24, #0
	mov	x28, x21
	b	LBB0_9
LBB0_6:
	mov	x24, #0
	mov	x28, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x28]
	cmp	x9, x20
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	add	x28, x28, #16
	cmp	x28, x8
	b.ls	LBB0_7
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_vs_screens
	mov	x22, x0
	mov	x0, x24
	bl	_HANDLE_WEIRDNESS
	subs	x23, x24, x22
	b.ne	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_SMAP_FLUSH
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_vs_line
	cbnz	x0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #16
	cmp	x21, x28
	b.lo	LBB0_10
LBB0_12:
	mov	w0, #0
	b	LBB0_24
LBB0_13:
	b.hs	LBB0_22
; %bb.14:
	ldr	x8, [x25]
	sub	x9, x8, x21
	asr	x9, x9, #4
	add	x10, x9, #1
	sub	x11, x22, x24
	cmp	x11, x10
	csinc	x23, x11, x9, lo
	cmp	x10, #2
	b.lo	LBB0_17
; %bb.15:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x27]
	sub	x9, x21, x9
	lsr	x1, x9, #4
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	blr	x8
	mov	x0, x19
	mov	x1, x23
	bl	_vs_insertln
	cbnz	x0, LBB0_23
; %bb.16:
	add	x0, x21, x23, lsl #4
	ldr	w8, [x25]
	add	w9, w21, w23, lsl #4
	sub	w8, w8, w9
	add	w8, w8, #16
	and	w2, w8, #0xfffffff0
	mov	x1, x21
	bl	_memmove
	ldr	x8, [x25]
LBB0_17:
	cmp	x21, x8
	b.hi	LBB0_12
; %bb.18:
	mov	x23, #-16
	mov	w24, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x21, x26, x23
	stp	x20, x24, [x21]
	mov	x0, x21
	bl	_SMAP_FLUSH
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_vs_line
	cbnz	x0, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	x22, x24
	b.eq	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x24, x24, #1
	ldr	x8, [x25]
	add	x9, x21, #16
	add	x23, x23, #16
	cmp	x9, x8
	b.ls	LBB0_19
	b	LBB0_24
LBB0_22:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x27]
	sub	x9, x21, x9
	lsr	x1, x9, #4
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	blr	x8
	mov	x0, x19
	mov	x1, x23
	bl	_vs_deleteln
	cbz	x0, LBB0_25
LBB0_23:
	mov	w0, #1
LBB0_24:
	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_25:
	add	x1, x21, x23, lsl #4
	ldr	w8, [x25]
	add	w9, w21, w23, lsl #4
	sub	w8, w8, w9
	add	w8, w8, #16
	and	w2, w8, #0xfffffff0
	mov	x0, x21
	bl	_memmove
	cbz	x22, LBB0_29
; %bb.26:
	mov	x24, #0
	mov	x27, #-16
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	add	x24, x24, #1
	add	x21, x26, x27
	stp	x20, x24, [x21]
	mov	x0, x21
	bl	_SMAP_FLUSH
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_vs_line
	cbnz	x0, LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x27, x27, #16
	cmp	x22, x24
	b.ne	LBB0_27
LBB0_29:
	ldr	x8, [x25]
	sub	x20, x8, x23, lsl #4
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	cmp	x20, x8
	b.hs	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x2, x20, #16
	mov	x0, x19
	mov	x1, x20
	bl	_vs_sm_next
	cbnz	x0, LBB0_23
LBB0_32:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x20, x20, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	bl	_vs_line
	cbnz	x0, LBB0_23
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x25]
	cmp	x20, x8
	b.ne	LBB0_30
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HMAP,8,3                       ; @HMAP
	.comm	_O_LEFTRIGHT,4,2                ; @O_LEFTRIGHT
	.comm	_TMAP,8,3                       ; @TMAP
	.no_dead_strip	_vs_sm_reset
.subsections_via_symbols
