	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_set_msix_state           ## -- Begin function hinic_set_msix_state
	.p2align	4, 0x90
_hinic_set_msix_state:                  ## @hinic_set_msix_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_HINIC_PCI_MSIX_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%esi, %rbx
	imulq	%rax, %rbx
	movq	_HINIC_PCI_MSIX_ENTRY_VECTOR_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	(%rdi), %rdi
	addq	%rbx, %rdi
	callq	_readl
	movq	_HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	%rdi, %rcx
	notq	%rcx
	andq	%rax, %rcx
	orq	%rax, %rdi
	testl	%r14d, %r14d
	cmoveq	%rcx, %rdi
	addq	(%r15), %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_PCI_MSIX_ENTRY_SIZE,4,2  ## @HINIC_PCI_MSIX_ENTRY_SIZE
	.comm	_HINIC_PCI_MSIX_ENTRY_VECTOR_CTRL,8,3 ## @HINIC_PCI_MSIX_ENTRY_VECTOR_CTRL
	.comm	_HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT,8,3 ## @HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_set_msix_state           ; -- Begin function hinic_set_msix_state
	.p2align	2
_hinic_set_msix_state:                  ; @hinic_set_msix_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HINIC_PCI_MSIX_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_PCI_MSIX_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sxtw	x9, w1
Lloh3:
	adrp	x10, _HINIC_PCI_MSIX_ENTRY_VECTOR_CTRL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HINIC_PCI_MSIX_ENTRY_VECTOR_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	madd	x21, x8, x9, x10
	ldr	x8, [x0]
	add	x0, x21, x8
	bl	_readl
Lloh6:
	adrp	x8, _HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	bic	x9, x0, x8
	orr	x8, x8, x0
	cmp	w19, #0
	csel	x0, x9, x8, eq
	ldr	x8, [x20]
	add	x1, x8, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_PCI_MSIX_ENTRY_SIZE,4,2  ; @HINIC_PCI_MSIX_ENTRY_SIZE
	.comm	_HINIC_PCI_MSIX_ENTRY_VECTOR_CTRL,8,3 ; @HINIC_PCI_MSIX_ENTRY_VECTOR_CTRL
	.comm	_HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT,8,3 ; @HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT
.subsections_via_symbols
