	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_emul_msix_tread            ## -- Begin function pci_emul_msix_tread
	.p2align	4, 0x90
_pci_emul_msix_tread:                   ## @pci_emul_msix_tread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %r8d
	cmpl	$8, %edx
	ja	LBB0_8
## %bb.1:
	movl	%edx, %ecx
	movl	$274, %eax                      ## imm = 0x112
	btl	%edx, %eax
	jae	LBB0_8
## %bb.2:
	movq	_MSIX_TABLE_ENTRY_SIZE@GOTPCREL(%rip), %r9
	movl	%esi, %eax
	cltd
	idivl	(%r9)
	movl	%edx, %r9d
	movl	%eax, %r10d
	movl	%edx, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	LBB0_8
## %bb.3:
	cmpl	(%rdi), %r10d
	jge	LBB0_7
## %bb.4:
	movslq	%r10d, %rax
	addq	8(%rdi), %rax
	movslq	%r9d, %rdx
	cmpl	$4, %ecx
	je	LBB0_6
## %bb.5:
	cmpl	$1, %ecx
LBB0_6:
	movl	(%rax,%rdx), %r8d
	jmp	LBB0_8
LBB0_7:
	callq	_pci_valid_pba_offset
	xorl	%r8d, %r8d
	cmpq	$1, %rax
	sbbl	%r8d, %r8d
LBB0_8:
	movl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ## @MSIX_TABLE_ENTRY_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_emul_msix_tread            ; -- Begin function pci_emul_msix_tread
	.p2align	2
_pci_emul_msix_tread:                   ; @pci_emul_msix_tread
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	mov	w0, #-1
	cmp	w2, #8
	b.hi	LBB0_9
; %bb.1:
	mov	w9, #1
	lsl	w9, w9, w2
	mov	w10, #274
	tst	w9, w10
	b.eq	LBB0_9
; %bb.2:
Lloh0:
	adrp	x9, _MSIX_TABLE_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSIX_TABLE_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w1, w9
	msub	w9, w10, w9, w1
	sdiv	w11, w9, w2
	msub	w11, w11, w2, w9
	cbz	w11, LBB0_4
; %bb.3:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w11, [x8]
	cmp	w10, w11
	b.ge	LBB0_8
; %bb.5:
	ldr	x8, [x8, #8]
	add	x8, x8, w10, sxtw
	sxtw	x9, w9
	cmp	w2, #4
	b.eq	LBB0_7
; %bb.6:
	cmp	w2, #1
LBB0_7:
	ldr	w0, [x8, x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x8
	bl	_pci_valid_pba_offset
	cmp	x0, #0
	csetm	w0, eq
LBB0_9:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ; @MSIX_TABLE_ENTRY_SIZE
.subsections_via_symbols
