	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vs_sm_up
_vs_sm_up:                              ## @vs_sm_up
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_TMAP@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	-96(%rbp), %rdx
	callq	_vs_sm_next
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movl	$1, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rsi
	movq	(%r15), %rax
	cmpq	(%rax), %rsi
	movq	%r15, %r13
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	%r14, %rbx
	jle	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_db_exist
	testl	%eax, %eax
	je	LBB0_31
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_SMALL
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	movq	%r12, %rsi
	cmpl	$129, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_22
## %bb.7:
	cmpq	%rbx, (%rdi)
	jle	LBB0_22
## %bb.8:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movb	$1, %al
	cmpl	$130, %esi
	movl	$1, %r14d
	je	LBB0_10
## %bb.9:
	leaq	-128(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vs_sm_cursor
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	testq	%rax, %rax
	setne	%al
LBB0_10:
	movzbl	%al, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testq	%rbx, %rbx
	je	LBB0_38
## %bb.11:
	movq	8(%rdi), %rax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	incq	%rax
	movq	%rax, 8(%rdi)
	decq	%rbx
	movq	%r12, %rsi
	je	LBB0_38
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdi), %rax
	je	LBB0_39
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r13), %rsi
	leaq	-96(%rbp), %rdx
	callq	_vs_sm_next
	testq	%rax, %rax
	jne	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r13), %rax
	movq	-96(%rbp), %rsi
	cmpq	%rsi, (%rax)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_db_exist
	testl	%eax, %eax
	je	LBB0_41
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r13), %rax
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	24(%rax), %rsi
	movq	%rsi, (%r13)
	movq	-80(%rbp), %rcx
	movq	%rcx, 40(%rax)
	movups	-96(%rbp), %xmm0
	movups	%xmm0, 24(%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vs_line
	testq	%rax, %rax
	jne	LBB0_2
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$24, -128(%rbp)
	jmp	LBB0_12
LBB0_21:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_22:
	movq	(%r13), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	16(%rax), %rax
	movq	%rax, -80(%rbp)
	callq	_vs_sm_erase
	testq	%rax, %rax
	movl	$1, %r14d
	jne	LBB0_2
## %bb.23:
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.24:
	leaq	-96(%rbp), %r14
	leaq	-128(%rbp), %r15
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-112(%rbp), %rax
	movq	%rax, -80(%rbp)
	movups	-128(%rbp), %xmm0
	movaps	%xmm0, -96(%rbp)
	decq	%rbx
	je	LBB0_29
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_vs_sm_next
	testq	%rax, %rax
	jne	LBB0_1
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-128(%rbp), %rsi
	cmpq	-96(%rbp), %rsi
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_db_exist
	testl	%eax, %eax
	jne	LBB0_25
LBB0_29:
	movq	(%r13), %rax
	movq	-112(%rbp), %rcx
	movq	%rcx, 16(%rax)
	movups	-128(%rbp), %xmm0
	movups	%xmm0, (%rax)
	movq	_OOBLNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_P_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_vs_sm_fill
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.30:
	movq	_P_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_vs_sm_position
	movl	%eax, %r14d
	jmp	LBB0_2
LBB0_31:
	movq	%r12, %rax
                                        ## kill: def $eax killed $eax killed $rax
	andl	$-3, %eax
	cmpl	$128, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_37
## %bb.32:
	cmpq	%r15, (%r13)
	je	LBB0_37
## %bb.33:
	leaq	-96(%rbp), %rdx
	movq	%r15, %rsi
	callq	_vs_sm_next
	testq	%rax, %rax
	movl	$1, %r14d
	jne	LBB0_2
## %bb.34:
	movq	-96(%rbp), %rsi
	cmpq	(%r15), %rsi
	jle	LBB0_5
## %bb.35:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_db_exist
	testl	%eax, %eax
	jne	LBB0_5
## %bb.36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_37:
	xorl	%esi, %esi
	callq	_v_eof
	jmp	LBB0_1
LBB0_38:
	xorl	%ebx, %ebx
	jmp	LBB0_42
LBB0_39:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_42
LBB0_41:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_42:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_44
## %bb.43:
	movq	-128(%rbp), %rax
	movq	(%rax), %rcx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rcx, (%rdx)
	movl	16(%rax), %eax
	movl	%eax, 8(%rdx)
LBB0_44:
	xorl	%r14d, %r14d
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_2
LBB0_45:
	movb	$1, %al
	testq	%rbx, %rbx
	je	LBB0_59
## %bb.46:
	movl	$1, %r14d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_51 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_58
## %bb.48:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	_HMAP@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	movl	$0, %eax
	sbbq	%rax, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %r15
LBB0_49:                                ##   in Loop: Header=BB0_51 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_50:                                ##   in Loop: Header=BB0_51 Depth=1
	decq	%rbx
	je	LBB0_60
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	leaq	-96(%rbp), %rdx
	callq	_vs_sm_next
	testq	%rax, %rax
	jne	LBB0_2
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	(%r13), %rax
	movq	-96(%rbp), %rsi
	cmpq	%rsi, (%rax)
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_db_exist
	testl	%eax, %eax
	je	LBB0_61
LBB0_54:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vs_sm_1up
	testq	%rax, %rax
	jne	LBB0_2
## %bb.55:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	%r12, %rsi
	cmpl	$128, %esi
	je	LBB0_47
## %bb.56:                              ##   in Loop: Header=BB0_51 Depth=1
	cmpl	$130, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_50
## %bb.57:                              ##   in Loop: Header=BB0_51 Depth=1
	xorl	%eax, %eax
	movq	_HMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	seta	%al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmovbel	%r14d, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	negq	%rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %r15
	jmp	LBB0_50
LBB0_58:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	(%r13), %r15
	jmp	LBB0_49
LBB0_59:
	xorl	%ebx, %ebx
	jmp	LBB0_62
LBB0_60:
	xorl	%ebx, %ebx
	movb	$1, %al
	jmp	LBB0_62
LBB0_61:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_62:
	xorl	%r14d, %r14d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_2
## %bb.63:
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_85
## %bb.64:
	movl	%eax, %edx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_65:
	testb	%dl, %dl
	je	LBB0_67
## %bb.66:
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_78
LBB0_67:
	testq	%rbx, %rbx
	je	LBB0_78
## %bb.68:
	cmpq	(%r13), %r15
	je	LBB0_78
## %bb.69:
	addq	$24, %r15
	decq	%rbx
	movq	%r15, %r14
LBB0_70:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	callq	_db_exist
	testl	%eax, %eax
	je	LBB0_77
## %bb.71:                              ##   in Loop: Header=BB0_70 Depth=1
	leaq	24(%r14), %r15
	subq	$1, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jb	LBB0_73
## %bb.72:                              ##   in Loop: Header=BB0_70 Depth=1
	cmpq	(%r13), %r14
	movq	%r15, %r14
	jne	LBB0_70
LBB0_73:
	addq	$-24, %r15
	jmp	LBB0_78
LBB0_74:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.75:
	movq	(%r15), %r12
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r12, (%r14)
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rbx
	callq	_O_ISSET
	testl	%eax, %eax
	je	LBB0_83
## %bb.76:
	movl	8(%r15), %ecx
	movl	16(%rbx), %esi
	jmp	LBB0_84
LBB0_77:
	addq	$-24, %r14
	movq	%r14, %r15
LBB0_78:
	movq	%r15, %rdi
	callq	_SMAP_CACHE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_82
LBB0_79:
	movq	(%r15), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	cmpl	$255, 12(%r15)
	movl	$0, %eax
	je	LBB0_81
## %bb.80:
	movl	16(%r15), %eax
LBB0_81:
	movl	%eax, 8(%rcx)
	jmp	LBB0_2
LBB0_82:
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vs_line
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_79
LBB0_83:
	movl	20(%r15), %ecx
	decl	%ecx
	movl	16(%rbx), %esi
	imull	%esi, %ecx
LBB0_84:
	movl	20(%rbx), %eax
	cltd
	idivl	%esi
	addl	%ecx, %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_vs_colpos
	movl	%eax, 8(%r14)
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_85:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_78, LBB0_78-LJTI0_0
.set L0_0_set_65, LBB0_65-LJTI0_0
.set L0_0_set_74, LBB0_74-LJTI0_0
.set L0_0_set_67, LBB0_67-LJTI0_0
LJTI0_0:
	.long	L0_0_set_78
	.long	L0_0_set_65
	.long	L0_0_set_74
	.long	L0_0_set_67
	.end_data_region
                                        ## -- End function
	.comm	_TMAP,8,3                       ## @TMAP
	.comm	_OOBLNO,4,2                     ## @OOBLNO
	.comm	_P_BOTTOM,4,2                   ## @P_BOTTOM
	.comm	_P_TOP,4,2                      ## @P_TOP
	.comm	_HMAP,8,3                       ## @HMAP
	.comm	_O_LEFTRIGHT,4,2                ## @O_LEFTRIGHT
	.no_dead_strip	_vs_sm_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vs_sm_up
_vs_sm_up:                              ; @vs_sm_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x27, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _TMAP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TMAP@GOTPAGEOFF]
	ldr	x1, [x24]
	add	x2, sp, #32
	bl	_vs_sm_next
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_3:
	ldr	x1, [sp, #32]
	ldr	x8, [x24]
	ldr	x8, [x8]
	cmp	x1, x8
	b.le	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_db_exist
	cbz	w0, LBB0_19
LBB0_5:
	mov	x0, x20
	bl	_IS_SMALL
	cbz	x0, LBB0_10
; %bb.6:
	cmp	w23, #129
	b.eq	LBB0_11
; %bb.7:
	ldr	x8, [x20]
	cmp	x8, x22
	b.le	LBB0_11
; %bb.8:
	cmp	w23, #130
	b.ne	LBB0_25
; %bb.9:
	mov	w25, #1
	cbnz	x22, LBB0_26
	b	LBB0_36
LBB0_10:
	mov	w25, #0
	b	LBB0_39
LBB0_11:
	ldr	x8, [x24]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [sp, #32]
	str	x9, [sp, #48]
	mov	x0, x20
	bl	_vs_sm_erase
	cbnz	x0, LBB0_1
; %bb.12:
	cbnz	x22, LBB0_14
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	q0, [sp, #8]
	str	q0, [sp, #32]
	ldr	x8, [sp, #24]
	str	x8, [sp, #48]
	sub	x22, x22, #1
	cbz	x22, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #32
	add	x2, sp, #8
	mov	x0, x20
	bl	_vs_sm_next
	cbnz	x0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [sp, #8]
	ldr	x8, [sp, #32]
	cmp	x1, x8
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	bl	_db_exist
	cbnz	w0, LBB0_13
LBB0_17:
	ldr	x8, [x24]
	ldur	q0, [sp, #8]
	ldr	x9, [sp, #24]
	str	x9, [x8, #16]
	str	q0, [x8]
Lloh2:
	adrp	x8, _OOBLNO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OOBLNO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _P_BOTTOM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P_BOTTOM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_vs_sm_fill
	cbnz	x0, LBB0_1
; %bb.18:
Lloh8:
	adrp	x8, _P_TOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P_TOP@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x27
	mov	w2, #0
	bl	_vs_sm_position
	b	LBB0_2
LBB0_19:
	and	w8, w23, #0xfffffffd
	cmp	w8, #128
	b.eq	LBB0_24
; %bb.20:
	ldr	x8, [x24]
	cmp	x8, x21
	b.eq	LBB0_24
; %bb.21:
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x21
	bl	_vs_sm_next
	cbnz	x0, LBB0_1
; %bb.22:
	ldr	x1, [sp, #32]
	ldr	x8, [x21]
	cmp	x1, x8
	b.le	LBB0_5
; %bb.23:
	mov	x0, x20
	bl	_db_exist
	cbnz	w0, LBB0_5
LBB0_24:
	mov	x0, x20
	mov	x1, #0
	bl	_v_eof
	b	LBB0_1
LBB0_25:
	add	x1, sp, #8
	mov	x0, x20
	bl	_vs_sm_cursor
	cmp	x0, #0
	cset	w25, ne
	cbz	x22, LBB0_36
LBB0_26:
	ldr	x8, [x20, #8]
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	subs	x22, x22, #1
	b.eq	LBB0_36
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_55
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x1, [x24]
	add	x2, sp, #32
	mov	x0, x20
	bl	_vs_sm_next
	cbnz	x0, LBB0_1
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x8]
	ldr	x1, [sp, #32]
	cmp	x9, x1
	b.eq	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x20
	bl	_db_exist
	cbz	w0, LBB0_55
; %bb.32:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x24]
LBB0_33:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x1, x8, #24
	str	x1, [x24]
	ldr	q0, [sp, #32]
	stur	q0, [x8, #24]
	ldr	x9, [sp, #48]
	str	x9, [x8, #40]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_vs_line
	cbnz	x0, LBB0_1
; %bb.34:                               ;   in Loop: Header=BB0_28 Depth=1
	tbnz	w25, #0, LBB0_27
; %bb.35:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [sp, #8]
	add	x8, x8, #24
	str	x8, [sp, #8]
	b	LBB0_27
LBB0_36:
	mov	w8, #1
	tbnz	w25, #0, LBB0_38
LBB0_37:
	ldr	x9, [sp, #8]
	ldr	x10, [x9]
	str	x10, [x27]
	ldr	w9, [x9, #16]
	str	w9, [x27, #8]
LBB0_38:
	tbnz	w8, #0, LBB0_71
LBB0_39:
	cbz	x22, LBB0_53
; %bb.40:
	str	x27, [sp]                       ; 8-byte Folded Spill
	mov	w19, #0
	mov	w26, #0
Lloh11:
	adrp	x27, _HMAP@GOTPAGE
Lloh12:
	ldr	x27, [x27, _HMAP@GOTPAGEOFF]
	mov	x28, #-24
	b	LBB0_45
LBB0_41:                                ;   in Loop: Header=BB0_45 Depth=1
	cbz	w19, LBB0_52
; %bb.42:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	x8, [x27]
	cmp	x21, x8
	csel	x8, x28, xzr, hi
	add	x21, x21, x8
LBB0_43:                                ;   in Loop: Header=BB0_45 Depth=1
	mov	w19, #1
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	subs	x22, x22, #1
	b.eq	LBB0_54
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	add	x2, sp, #32
	mov	x0, x20
	bl	_vs_sm_next
	cbnz	x0, LBB0_1
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	x1, [sp, #32]
	cmp	x8, x1
	b.eq	LBB0_48
; %bb.47:                               ;   in Loop: Header=BB0_45 Depth=1
	mov	x0, x20
	bl	_db_exist
	cbz	w0, LBB0_56
LBB0_48:                                ;   in Loop: Header=BB0_45 Depth=1
	mov	x0, x20
	bl	_vs_sm_1up
	cbnz	x0, LBB0_1
; %bb.49:                               ;   in Loop: Header=BB0_45 Depth=1
	cmp	w23, #128
	b.eq	LBB0_41
; %bb.50:                               ;   in Loop: Header=BB0_45 Depth=1
	cmp	w23, #130
	b.ne	LBB0_44
; %bb.51:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	x8, [x27]
	cmp	x21, x8
	csel	x8, x28, xzr, hi
	add	x21, x21, x8
	csinc	w26, w26, wzr, hi
	b	LBB0_44
LBB0_52:                                ;   in Loop: Header=BB0_45 Depth=1
	ldr	x21, [x24]
	b	LBB0_43
LBB0_53:
	mov	w26, #0
	mov	w8, #1
	cbnz	w25, LBB0_71
	b	LBB0_57
LBB0_54:
	mov	w8, #1
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	cbnz	w25, LBB0_71
	b	LBB0_57
LBB0_55:
	mov	w8, #0
	tbnz	w25, #0, LBB0_38
	b	LBB0_37
LBB0_56:
	mov	w8, #0
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	cbnz	w25, LBB0_71
LBB0_57:
	sub	w9, w23, #128
	cmp	w9, #3
	b.hi	LBB0_81
; %bb.58:
Lloh13:
	adrp	x10, lJTI0_0@PAGE
Lloh14:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_59
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_59:
	cbz	w8, LBB0_61
; %bb.60:
Lloh15:
	adrp	x8, _HMAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HMAP@GOTPAGEOFF]
Lloh17:
	ldr	x21, [x8]
	b	LBB0_73
LBB0_61:
	cbz	x22, LBB0_73
; %bb.62:
	ldr	x8, [x24]
	cmp	x21, x8
	b.eq	LBB0_73
; %bb.63:
	add	x19, x21, #24
	sub	x21, x22, #1
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19]
	mov	x0, x20
	bl	_db_exist
	cbz	w0, LBB0_72
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=1
	add	x8, x19, #24
	cbz	x21, LBB0_67
; %bb.66:                               ;   in Loop: Header=BB0_64 Depth=1
	ldr	x9, [x24]
	sub	x21, x21, #1
	cmp	x19, x9
	mov	x19, x8
	b.ne	LBB0_64
LBB0_67:
	sub	x21, x8, #24
	b	LBB0_73
LBB0_68:
	cbz	w26, LBB0_71
; %bb.69:
	ldr	x22, [x21]
	str	x22, [x27]
Lloh18:
	adrp	x8, _O_LEFTRIGHT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_ISSET
	cbz	w0, LBB0_78
; %bb.70:
	ldr	w8, [x21, #8]
	ldr	w9, [x20, #16]
	b	LBB0_79
LBB0_71:
	mov	w0, #0
	b	LBB0_2
LBB0_72:
	sub	x21, x19, #24
LBB0_73:
	mov	x0, x21
	bl	_SMAP_CACHE
	cbz	w0, LBB0_77
LBB0_74:
	ldr	x8, [x21]
	str	x8, [x27]
	ldr	w8, [x21, #12]
	cmp	w8, #255
	b.ne	LBB0_76
; %bb.75:
	mov	w8, #0
	b	LBB0_80
LBB0_76:
	ldr	w8, [x21, #16]
	b	LBB0_80
LBB0_77:
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_vs_line
	cbnz	x0, LBB0_1
	b	LBB0_74
LBB0_78:
	ldr	w8, [x21, #20]
	sub	w8, w8, #1
	ldr	w9, [x20, #16]
	mul	w8, w8, w9
LBB0_79:
	ldr	w10, [x20, #20]
	sdiv	w11, w10, w9
	msub	w9, w11, w9, w10
	add	w2, w9, w8
	mov	x0, x20
	mov	x1, x22
	bl	_vs_colpos
	mov	x8, x0
LBB0_80:
	mov	w0, #0
	str	w8, [x27, #8]
	b	LBB0_2
LBB0_81:
	bl	_abort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_73-LBB0_59)>>2
	.byte	(LBB0_59-LBB0_59)>>2
	.byte	(LBB0_68-LBB0_59)>>2
	.byte	(LBB0_61-LBB0_59)>>2
                                        ; -- End function
	.comm	_TMAP,8,3                       ; @TMAP
	.comm	_OOBLNO,4,2                     ; @OOBLNO
	.comm	_P_BOTTOM,4,2                   ; @P_BOTTOM
	.comm	_P_TOP,4,2                      ; @P_TOP
	.comm	_HMAP,8,3                       ; @HMAP
	.comm	_O_LEFTRIGHT,4,2                ; @O_LEFTRIGHT
	.no_dead_strip	_vs_sm_up
.subsections_via_symbols
