	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_sm_fill                     ## -- Begin function vs_sm_fill
	.p2align	4, 0x90
_vs_sm_fill:                            ## @vs_sm_fill
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_SMAP_FLUSH
	addq	$16, %rbx
	decq	%r13
	jne	LBB0_2
LBB0_3:
	movq	_SC_SCR_REDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_F_SET
	addl	$-128, %r15d
	cmpl	$3, %r15d
	ja	LBB0_40
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_OOBLNO@GOTPCREL(%rip), %rax
	movq	%r14, %rcx
	cmpq	%r14, (%rax)
	jne	LBB0_27
## %bb.6:
	movq	_HMAP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movslq	(%rax), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_vs_screens
	movq	(%rbx), %rsi
	movslq	4(%rsi), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_28
	jmp	LBB0_29
LBB0_7:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	%r12, %rdi
	callq	_HALFTEXT
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_vs_sm_nlines
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_HALFTEXT
	movl	$1, %ecx
	cmpl	%eax, %ebx
	jle	LBB0_27
## %bb.8:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_db_last
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_38
## %bb.9:
	movq	$0, -48(%rbp)
	movslq	-56(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_vs_screens
	movl	%eax, -52(%rbp)
	movq	%r12, %rdi
	callq	_HALFTEXT
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_vs_sm_nlines
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_HALFTEXT
	cmpl	%eax, %ebx
	jle	LBB0_39
LBB0_10:
	movq	_HMAP@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%r12), %rdx
	movq	%rdx, %rcx
	andq	$-2, %rcx
	movl	%r14d, (%rax,%rcx,8)
	movq	$0, 8(%rax,%rcx,8)
	movl	$1, 4(%rax,%rcx,8)
	cmpq	$2, %rdx
	jb	LBB0_14
## %bb.11:
	leaq	(%rax,%rcx,8), %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	addq	$-16, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_vs_sm_prev
	testl	%eax, %eax
	jne	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	ja	LBB0_12
LBB0_14:
	movq	(%r12), %rcx
	andq	$-2, %rcx
	leaq	(%rax,%rcx,8), %rsi
	movq	_TMAP@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r14), %rsi
	jae	LBB0_37
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	16(%rsi), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_vs_sm_next
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_15
	jmp	LBB0_32
LBB0_17:
	movq	_OOBLNO@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_20
## %bb.18:
	movq	_TMAP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	%r14d, (%rax)
	movq	$0, 8(%rax)
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_vs_screens
	movq	(%rbx), %rsi
	movl	%eax, 4(%rsi)
	jmp	LBB0_21
LBB0_20:
	movq	_TMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_21:
	movq	_HMAP@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r14), %rsi
	jbe	LBB0_37
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	-16(%rsi), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_vs_sm_prev
	movq	%rbx, %rsi
	testl	%eax, %eax
	je	LBB0_22
LBB0_26:
	movl	$1, %ecx
LBB0_27:
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%ecx, (%rsi)
	movq	$0, 8(%rsi)
LBB0_28:
	movl	$1, 4(%rsi)
LBB0_29:
	movq	(%r12), %rbx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	je	LBB0_37
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	leaq	16(%rsi), %r14
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_vs_sm_next
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_30
LBB0_32:
	movq	_HMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rsi)
	movq	$0, 8(%rsi)
	movq	_TMAP@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r14), %rsi
	jae	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	leaq	16(%rsi), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_vs_sm_next
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_33
## %bb.35:
	movl	$1, %eax
	jmp	LBB0_38
LBB0_37:
	xorl	%eax, %eax
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movl	-56(%rbp), %eax
	movq	_TMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, (%rsi)
	movq	-48(%rbp), %rax
	movq	%rax, 8(%rsi)
	movl	-52(%rbp), %eax
	movl	%eax, 4(%rsi)
	jmp	LBB0_21
LBB0_40:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_HMAP,8,3                       ## @HMAP
	.comm	_SC_SCR_REDRAW,4,2              ## @SC_SCR_REDRAW
	.comm	_TMAP,8,3                       ## @TMAP
	.comm	_OOBLNO,8,3                     ## @OOBLNO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_sm_fill                     ; -- Begin function vs_sm_fill
	.p2align	2
_vs_sm_fill:                            ; @vs_sm_fill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x23, _HMAP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HMAP@GOTPAGEOFF]
	cbz	x24, LBB0_3
; %bb.1:
	ldr	x22, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x24, x24, #1
	mov	x0, x22
	bl	_SMAP_FLUSH
	add	x22, x22, #16
	cbnz	x24, LBB0_2
LBB0_3:
Lloh2:
	adrp	x8, _SC_SCR_REDRAW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SC_SCR_REDRAW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_36
; %bb.4:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh7:
	adrp	x8, _OOBLNO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OOBLNO@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_24
