	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msix_table_write
_msix_table_write:                      ## @msix_table_write
	.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
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rdx, %rbx
	movq	%rdi, %r10
	movq	16(%rdx), %r14
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%r14), %edx
	cmpl	%ecx, %edx
	jg	LBB0_5
## %bb.2:
	addl	4(%r14), %edx
	cmpl	%ecx, %edx
	jle	LBB0_5
## %bb.3:
	decl	%r8d
	cmpl	$7, %r8d
	ja	LBB0_12
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r8,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_11:
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rax
	subq	32(%r14), %rax
	sarq	$2, %rax
	movl	%r9d, (%rax)
	jmp	LBB0_12
LBB0_5:
	movl	8(%r14), %eax
	cmpl	%ecx, %eax
	jg	LBB0_12
## %bb.6:
	subl	%eax, %ecx
	movq	_MSIX_TABLE_ENTRY_SIZE@GOTPCREL(%rip), %rdi
	movl	%ecx, %eax
	cltd
	idivl	(%rdi)
	cmpl	12(%r14), %eax
	jge	LBB0_12
## %bb.7:
	movq	24(%r14), %r12
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %r13
	leaq	(%r12,%r13,4), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r15
	xorl	%edi, %edi
	cmpl	$4, %r8d
	sete	%dil
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%r10, -72(%rbp)                 ## 8-byte Spill
	callq	_assert
	xorl	%edi, %edi
	testb	$3, %r15b
	sete	%dil
	callq	_assert
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	(%r12,%r13,4), %r8d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r15,%rdx)
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	cmpq	$0, 16(%r14)
	je	LBB0_12
## %bb.8:
	movl	(%rdx), %r11d
	movq	_PCIM_MSIX_VCTRL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r11d, %edx
	je	LBB0_10
## %bb.9:
	andl	%r8d, %edx
	je	LBB0_10
LBB0_12:
	addq	$40, %rsp
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movl	4(%r12,%r13,4), %ebx
	movl	8(%r12,%r13,4), %r10d
	subq	$8, %rsp
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	callq	_vm_setup_pptdev_msix
	addq	$72, %rsp
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ## @MSIX_TABLE_ENTRY_SIZE
	.comm	_PCIM_MSIX_VCTRL_MASK,4,2       ## @PCIM_MSIX_VCTRL_MASK
	.no_dead_strip	_msix_table_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msix_table_write
_msix_table_write:                      ; @msix_table_write
	.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	x19, x5
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x2, #16]
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w9, [x24]
	cmp	w9, w3
	b.gt	LBB0_6
; %bb.2:
	ldr	w10, [x24, #4]
	add	w9, w10, w9
	cmp	w9, w3
	b.le	LBB0_6
; %bb.3:
	sub	w9, w4, #1
	cmp	w9, #7
	b.hi	LBB0_11
; %bb.4:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
	add	x8, x8, w3, sxtw #2
	ldr	x9, [x24, #32]
	sub	x8, x8, x9
	asr	x8, x8, #2
	str	w19, [x8]
	b	LBB0_11
LBB0_6:
	ldr	w8, [x24, #8]
	cmp	w8, w3
	b.gt	LBB0_11
; %bb.7:
	sub	w8, w3, w8
Lloh2:
	adrp	x9, _MSIX_TABLE_ENTRY_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSIX_TABLE_ENTRY_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w23, w8, w9
	ldr	w10, [x24, #12]
	cmp	w23, w10
	b.ge	LBB0_11
; %bb.8:
	ldr	x25, [x24, #24]
	mov	w10, #12
	smaddl	x26, w23, w10, x25
	msub	w8, w23, w9, w8
	sxtw	x27, w8
	cmp	w4, #4
	cset	w0, eq
	bl	_assert
	tst	x27, #0x3
	cset	w0, eq
	bl	_assert
	ldr	w9, [x26]
	str	w19, [x26, x27]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_11
; %bb.9:
Lloh5:
	adrp	x10, _PCIM_MSIX_VCTRL_MASK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCIM_MSIX_VCTRL_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh7:
	ldr	w10, [x10]
	and	w11, w10, w8
	and	w9, w10, w9
	cmp	w11, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_11
; %bb.10:
	sxtw	x9, w23
	ldp	w3, w2, [x22, #4]
	ldr	w4, [x22]
	mov	w10, #12
	madd	x9, x9, x10, x25
	ldp	w7, w6, [x9, #4]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x5, x23
	bl	_vm_setup_pptdev_msix
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ; @MSIX_TABLE_ENTRY_SIZE
	.comm	_PCIM_MSIX_VCTRL_MASK,4,2       ; @PCIM_MSIX_VCTRL_MASK
	.no_dead_strip	_msix_table_write
.subsections_via_symbols
