	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvu_set_msix_offset
_rvu_set_msix_offset:                   ## @rvu_set_msix_offset
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movb	4(%rdx), %cl
	movl	%r14d, %edx
	shll	%cl, %edx
	movq	%rsi, %r15
	movl	8(%r13), %esi
	orl	(%r13), %edx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_rvu_read64
	movl	%eax, %r12d
	shrl	$12, %eax
	movzbl	%al, %esi
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_rvu_rsrc_check_contig
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_rvu_alloc_rsrc_contig
	movl	8(%r13), %esi
	movb	4(%r13), %cl
	movl	%r14d, %edx
	shll	%cl, %edx
	orl	(%r13), %edx
	andl	$-2048, %r12d                   ## imm = 0xF800
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	orl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_rvu_write64
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movslq	-48(%rbp), %rbx                 ## 4-byte Folded Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movl	%r14d, %esi
	callq	_MSIX_BLKLF
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	decq	%r12
	jne	LBB0_3
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rvu_set_msix_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvu_set_msix_offset
_rvu_set_msix_offset:                   ; @rvu_set_msix_offset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldp	w9, w1, [x2, #4]
	ldr	w8, [x2]
	lsl	w9, w3, w9
	orr	w2, w9, w8
	bl	_rvu_read64
	mov	x24, x0
	ubfx	w22, w0, #12, #8
	add	x25, x21, #8
	mov	x0, x25
	mov	x1, x22
	bl	_rvu_rsrc_check_contig
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x25
	mov	x1, x22
	bl	_rvu_alloc_rsrc_contig
	mov	x25, x0
	ldp	w9, w1, [x20, #4]
	ldr	w8, [x20]
	lsl	w9, w19, w9
	orr	w2, w9, w8
	and	w8, w24, #0xfffff800
	orr	w3, w0, w8
	mov	x0, x23
	bl	_rvu_write64
	cbz	w22, LBB0_4
; %bb.2:
	sbfiz	x23, x25, #2, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_MSIX_BLKLF
	ldr	x8, [x21]
	str	w0, [x8, x23]
	add	x23, x23, #4
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rvu_set_msix_offset
.subsections_via_symbols
