	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_msix_isr
_remove_msix_isr:                       ## @remove_msix_isr
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_MSIX_REGISTERED_SUCCESS@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx), %rdx
	cmpq	(%r15), %rdx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movl	8(%rax,%rbx), %edi
	movq	16(%rcx,%rbx), %rsi
	callq	_free_irq
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movq	16(%r14), %rdi
	callq	_kfree
	movq	8(%r14), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movl	4(%r14), %edi
	leaq	-36(%rbp), %rdx
	movl	$66, %esi
	callq	_pci_read_config_word
	movl	$65534, %edx                    ## imm = 0xFFFE
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	4(%r14), %edi
	movl	$66, %esi
	callq	_pci_write_config_word
	movl	4(%r14), %edi
	callq	_pci_disable_msix
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSIX_REGISTERED_SUCCESS,8,3    ## @MSIX_REGISTERED_SUCCESS
	.no_dead_strip	_remove_msix_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_msix_isr
_remove_msix_isr:                       ; @remove_msix_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	mov	x21, #0
Lloh0:
	adrp	x22, _MSIX_REGISTERED_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSIX_REGISTERED_SUCCESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x20, x20, #24
	cmp	x21, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x20]
	ldr	x11, [x22]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	ldr	w0, [x8, #8]
	add	x8, x9, x20
	ldr	x1, [x8, #16]
	bl	_free_irq
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_kfree
	stp	xzr, xzr, [x19, #8]
	ldr	w0, [x19, #4]
	add	x2, sp, #12
	mov	w1, #66
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	and	w2, w8, #0xfffe
	str	w2, [sp, #12]
	ldr	w0, [x19, #4]
	mov	w1, #66
	bl	_pci_write_config_word
	ldr	w0, [x19, #4]
	bl	_pci_disable_msix
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MSIX_REGISTERED_SUCCESS,8,3    ; @MSIX_REGISTERED_SUCCESS
	.no_dead_strip	_remove_msix_isr
.subsections_via_symbols
