	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vs_sm_down
_vs_sm_down:                            ## @vs_sm_down
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	movq	_HMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	cmpl	$1, 4(%rcx)
	jne	LBB0_5
LBB0_3:
	movl	%r13d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_22
## %bb.4:
	cmpq	%r12, %rcx
	je	LBB0_22
LBB0_5:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	cmpl	$129, %r13d
	sete	%r14b
	movq	%r15, %rdi
	callq	_IS_SMALL
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	cmpl	$131, %r13d
	je	LBB0_20
## %bb.7:
	cmpq	%rbx, (%r15)
	jle	LBB0_20
## %bb.8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	cmpl	$129, %r13d
	je	LBB0_10
## %bb.9:
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vs_sm_cursor
	testq	%rax, %rax
	setne	%al
LBB0_10:
	testq	%rbx, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movb	$1, %cl
	je	LBB0_23
## %bb.11:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rax
	movq	_TMAP@GOTPCREL(%rip), %r14
	movq	_HMAP@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r15), %rax
	je	LBB0_33
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rdx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	testq	%rax, %rax
	jne	LBB0_36
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_HMAP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	cmpl	$1, 4(%rax)
	je	LBB0_33
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$20, (%r14)
	movq	%r15, %rdi
	callq	_vs_sm_1down
	testq	%rax, %rax
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r15), %rax
	incq	%rax
	movq	%rax, 8(%r15)
	decq	%rbx
	movq	_HMAP@GOTPCREL(%rip), %rdx
	jne	LBB0_12
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_19:
	movb	%r14b, -41(%rbp)                ## 1-byte Spill
	movq	_HMAP@GOTPCREL(%rip), %rdx
	movq	%r12, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_41
