	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_pci_intr_mode_msi
_rtl_pci_intr_mode_msi:                 ## @rtl_pci_intr_mode_msi
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_rtl_pcipriv
	movq	%rax, %rdi
	callq	_rtl_pcidev
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_pci_enable_msi
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	__rtl_pci_interrupt@GOTPCREL(%rip), %rsi
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	$1, (%r15)
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movq	_COMP_INTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	callq	_pci_disable_msi
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__rtl_pci_interrupt,4,2         ## @_rtl_pci_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_COMP_INTR,4,2                  ## @COMP_INTR
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI Interrupt Mode!\n"

	.no_dead_strip	_rtl_pci_intr_mode_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_pci_intr_mode_msi
_rtl_pci_intr_mode_msi:                 ; @rtl_pci_intr_mode_msi
	.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	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x21, x0
	ldr	x0, [x0, #8]
	bl	_pci_enable_msi
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, __rtl_pci_interrupt@GOTPAGE
Lloh7:
	ldr	x1, [x1, __rtl_pci_interrupt@GOTPAGEOFF]
	mov	x4, x20
	bl	_request_irq
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
Lloh8:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh10:
	adrp	x9, _COMP_INTR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _COMP_INTR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh14:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w22, #0
	b	LBB0_5
LBB0_3:
	mov	x22, x0
	b	LBB0_5
LBB0_4:
	mov	x22, x0
	ldr	x0, [x21, #8]
	bl	_pci_disable_msi
LBB0_5:
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	__rtl_pci_interrupt,4,2         ; @_rtl_pci_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_COMP_INTR,4,2                  ; @COMP_INTR
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI Interrupt Mode!\n"

	.no_dead_strip	_rtl_pci_intr_mode_msi
.subsections_via_symbols
