	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_vqs
_init_vqs:                              ## @init_vqs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	40(%rdi), %r12d
	callq	_use_multiport
	testq	%rax, %rax
	leal	2(%r12,%r12), %eax
	movl	$2, %ecx
	cmovnel	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,8), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leal	(,%r12,8), %ebx
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, (%r15)
	movl	(%r13), %esi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, 8(%r15)
	testq	%r13, %r13
	je	LBB0_5
## %bb.1:
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_in_intr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_out_intr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_use_multiport
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	_control_intr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	$0, 24(%r12)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 24(%r14)
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_14
## %bb.8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %r8d
	movl	$2, %eax
	cmpl	$2, %edx
	je	LBB0_12
## %bb.9:
	movl	%r8d, %edx
	andl	$-2, %edx
	movl	$7, %eax
	movq	_in_intr@GOTPCREL(%rip), %r9
	movq	_out_intr@GOTPCREL(%rip), %rcx
	leaq	L_.str(%rip), %rbx
	leaq	L_.str.1(%rip), %rdi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rsi
	movq	%rsi, -24(%r12,%rax,8)
	movq	(%rcx), %rsi
	movq	%rsi, -16(%r12,%rax,8)
	movq	%rbx, -24(%r14,%rax,8)
	movq	%rdi, -16(%r14,%rax,8)
	movq	(%r9), %rsi
	movq	%rsi, -8(%r12,%rax,8)
	movq	(%rcx), %rsi
	movq	%rsi, (%r12,%rax,8)
	movq	%rbx, -8(%r14,%rax,8)
	movq	%rdi, (%r14,%rax,8)
	addq	$4, %rax
	addl	$-2, %edx
	jne	LBB0_10
## %bb.11:
	addq	$-5, %rax
LBB0_12:
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movq	_in_intr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r12,%rax,8)
	movq	_out_intr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r12,%rax,8)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, 16(%r14,%rax,8)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 24(%r14,%rax,8)
LBB0_14:
	movq	32(%r15), %rdi
	movq	(%rdi), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %ebx
	movq	8(%r15), %rax
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
LBB0_16:
	movq	%rax, %rdi
	callq	_kfree
	movq	(%r15), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
LBB0_27:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	8(%r13), %rax
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	callq	_use_multiport
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
## %bb.18:
	movq	16(%r13), %rax
	movq	%rax, 16(%r15)
	movq	24(%r13), %rax
	movq	%rax, 24(%r15)
	cmpl	$2, %ebx
	jl	LBB0_26
## %bb.19:
	movl	%ebx, %eax
	decq	%rbx
	cmpl	$2, %eax
	jne	LBB0_21
## %bb.20:
	movl	$1, %eax
	movl	$2, %ecx
	jmp	LBB0_24
LBB0_21:
	movq	%rbx, %rdx
	andq	$-2, %rdx
	negq	%rdx
	movl	$1, %eax
	movl	$7, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-24(%r13,%rcx,8), %rsi
	movq	(%r15), %rdi
	movq	%rsi, (%rdi,%rax,8)
	movq	-16(%r13,%rcx,8), %rsi
	movq	8(%r15), %rdi
	movq	%rsi, (%rdi,%rax,8)
	movq	-8(%r13,%rcx,8), %rsi
	movq	(%r15), %rdi
	movq	%rsi, 8(%rdi,%rax,8)
	movq	(%r13,%rcx,8), %rsi
	movq	8(%r15), %rdi
	movq	%rsi, 8(%rdi,%rax,8)
	addq	$4, %rcx
	leaq	(%rdx,%rax), %rsi
	addq	$2, %rsi
	addq	$2, %rax
	cmpq	$1, %rsi
	jne	LBB0_22
## %bb.23:
	addq	$-5, %rcx
LBB0_24:
	testb	$1, %bl
	je	LBB0_26
## %bb.25:
	movq	16(%r13,%rcx,8), %rdx
	movq	(%r15), %rsi
	movq	%rdx, (%rsi,%rax,8)
	movq	24(%r13,%rcx,8), %rcx
	movq	8(%r15), %rdx
	movq	%rcx, (%rdx,%rax,8)
LBB0_26:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_in_intr,8,3                    ## @in_intr
	.comm	_out_intr,8,3                   ## @out_intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input"

L_.str.1:                               ## @.str.1
	.asciz	"output"

	.comm	_control_intr,8,3               ## @control_intr
L_.str.2:                               ## @.str.2
	.asciz	"control-i"

L_.str.3:                               ## @.str.3
	.asciz	"control-o"

	.no_dead_strip	_init_vqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_vqs
