	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_sm_next                     ## -- Begin function vs_sm_next
	.p2align	4, 0x90
_vs_sm_next:                            ## @vs_sm_next
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_SMAP_FLUSH
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	movq	8(%rbx), %rsi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incq	%rsi
	movq	%rsi, 8(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_vs_screens
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.3:
	incq	%rdx
	movq	%rdx, 8(%r14)
	movq	$1, (%r14)
	jmp	LBB0_5
LBB0_4:
	movq	%rdx, 8(%r14)
	incq	%rcx
	movq	%rcx, (%r14)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_LEFTRIGHT,4,2                ## @O_LEFTRIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_sm_next                     ; -- Begin function vs_sm_next
	.p2align	2
_vs_sm_next:                            ; @vs_sm_next
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_SMAP_FLUSH
Lloh0:
	adrp	x8, _O_LEFTRIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_O_ISSET
	ldr	x1, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	add	x8, x1, #1
	str	x8, [x19, #8]
	ldr	w8, [x20, #16]
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	mov	x2, #0
	bl	_vs_screens
	ldp	x9, x8, [x20]
	cmp	x0, x9
	b.ne	LBB0_4
; %bb.3:
	add	x8, x8, #1
	mov	w9, #1
	b	LBB0_5
LBB0_4:
	add	x9, x9, #1
LBB0_5:
	stp	x9, x8, [x19]
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_O_LEFTRIGHT,4,2                ; @O_LEFTRIGHT
.subsections_via_symbols
