	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msix_table_read
_msix_table_read:                       ## @msix_table_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r8d
	movq	(%rdi), %rdi
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%rdi), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_6
## %bb.2:
	addl	4(%rdi), %ecx
	cmpl	%esi, %ecx
	jle	LBB0_6
## %bb.3:
	movl	$-1, %ecx
	cmpl	$8, %r8d
	ja	LBB0_12
## %bb.4:
	movl	$278, %edx                      ## imm = 0x116
	btl	%r8d, %edx
	jae	LBB0_12
## %bb.5:
	movslq	%esi, %rcx
	leaq	(%rax,%rcx,4), %rax
	subq	24(%rdi), %rax
	sarq	$2, %rax
	jmp	LBB0_11
LBB0_6:
	movl	8(%rdi), %eax
	movl	$-1, %ecx
	cmpl	%esi, %eax
	jg	LBB0_12
## %bb.7:
	subl	%eax, %esi
	movq	_MSIX_TABLE_ENTRY_SIZE@GOTPCREL(%rip), %r9
	movl	%esi, %eax
	cltd
	idivl	(%r9)
	cmpl	12(%rdi), %eax
	jge	LBB0_12
## %bb.8:
	cmpl	$8, %r8d
	ja	LBB0_12
## %bb.9:
	movl	$278, %esi                      ## imm = 0x116
	btl	%r8d, %esi
	jae	LBB0_12
## %bb.10:
	movslq	%edx, %rcx
	cltq
	shlq	$2, %rax
	addq	16(%rdi), %rax
	addq	%rcx, %rax
LBB0_11:
	movl	(%rax), %ecx
LBB0_12:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ## @MSIX_TABLE_ENTRY_SIZE
	.no_dead_strip	_msix_table_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msix_table_read
_msix_table_read:                       ; @msix_table_read
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_6
; %bb.1:
	ldr	w10, [x8]
	cmp	w10, w1
	b.gt	LBB0_6
; %bb.2:
	ldr	w11, [x8, #4]
	add	w10, w11, w10
	cmp	w10, w1
	b.le	LBB0_6
; %bb.3:
	mov	w0, #-1
	cmp	w2, #8
	b.hi	LBB0_13
; %bb.4:
	mov	w10, #1
	lsl	w10, w10, w2
	mov	w11, #278
	tst	w10, w11
	b.eq	LBB0_13
; %bb.5:
	add	x9, x9, w1, sxtw #2
	ldr	x8, [x8, #24]
	sub	x8, x9, x8
	asr	x8, x8, #2
	b	LBB0_12
LBB0_6:
	ldr	w9, [x8, #8]
	cmp	w9, w1
	b.le	LBB0_8
; %bb.7:
	mov	w0, #-1
	ret
LBB0_8:
	sub	w9, w1, w9
Lloh0:
	adrp	x10, _MSIX_TABLE_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MSIX_TABLE_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x10]
	sdiv	w10, w9, w11
	ldr	w12, [x8, #12]
	mov	w0, #-1
	cmp	w10, w12
	b.ge	LBB0_13
; %bb.9:
	cmp	w2, #8
	b.hi	LBB0_13
; %bb.10:
	mov	w12, #1
	lsl	w12, w12, w2
	mov	w13, #278
	tst	w12, w13
	b.eq	LBB0_13
; %bb.11:
	msub	w9, w10, w11, w9
	ldr	x8, [x8, #16]
	add	x8, x8, w10, sxtw #2
	add	x8, x8, w9, sxtw
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ; @MSIX_TABLE_ENTRY_SIZE
	.no_dead_strip	_msix_table_read
.subsections_via_symbols