_init_vqs:                              ; @init_vqs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	ldr	w25, [x0, #40]
	bl	_use_multiport
	lsl	w8, w25, #1
	add	w8, w8, #2
	cmp	x0, #0
	mov	w9, #2
	csel	w23, w9, w8, eq
	lsl	w22, w23, #3
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_kmalloc
	mov	x19, x0
	ldr	w1, [x26]
	mov	x0, x22
	bl	_kmalloc
	mov	x21, x0
	ldr	w1, [x26]
	mov	x0, x22
	bl	_kmalloc
	mov	x22, x0
	lsl	w24, w25, #3
	ldr	w1, [x26]
	mov	x0, x24
	bl	_kmalloc
	str	x0, [x20]
	ldr	w1, [x26]
	mov	x0, x24
	bl	_kmalloc
	str	x0, [x20, #8]
	cmp	x19, #0
	ccmp	x21, #0, #4, ne
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_7
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.2:
	cbz	x0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x24, _in_intr@GOTPAGE
Lloh3:
	ldr	x24, [x24, _in_intr@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x21]
Lloh4:
	adrp	x26, _out_intr@GOTPAGE
Lloh5:
	ldr	x26, [x26, _out_intr@GOTPAGEOFF]
	ldr	x8, [x26]
	str	x8, [x21, #8]
Lloh6:
	adrp	x27, l_.str@PAGE
Lloh7:
	add	x27, x27, l_.str@PAGEOFF
Lloh8:
	adrp	x28, l_.str.1@PAGE
Lloh9:
	add	x28, x28, l_.str.1@PAGEOFF
	stp	x27, x28, [x22]
	mov	x0, x20
	bl	_use_multiport
	cbz	x0, LBB0_20
; %bb.4:
Lloh10:
	adrp	x8, _control_intr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _control_intr@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, xzr, [x21, #16]
Lloh15:
	adrp	x8, l_.str.3@PAGE
Lloh16:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x9, x8, [x22, #16]
	cmp	w25, #2
	b.lt	LBB0_20
; %bb.5:
	sub	w10, w25, #2
	cmp	w10, #3
	b.hs	LBB0_10
; %bb.6:
	mov	w9, #1
	mov	w8, #2
	b	LBB0_18
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	bl	_kfree
	ldr	x0, [x20]
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	x8, x21, #32
	sub	w9, w25, #2
	lsl	x9, x9, #4
	add	x9, x9, #48
	add	x15, x22, #32
	add	x16, x22, x9
	add	x13, x24, #8
	cmp	x8, x13
	add	x9, x21, x9
	ccmp	x9, x24, #0, lo
	cset	w11, hi
	add	x17, x26, #8
	cmp	x8, x17
	ccmp	x9, x26, #0, lo
	cset	w12, hi
	cmp	x15, x13
	ccmp	x16, x24, #0, lo
	cset	w14, hi
	cmp	x15, x17
	ccmp	x16, x26, #0, lo
	cset	w13, hi
	cmp	x15, x9
	ccmp	x8, x16, #2, lo
	mov	w9, #1
	mov	w8, #2
	b.lo	LBB0_18
; %bb.11:
	tbnz	w11, #0, LBB0_18
; %bb.12:
	tbnz	w12, #0, LBB0_18
; %bb.13:
	tbnz	w14, #0, LBB0_18
; %bb.14:
	tbnz	w13, #0, LBB0_18
; %bb.15:
	add	x10, x10, #1
	and	x11, x10, #0x1fffffffc
	lsr	x9, x11, #2
	mov	w8, #2
	bfi	x8, x9, #3, #31
	orr	w9, w11, #0x1
	add	x12, x22, #64
	add	x13, x21, #64
	fmov	d0, x27
	mov.d	v0[1], x28
	mov	x14, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ld1r.2d	{ v1 }, [x24]
	ld1r.2d	{ v2 }, [x26]
	sub	x15, x13, #32
	st2.2d	{ v1, v2 }, [x15]
	st2.2d	{ v1, v2 }, [x13]
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	add	x13, x13, #64
	subs	x14, x14, #4
	b.ne	LBB0_16
; %bb.17:
	cmp	x10, x11
	b.eq	LBB0_20
LBB0_18:
	sub	w9, w25, w9
	lsl	x8, x8, #3
	add	x10, x8, #24
	add	x8, x21, x10
	add	x10, x22, x10
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x24]
	stur	x11, [x8, #-8]
	ldr	x11, [x26]
	str	x11, [x8], #16
	stp	x27, x28, [x10, #-8]
	add	x10, x10, #16
	subs	w9, w9, #1
	b.ne	LBB0_19
LBB0_20:
	ldr	x0, [x20, #32]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	blr	x8
	cbz	w0, LBB0_22
; %bb.21:
	mov	x23, x0
	ldr	x0, [x20, #8]
	b	LBB0_8
LBB0_22:
	ldr	x8, [x19]
	ldr	x9, [x20]
	str	x8, [x9]
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	str	x8, [x9]
	mov	x0, x20
	bl	_use_multiport
	cbz	x0, LBB0_26
; %bb.23:
	ldr	x8, [x19, #16]
	str	x8, [x20, #16]
	ldr	x8, [x19, #24]
	str	x8, [x20, #24]
	cmp	w25, #2
	b.lt	LBB0_26
; %bb.24:
	add	x8, x19, #40
	lsl	x9, x25, #3
	mov	w10, #8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x8, #-8]
	ldr	x12, [x20]
	str	x11, [x12, x10]
	ldr	x11, [x8], #16
	ldr	x12, [x20, #8]
	str	x11, [x12, x10]
	add	x10, x10, #8
	cmp	x9, x10
	b.ne	LBB0_25
LBB0_26:
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	w23, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_in_intr,8,3                    ; @in_intr
	.comm	_out_intr,8,3                   ; @out_intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input"

l_.str.1:                               ; @.str.1
	.asciz	"output"

	.comm	_control_intr,8,3               ; @control_intr
l_.str.2:                               ; @.str.2
	.asciz	"control-i"

l_.str.3:                               ; @.str.3
	.asciz	"control-o"

	.no_dead_strip	_init_vqs
.subsections_via_symbols
