	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtcrypto_find_vqs
_virtcrypto_find_vqs:                   ## @virtcrypto_find_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, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	24(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %rbx
	leal	1(%rbx), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movl	%r13d, %edi
	movq	%rax, %r13
	movl	(%rbx), %edx
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	$0, (%r13,%rdx,8)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax,%rdx,8)
	cmpl	$0, (%r12)
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_virtcrypto_dataq_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13,%r14,8)
	movq	16(%r12), %rax
	movq	(%rax,%rbx), %rdi
	movl	$8, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx), %rcx
	movq	%rcx, (%rax,%r14,8)
	incq	%r14
	movslq	(%r12), %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_5
LBB0_6:
	movq	24(%r12), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %rcx
	movq	%rax, %r8
	xorl	%r9d, %r9d
	callq	_virtio_find_vqs
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%r14,%rax,8), %rax
	movq	%rax, 8(%r12)
	cmpl	$0, (%r12)
	movl	$0, %r15d
	jle	LBB0_14
## %bb.8:
	movq	16(%r12), %rdi
	movl	$20, %ebx
	xorl	%r14d, %r14d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rdi
	callq	_spin_lock_init
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	movq	16(%r12), %rcx
	movq	%rax, -12(%rcx,%rbx)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_crypto_engine_alloc_init
	movq	16(%r12), %rdi
	movl	%eax, -4(%rdi,%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jl	LBB0_9
## %bb.11:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_12:
	xorl	%r15d, %r15d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_13:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_15:
	movq	%r13, %rdi
	callq	_kfree
LBB0_16:
	movq	%r14, %rdi
	callq	_kfree
LBB0_17:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"controlq"

	.comm	_virtcrypto_dataq_callback,8,3  ## @virtcrypto_dataq_callback
L_.str.1:                               ## @.str.1
	.asciz	"dataq.%d"

	.no_dead_strip	_virtcrypto_find_vqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtcrypto_find_vqs
_virtcrypto_find_vqs:                   ; @virtcrypto_find_vqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w25, w8
	ldr	x26, [x0, #24]
	ldrsw	x27, [x0]
	add	w24, w27, #1
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x24
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
	ldr	w2, [x22]
	mov	x0, x24
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x21, x0
	ldr	w2, [x22]
	mov	x0, x24
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x23, x0
	stp	x26, x27, [sp]                  ; 16-byte Folded Spill
	lsl	x8, x27, #3
	str	xzr, [x21, x8]
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [x0, x8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x27, #0
	mov	x25, #0
Lloh7:
	adrp	x22, _virtcrypto_dataq_callback@GOTPAGE
Lloh8:
	ldr	x22, [x22, _virtcrypto_dataq_callback@GOTPAGEOFF]
Lloh9:
	adrp	x26, l_.str.1@PAGE
Lloh10:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x28, x25, #3
	str	x8, [x21, x28]
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x27]
	mov	w1, #8
	mov	x2, x26
	mov	x3, x25
	bl	_snprintf
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x27]
	str	x8, [x23, x28]
	add	x25, x25, #1
	ldrsw	x8, [x20]
	add	x27, x27, #24
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x0, [x20, #24]
	mov	x1, x24
	mov	x2, x19
	mov	x3, x21
	mov	x4, x23
	mov	x5, #0
	bl	_virtio_find_vqs
	mov	x25, x0
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x19, x8, lsl #3]
	str	x8, [x20, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x24, #0
	mov	x25, #0
	ldr	x8, [x20, #16]
Lloh11:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
	ldr	x26, [sp]                       ; 8-byte Folded Reload
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x24
	add	x0, x8, #20
	bl	_spin_lock_init
	ldr	x8, [x19, x25, lsl #3]
	ldr	x9, [x20, #16]
	add	x9, x9, x24
	str	x8, [x9, #8]
	mov	x0, x26
	mov	w1, #1
	bl	_crypto_engine_alloc_init
	ldr	x8, [x20, #16]
	add	x9, x8, x24
	str	w0, [x9, #16]
	cbz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldrsw	x9, [x20]
	add	x24, x24, #24
	cmp	x25, x9
	b.lt	LBB0_9
LBB0_11:
	mov	w25, #0
	b	LBB0_13
LBB0_12:
	ldr	w8, [x22]
	neg	w25, w8
LBB0_13:
	mov	x0, x23
	bl	_kfree
LBB0_14:
	mov	x0, x21
	bl	_kfree
LBB0_15:
	mov	x0, x19
	bl	_kfree
LBB0_16:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"controlq"

	.comm	_virtcrypto_dataq_callback,8,3  ; @virtcrypto_dataq_callback
l_.str.1:                               ; @.str.1
	.asciz	"dataq.%d"

	.no_dead_strip	_virtcrypto_find_vqs
.subsections_via_symbols
