	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_fg                          ## -- Begin function vs_fg
	.p2align	4, 0x90
_vs_fg:                                 ## @vs_fg
	.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	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_STRLEN
	leaq	1(%rax), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_INT2CHAR
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.6:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vs_getbg
	movq	%rax, -56(%rbp)
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_q@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_vs_split
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	jmp	LBB0_10
LBB0_3:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_vs_swap
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	-56(%rbp), %rax
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	_q@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movl	(%rbx), %edi
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_7:
	testq	%r13, %r13
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_msgq_wstr
LBB0_10:
	movl	$1, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"223|There are no background screens"

L_.str.1:                               ## @.str.1
	.asciz	"224|There's no background screen editing a file named %s"

	.comm	_q,4,2                          ## @q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_fg                          ; -- Begin function vs_fg
	.p2align	2
_vs_fg:                                 ; @vs_fg
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_STRLEN
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_INT2CHAR
LBB0_2:
	cbz	w22, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	bl	_vs_getbg
	str	x0, [sp, #8]
	str	x0, [x21]
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	ldr	w0, [x23]
Lloh0:
	adrp	x20, _q@GOTPAGE
Lloh1:
	ldr	x20, [x20, _q@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, x22
	bl	_TAILQ_REMOVE
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_vs_split
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w0, [x23]
	ldr	w2, [x20]
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	b	LBB0_10
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_vs_swap
	cbnz	x0, LBB0_10
; %bb.7:
	ldr	x8, [sp, #8]
	str	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x23, #4]
Lloh2:
	adrp	x20, _q@GOTPAGE
Lloh3:
	ldr	x20, [x20, _q@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	w0, [x23]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh4:
	adrp	x8, _M_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh9:
	adrp	x9, l_.str@PAGE
Lloh10:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x20, #0
	csel	x3, x9, x8, eq
	mov	x0, x19
	mov	x2, x20
	bl	_msgq_wstr
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"223|There are no background screens"

l_.str.1:                               ; @.str.1
	.asciz	"224|There's no background screen editing a file named %s"

	.comm	_q,4,2                          ; @q
.subsections_via_symbols
