	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viommu_init_vqs
_viommu_init_vqs:                       ## @viommu_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	4(%rdi), %edi
	callq	_dev_to_virtio
	movaps	l___const.viommu_init_vqs.names(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movq	$0, -48(%rbp)
	movq	_viommu_event_handler@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -40(%rbp)
	movq	_VIOMMU_NR_VQS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %edx
	leaq	-48(%rbp), %rcx
	leaq	-32(%rbp), %r8
	movq	%rax, %rdi
	xorl	%r9d, %r9d
	callq	_virtio_find_vqs
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request"

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

	.section	__DATA,__const
	.p2align	4                               ## @__const.viommu_init_vqs.names
l___const.viommu_init_vqs.names:
	.quad	L_.str
	.quad	L_.str.1

	.comm	_viommu_event_handler,8,3       ## @viommu_event_handler
	.comm	_VIOMMU_NR_VQS,4,2              ## @VIOMMU_NR_VQS
	.no_dead_strip	_viommu_init_vqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viommu_init_vqs
_viommu_init_vqs:                       ; @viommu_init_vqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w0, [x0, #4]
	bl	_dev_to_virtio
Lloh3:
	adrp	x8, l___const.viommu_init_vqs.names@PAGE
Lloh4:
	add	x8, x8, l___const.viommu_init_vqs.names@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp, #16]
Lloh6:
	adrp	x8, _viommu_event_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _viommu_event_handler@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	xzr, x8, [sp]
Lloh9:
	adrp	x8, _VIOMMU_NR_VQS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIOMMU_NR_VQS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x3, sp
	add	x4, sp, #16
	mov	x5, #0
	bl	_virtio_find_vqs
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request"

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

	.section	__DATA,__const
	.p2align	3                               ; @__const.viommu_init_vqs.names
l___const.viommu_init_vqs.names:
	.quad	l_.str
	.quad	l_.str.1

	.comm	_viommu_event_handler,8,3       ; @viommu_event_handler
	.comm	_VIOMMU_NR_VQS,4,2              ; @VIOMMU_NR_VQS
	.no_dead_strip	_viommu_init_vqs
.subsections_via_symbols
