	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_free_irq
_nv_free_irq:                           ## @nv_free_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_get_nvpriv
	movq	%rax, %r13
	movl	(%rax), %eax
	movq	_NV_MSI_X_ENABLED@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.1:
	movq	_NV_MSI_X_VECTORS_MASK@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_free_irq
	incq	%rbx
	movl	(%r12), %eax
	andl	(%r13), %eax
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	8(%r13), %rdi
	callq	_pci_disable_msix
	jmp	LBB0_7
LBB0_5:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	_NV_MSI_ENABLED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.6:
	movq	8(%r13), %rdi
	callq	_pci_disable_msi
LBB0_7:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%r13)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MSI_X_ENABLED,4,2           ## @NV_MSI_X_ENABLED
	.comm	_NV_MSI_X_VECTORS_MASK,4,2      ## @NV_MSI_X_VECTORS_MASK
	.comm	_NV_MSI_ENABLED,4,2             ## @NV_MSI_ENABLED
	.no_dead_strip	_nv_free_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_free_irq
_nv_free_irq:                           ; @nv_free_irq
	.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	_get_nvpriv
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NV_MSI_X_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_MSI_X_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x21, _NV_MSI_X_VECTORS_MASK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NV_MSI_X_VECTORS_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x22, lsl #2]
	mov	x1, x20
	bl	_free_irq
	add	x22, x22, #1
	ldr	w8, [x19]
	ldr	w9, [x21]
	and	w8, w9, w8
	cmp	x22, w8, sxtw
	b.lt	LBB0_3
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_pci_disable_msix
Lloh5:
	adrp	x8, _NV_MSI_X_ENABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NV_MSI_X_ENABLED@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _NV_MSI_ENABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NV_MSI_ENABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_pci_disable_msi
Lloh10:
	adrp	x8, _NV_MSI_ENABLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NV_MSI_ENABLED@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MSI_X_ENABLED,4,2           ; @NV_MSI_X_ENABLED
	.comm	_NV_MSI_X_VECTORS_MASK,4,2      ; @NV_MSI_X_VECTORS_MASK
	.comm	_NV_MSI_ENABLED,4,2             ; @NV_MSI_ENABLED
	.no_dead_strip	_nv_free_irq
.subsections_via_symbols