; %bb.6:
	ldr	x8, [x23]
	ldrsw	x1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_vs_screens
	ldr	x1, [x23]
	ldrsw	x8, [x1, #4]
	cmp	x0, x8
	b.lo	LBB0_25
	b	LBB0_26
LBB0_7:
	str	xzr, [sp, #8]
	movi.2s	v0, #1
	str	d0, [sp]
	mov	x0, x19
	bl	_HALFTEXT
	mov	x3, x0
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	bl	_vs_sm_nlines
	mov	x21, x0
	mov	x0, x19
	bl	_HALFTEXT
	cmp	w21, w0
	b.le	LBB0_19
; %bb.8:
	mov	x1, sp
	mov	x0, x19
	bl	_db_last
	cbnz	w0, LBB0_32
; %bb.9:
	str	xzr, [sp, #8]
	ldrsw	x1, [sp]
	mov	x0, x19
	mov	x2, #0
	bl	_vs_screens
	str	w0, [sp, #4]
	mov	x0, x19
	bl	_HALFTEXT
	mov	x3, x0
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	bl	_vs_sm_nlines
	mov	x21, x0
	mov	x0, x19
	bl	_HALFTEXT
	cmp	w21, w0
	b.le	LBB0_35
LBB0_10:
	ldr	x8, [x23]
	ldr	x9, [x19]
	lsl	x10, x9, #3
	and	x10, x10, #0xfffffffffffffff0
	add	x1, x8, x10
	str	xzr, [x1, #8]
	mov	w10, #1
	stp	w20, w10, [x1]
	cmp	x9, #2
	b.lo	LBB0_14
; %bb.11:
	mov	w20, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	x21, x1, #16
	mov	x0, x19
	mov	x2, x21
	bl	_vs_sm_prev
	cbnz	w0, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23]
	mov	x1, x21
	cmp	x21, x8
	b.hi	LBB0_12
LBB0_14:
	ldr	x9, [x19]
	lsl	x9, x9, #3
	and	x9, x9, #0xfffffffffffffff0
	add	x1, x8, x9
Lloh10:
	adrp	x21, _TMAP@GOTPAGE
Lloh11:
	ldr	x21, [x21, _TMAP@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x1, x8
	b.hs	LBB0_33
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x20, x1, #16
	mov	x0, x19
	mov	x2, x20
	bl	_vs_sm_next
	mov	x1, x20
	cbz	x0, LBB0_15
	b	LBB0_29
LBB0_17:
Lloh12:
	adrp	x8, _OOBLNO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OOBLNO@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_20
; %bb.18:
Lloh15:
	adrp	x21, _TMAP@GOTPAGE
Lloh16:
	ldr	x21, [x21, _TMAP@GOTPAGEOFF]
	ldr	x8, [x21]
	str	w20, [x8]
	str	xzr, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_vs_screens
	ldr	x1, [x21]
	str	w0, [x1, #4]
	b	LBB0_21
LBB0_19:
	mov	w20, #1
	b	LBB0_24
LBB0_20:
Lloh17:
	adrp	x8, _TMAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TMAP@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x8]
LBB0_21:
	mov	w20, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cmp	x1, x8
	b.ls	LBB0_33
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	sub	x21, x1, #16
	mov	x0, x19
	mov	x2, x21
	bl	_vs_sm_prev
	mov	x1, x21
	cbz	w0, LBB0_22
LBB0_24:
	ldr	x1, [x23]
	str	w20, [x1]
	str	xzr, [x1, #8]
LBB0_25:
	mov	w8, #1
	str	w8, [x1, #4]
LBB0_26:
	ldr	x21, [x19]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	subs	x21, x21, #1
	b.eq	LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x20, x1, #16
	mov	x0, x19
	mov	x2, x20
	bl	_vs_sm_next
	mov	x1, x20
	cbz	x0, LBB0_27
LBB0_29:
	ldr	x1, [x23]
	str	xzr, [x1, #8]
	movi.2s	v0, #1
	str	d0, [x1]
Lloh20:
	adrp	x21, _TMAP@GOTPAGE
Lloh21:
	ldr	x21, [x21, _TMAP@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x1, x8
	b.hs	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x20, x1, #16
	mov	x0, x19
	mov	x2, x20
	bl	_vs_sm_next
	mov	x1, x20
	cbz	x0, LBB0_30
LBB0_32:
	mov	w0, #1
	b	LBB0_34
LBB0_33:
	mov	w0, #0
LBB0_34:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_35:
Lloh22:
	adrp	x8, _TMAP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TMAP@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	ldr	x8, [sp, #8]
	str	x8, [x1, #8]
	ldr	d0, [sp]
	str	d0, [x1]
	b	LBB0_21
LBB0_36:
	bl	_abort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
                                        ; -- End function
	.comm	_HMAP,8,3                       ; @HMAP
	.comm	_SC_SCR_REDRAW,4,2              ; @SC_SCR_REDRAW
	.comm	_TMAP,8,3                       ; @TMAP
	.comm	_OOBLNO,8,3                     ; @OOBLNO
.subsections_via_symbols