LBB0_20:
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	16(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%r15, %rdi
	callq	_vs_sm_erase
	testq	%rax, %rax
	je	LBB0_24
LBB0_21:
	movl	$1, %eax
	jmp	LBB0_81
LBB0_22:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_v_sof
	movl	$1, %eax
	jmp	LBB0_81
LBB0_23:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	_HMAP@GOTPCREL(%rip), %rdx
	jmp	LBB0_38
LBB0_24:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.25:
	leaq	-96(%rbp), %r12
	leaq	-120(%rbp), %r13
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %r14
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	-104(%rbp), %eax
	movl	%eax, -80(%rbp)
	movups	-120(%rbp), %xmm0
	movaps	%xmm0, -96(%rbp)
	decq	%rbx
	je	LBB0_31
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_vs_sm_prev
	testq	%rax, %rax
	jne	LBB0_21
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$1, -120(%rbp)
	jne	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	testq	%rax, %rax
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$1, -116(%rbp)
	jne	LBB0_26
LBB0_31:
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-104(%rbp), %ecx
	movl	%ecx, 16(%rax)
	movups	-120(%rbp), %xmm0
	movups	%xmm0, (%rax)
	movq	_OOBLNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_P_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_vs_sm_fill
	testq	%rax, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %eax
	jne	LBB0_81
## %bb.32:
	movq	_P_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_vs_sm_position
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_81
LBB0_33:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_37
LBB0_36:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	_HMAP@GOTPCREL(%rip), %rdx
LBB0_37:
	movb	-41(%rbp), %al                  ## 1-byte Reload
LBB0_38:
	testb	%al, %al
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_40
## %bb.39:
	movq	-96(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	16(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_40:
	xorl	%eax, %eax
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_81
LBB0_41:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testq	%rbx, %rbx
	je	LBB0_55
## %bb.42:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_46
LBB0_43:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	(%rdx), %r12
LBB0_44:                                ##   in Loop: Header=BB0_46 Depth=1
	movl	$1, %r14d
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=1
	decq	%rbx
	je	LBB0_57
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_49
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	testq	%rax, %rax
	jne	LBB0_58
## %bb.48:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	_HMAP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	cmpl	$1, 4(%rax)
	je	LBB0_59
LBB0_49:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	%r15, %rdi
	callq	_vs_sm_1down
	testq	%rax, %rax
	jne	LBB0_21
## %bb.50:                              ##   in Loop: Header=BB0_46 Depth=1
	cmpl	$128, %r13d
	je	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_46 Depth=1
	cmpl	$129, %r13d
	movq	_HMAP@GOTPCREL(%rip), %rdx
	jne	LBB0_45
## %bb.52:                              ##   in Loop: Header=BB0_46 Depth=1
	xorl	%eax, %eax
	movq	_TMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	setb	%al
	leaq	(%rax,%rax,4), %rax
	leaq	(%r12,%rax,4), %r12
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovael	%ecx, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_46 Depth=1
	testl	%r14d, %r14d
	movq	_HMAP@GOTPCREL(%rip), %rdx
	je	LBB0_43
## %bb.54:                              ##   in Loop: Header=BB0_46 Depth=1
	xorl	%eax, %eax
	movq	_TMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	setb	%al
	leaq	(%rax,%rax,4), %rax
	leaq	(%r12,%rax,4), %r12
	jmp	LBB0_44
LBB0_55:
	xorl	%ebx, %ebx
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_61
LBB0_57:
	xorl	%ebx, %ebx
	jmp	LBB0_60
LBB0_58:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_HMAP@GOTPCREL(%rip), %rdx
	jmp	LBB0_61
LBB0_59:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_60:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_61:
	cmpl	$129, %r13d
	setne	%al
	testb	%al, -41(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_80
## %bb.62:
	addl	$-128, %r13d
	cmpl	$3, %r13d
	ja	LBB0_82
## %bb.63:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	movq	%r12, %r13
	jmpq	*%rcx
LBB0_64:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_80
## %bb.65:
	movl	(%r12), %ebx
	movl	%ebx, (%r14)
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	testq	%rax, %rax
	je	LBB0_77
## %bb.66:
	movl	8(%r12), %ecx
	movl	16(%r15), %esi
	jmp	LBB0_78
LBB0_67:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_71
## %bb.68:
	movq	_TMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	(%rdx), %r13
	jbe	LBB0_73
LBB0_69:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_db_exist
	testl	%eax, %eax
	jne	LBB0_73
## %bb.70:                              ##   in Loop: Header=BB0_69 Depth=1
	addq	$-20, %r13
	movq	_HMAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	ja	LBB0_69
	jmp	LBB0_73
LBB0_71:
	movq	(%rdx), %r13
	movq	%r12, %rax
	subq	%r13, %rax
	sarq	$2, %rax
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	imulq	%rax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_73
## %bb.72:
	negq	%rbx
	leaq	(%rbx,%rbx,4), %rax
	leaq	(%r12,%rax,4), %r13
LBB0_73:
	movq	%r13, %rdi
	callq	_SMAP_CACHE
	testl	%eax, %eax
	je	LBB0_76
LBB0_74:
	movl	(%r13), %eax
	movl	%eax, (%r14)
	cmpl	$255, 12(%r13)
	movl	$0, %eax
	je	LBB0_79
## %bb.75:
	movl	16(%r13), %eax
	jmp	LBB0_79
LBB0_76:
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vs_line
	testq	%rax, %rax
	movl	$1, %eax
	jne	LBB0_81
	jmp	LBB0_74
LBB0_77:
	movl	4(%r12), %ecx
	decl	%ecx
	movl	16(%r15), %esi
	imull	%esi, %ecx
LBB0_78:
	movl	20(%r15), %eax
	cltd
	idivl	%esi
	addl	%ecx, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vs_colpos
LBB0_79:
	movl	%eax, 4(%r14)
LBB0_80:
	xorl	%eax, %eax
LBB0_81:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_82:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_73, LBB0_73-LJTI0_0
.set L0_0_set_64, LBB0_64-LJTI0_0
.set L0_0_set_71, LBB0_71-LJTI0_0
.set L0_0_set_67, LBB0_67-LJTI0_0
LJTI0_0:
	.long	L0_0_set_73
	.long	L0_0_set_64
	.long	L0_0_set_71
	.long	L0_0_set_67
	.end_data_region
                                        ## -- End function
	.comm	_HMAP,8,3                       ## @HMAP
	.comm	_O_LEFTRIGHT,4,2                ## @O_LEFTRIGHT
	.comm	_OOBLNO,4,2                     ## @OOBLNO
	.comm	_P_TOP,4,2                      ## @P_TOP
	.comm	_P_BOTTOM,4,2                   ## @P_BOTTOM
	.comm	_TMAP,8,3                       ## @TMAP
	.no_dead_strip	_vs_sm_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vs_sm_down
_vs_sm_down:                            ; @vs_sm_down
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x4
	mov	x23, x3
	mov	x21, x2
	mov	x27, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _HMAP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HMAP@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _O_LEFTRIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_ISSET
	ldr	x8, [x24]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.ne	LBB0_5
LBB0_3:
	and	w9, w23, #0xfffffffe
	cmp	w9, #128
	b.eq	LBB0_19
; %bb.4:
	cmp	x8, x22
	b.eq	LBB0_19
LBB0_5:
	cmp	w23, #129
	cset	w28, eq
	mov	x0, x20
	bl	_IS_SMALL
	cbz	x0, LBB0_31
; %bb.6:
	cmp	w23, #131
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x20]
	cmp	x8, x21
	b.le	LBB0_10
; %bb.8:
	cmp	w23, #129
	b.ne	LBB0_20
; %bb.9:
	mov	w28, #1
	cbnz	x21, LBB0_21
	b	LBB0_28
LBB0_10:
	ldr	x8, [x24]
	ldr	w9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [sp, #48]
	str	w9, [sp, #64]
	mov	x0, x20
	bl	_vs_sm_erase
	cbnz	x0, LBB0_69
; %bb.11:
	cbz	x21, LBB0_17
; %bb.12:
Lloh5:
	adrp	x19, _O_LEFTRIGHT@GOTPAGE
Lloh6:
	ldr	x19, [x19, _O_LEFTRIGHT@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	q0, [sp, #24]
	str	q0, [sp, #48]
	ldr	w8, [sp, #40]
	str	w8, [sp, #64]
	sub	x21, x21, #1
	cbz	x21, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #48
	add	x2, sp, #24
	mov	x0, x20
	bl	_vs_sm_prev
	cbnz	x0, LBB0_69
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x19]
	mov	x0, x20
	bl	_O_ISSET
	ldr	w8, [sp, #28]
	cmp	x0, #0
	ccmp	w8, #1, #4, eq
	b.ne	LBB0_13
LBB0_17:
	ldr	x8, [x24]
	ldur	q0, [sp, #24]
	ldr	w9, [sp, #40]
	str	w9, [x8, #16]
	str	q0, [x8]
Lloh7:
	adrp	x8, _OOBLNO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OOBLNO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _P_TOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P_TOP@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_vs_sm_fill
	cbnz	x0, LBB0_69
; %bb.18:
Lloh13:
	adrp	x8, _P_BOTTOM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _P_BOTTOM@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x27
	mov	w2, #0
	bl	_vs_sm_position
	b	LBB0_73
LBB0_19:
	mov	x0, x20
	mov	x1, #0
	bl	_v_sof
	mov	w0, #1
	b	LBB0_73
LBB0_20:
	add	x1, sp, #48
	mov	x0, x20
	bl	_vs_sm_cursor
	cmp	x0, #0
	cset	w28, ne
	cbz	x21, LBB0_28
LBB0_21:
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x19, _O_LEFTRIGHT@GOTPAGE
Lloh17:
	ldr	x19, [x19, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh18:
	adrp	x25, _TMAP@GOTPAGE
Lloh19:
	ldr	x25, [x25, _TMAP@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_56
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w1, [x19]
	mov	x0, x20
	bl	_O_ISSET
	cbnz	x0, LBB0_56
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.eq	LBB0_56
LBB0_26:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x25]
	add	x8, x8, #20
	str	x8, [x25]
	mov	x0, x20
	bl	_vs_sm_1down
	cbnz	x0, LBB0_69
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	subs	x21, x21, #1
	b.ne	LBB0_22
LBB0_28:
	mov	w8, #1
	tbnz	w28, #0, LBB0_30
LBB0_29:
	ldr	x9, [sp, #48]
	ldr	w10, [x9]
	str	w10, [x27]
	ldr	w9, [x9, #16]
	str	w9, [x27, #4]
LBB0_30:
	tbnz	w8, #0, LBB0_50
LBB0_31:
	cbz	x21, LBB0_45
; %bb.32:
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
	mov	w25, #0
	mov	w26, #0
Lloh20:
	adrp	x27, _O_LEFTRIGHT@GOTPAGE
Lloh21:
	ldr	x27, [x27, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh22:
	adrp	x28, _TMAP@GOTPAGE
Lloh23:
	ldr	x28, [x28, _TMAP@GOTPAGEOFF]
	mov	w19, #20
	b	LBB0_36
LBB0_33:                                ;   in Loop: Header=BB0_36 Depth=1
	ldr	x22, [x24]
LBB0_34:                                ;   in Loop: Header=BB0_36 Depth=1
	mov	w25, #1
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	subs	x21, x21, #1
	b.eq	LBB0_47
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_O_ISSET
	cbnz	x0, LBB0_46
; %bb.38:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.eq	LBB0_46
LBB0_39:                                ;   in Loop: Header=BB0_36 Depth=1
	mov	x0, x20
	bl	_vs_sm_1down
	cbnz	x0, LBB0_69
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=1
	cmp	w23, #128
	b.eq	LBB0_43
; %bb.41:                               ;   in Loop: Header=BB0_36 Depth=1
	cmp	w23, #129
	b.ne	LBB0_35
; %bb.42:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x8, [x28]
	cmp	x22, x8
	cset	w8, lo
	umaddl	x22, w8, w19, x22
	csinc	w26, w26, wzr, lo
	b	LBB0_35
LBB0_43:                                ;   in Loop: Header=BB0_36 Depth=1
	cbz	w25, LBB0_33
; %bb.44:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x8, [x28]
	cmp	x22, x8
	cset	w8, lo
	umaddl	x22, w8, w19, x22
	b	LBB0_34
LBB0_45:
	mov	w26, #0
	mov	w8, #1
	b	LBB0_49
LBB0_46:
	mov	w8, #0
	b	LBB0_48
LBB0_47:
	mov	w8, #1
LBB0_48:
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
LBB0_49:
	cmp	w23, #129
	cset	w9, ne
	and	w9, w9, w28
	tbz	w9, #0, LBB0_51
LBB0_50:
	mov	w0, #0
	b	LBB0_73
LBB0_51:
	sub	w9, w23, #128
	cmp	w9, #3
	b.hi	LBB0_74
; %bb.52:
Lloh24:
	adrp	x10, lJTI0_0@PAGE
Lloh25:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_53
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	mov	x23, x22
	br	x11
LBB0_53:
	cbz	w26, LBB0_50
; %bb.54:
	ldr	w21, [x22]
	str	w21, [x27]
Lloh26:
	adrp	x8, _O_LEFTRIGHT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_ISSET
	cbz	x0, LBB0_70
; %bb.55:
	ldr	w8, [x22, #8]
	ldr	w9, [x20, #16]
	b	LBB0_71
LBB0_56:
	mov	w8, #0
	tbnz	w28, #0, LBB0_30
	b	LBB0_29
LBB0_57:
	cbz	w8, LBB0_62
; %bb.58:
Lloh29:
	adrp	x8, _TMAP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TMAP@GOTPAGEOFF]
Lloh31:
	ldr	x23, [x8]
LBB0_59:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x23, x8
	b.ls	LBB0_64
; %bb.60:                               ;   in Loop: Header=BB0_59 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_db_exist
	cbnz	w0, LBB0_64
; %bb.61:                               ;   in Loop: Header=BB0_59 Depth=1
	sub	x23, x23, #20
	b	LBB0_59
LBB0_62:
	ldr	x23, [x24]
	sub	x8, x22, x23
	asr	x8, x8, #2
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	mul	x8, x8, x9
	cmp	x21, x8
	b.ge	LBB0_64
; %bb.63:
	mov	w8, #20
	mneg	x8, x21, x8
	add	x23, x22, x8
LBB0_64:
	mov	x0, x23
	bl	_SMAP_CACHE
	cbz	w0, LBB0_68
LBB0_65:
	ldr	w8, [x23]
	str	w8, [x27]
	ldr	w8, [x23, #12]
	cmp	w8, #255
	b.ne	LBB0_67
; %bb.66:
	mov	w8, #0
	b	LBB0_72
LBB0_67:
	ldr	w8, [x23, #16]
	b	LBB0_72
LBB0_68:
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	bl	_vs_line
	cbz	x0, LBB0_65
LBB0_69:
	mov	w0, #1
	b	LBB0_73
LBB0_70:
	ldr	w8, [x22, #4]
	sub	w8, w8, #1
	ldr	w9, [x20, #16]
	mul	w8, w8, w9
LBB0_71:
	ldr	w10, [x20, #20]
	sdiv	w11, w10, w9
	msub	w9, w11, w9, w10
	add	w2, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_vs_colpos
	mov	x8, x0
LBB0_72:
	mov	w0, #0
	str	w8, [x27, #4]
LBB0_73:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_74:
	bl	_abort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_64-LBB0_53)>>2
	.byte	(LBB0_53-LBB0_53)>>2
	.byte	(LBB0_62-LBB0_53)>>2
	.byte	(LBB0_57-LBB0_53)>>2
                                        ; -- End function
	.comm	_HMAP,8,3                       ; @HMAP
	.comm	_O_LEFTRIGHT,4,2                ; @O_LEFTRIGHT
	.comm	_OOBLNO,4,2                     ; @OOBLNO
	.comm	_P_TOP,4,2                      ; @P_TOP
	.comm	_P_BOTTOM,4,2                   ; @P_BOTTOM
	.comm	_TMAP,8,3                       ; @TMAP
	.no_dead_strip	_vs_sm_down
.subsections_via_symbols
