	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmd_next_irq
_vmd_next_irq:                          ## @vmd_next_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpl	$1, (%rdi)
	je	LBB0_12
## %bb.2:
	movq	%rsi, %rdi
	callq	_msi_desc_to_pci_dev
	cmpl	$128, (%rax)
	jne	LBB0_12
## %bb.3:
	movq	_list_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_lock_irqsave
	movl	(%r14), %edx
	movq	8(%r14), %r10
	movl	$1, %ebx
	cmpl	$2, %edx
	jl	LBB0_8
## %bb.4:
	leaq	-1(%rdx), %r8
	addq	$-2, %rdx
	movl	%r8d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rdx
	jae	LBB0_14
## %bb.5:
	movl	$1, %edi
	movl	$1, %edx
LBB0_6:
	movl	%edi, %esi
	testq	%r9, %r9
	jne	LBB0_10
LBB0_7:
	movslq	%esi, %rbx
LBB0_8:
	incq	(%r10,%rbx,8)
	shlq	$3, %rbx
	movq	_list_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_unlock_irqrestore
	addq	8(%r14), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	movl	%esi, %edi
	decq	%r9
	je	LBB0_7
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rdx,8), %rax
	movslq	%edi, %rcx
	movl	%edx, %esi
	cmpq	(%r10,%rcx,8), %rax
	jl	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%edi, %esi
	jmp	LBB0_9
LBB0_12:
	movq	8(%r14), %rbx
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	andq	$-4, %r8
	movl	$1, %esi
	movl	$1, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$4, %rdx
	addq	$4, %rbx
	movl	%edi, %esi
	cmpq	%r8, %rbx
	je	LBB0_6
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movslq	%esi, %rcx
	movq	(%r10,%rdx,8), %rax
	movl	%edx, %edi
	cmpq	(%r10,%rcx,8), %rax
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%esi, %edi
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r10,%rdx,8), %rax
	movslq	%edi, %rcx
	cmpq	(%r10,%rcx,8), %rax
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	leal	1(%rdx), %edi
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r10,%rdx,8), %rax
	movslq	%edi, %rcx
	cmpq	(%r10,%rcx,8), %rax
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	leal	2(%rdx), %edi
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	24(%r10,%rdx,8), %rax
	movslq	%edi, %rcx
	cmpq	(%r10,%rcx,8), %rax
	jge	LBB0_15
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	leal	3(%rdx), %edi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_list_lock,4,2                  ## @list_lock
	.no_dead_strip	_vmd_next_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmd_next_irq
_vmd_next_irq:                          ; @vmd_next_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x1
	bl	_msi_desc_to_pci_dev
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, _list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _list_lock@GOTPAGEOFF]
	bl	_raw_spin_lock_irqsave
	ldr	w9, [x19]
	ldr	x8, [x19, #8]
	cmp	w9, #2
	b.lt	LBB0_7
; %bb.3:
	mov	w10, #1
	mov	w11, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x10, lsl #3]
	ldr	x13, [x8, w11, sxtw #3]
	cmp	x12, x13
	csel	w11, w10, w11, lt
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.5:
	sxtw	x9, w11
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19, #8]
	b	LBB0_9
LBB0_7:
	mov	w9, #1
LBB0_8:
	lsl	x20, x9, #3
	ldr	x9, [x8, x20]
	add	x9, x9, #1
	str	x9, [x8, x20]
Lloh2:
	adrp	x0, _list_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _list_lock@GOTPAGEOFF]
	bl	_raw_spin_unlock_irqrestore
	ldr	x8, [x19, #8]
	add	x0, x8, x20
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_list_lock,4,2                  ; @list_lock
	.no_dead_strip	_vmd_next_irq
.subsections_via_symbols
