	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_free_intr_mem
_iflib_free_intr_mem:                   ## @iflib_free_intr_mem
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_IFLIB_INTR_MSIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_iflib_irq_free
	movq	16(%rbx), %rax
LBB0_2:
	movq	_IFLIB_INTR_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_pci_release_msi
LBB0_4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %r14d
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_rman_get_rid
	movq	(%rbx), %rcx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_bus_release_resource
	movq	$0, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLIB_INTR_MSIX,8,3            ## @IFLIB_INTR_MSIX
	.comm	_IFLIB_INTR_LEGACY,8,3          ## @IFLIB_INTR_LEGACY
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.no_dead_strip	_iflib_free_intr_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_free_intr_mem
_iflib_free_intr_mem:                   ; @iflib_free_intr_mem
	.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, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _IFLIB_INTR_MSIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFLIB_INTR_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	add	x1, x19, #24
	mov	x0, x19
	bl	_iflib_irq_free
	ldr	x8, [x19, #16]
LBB0_2:
Lloh3:
	adrp	x9, _IFLIB_INTR_LEGACY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFLIB_INTR_LEGACY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_pci_release_msi
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w20, [x19, #8]
Lloh6:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	bl	_rman_get_rid
	mov	x2, x0
	ldr	x3, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_bus_release_resource
	str	xzr, [x19]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLIB_INTR_MSIX,8,3            ; @IFLIB_INTR_MSIX
	.comm	_IFLIB_INTR_LEGACY,8,3          ; @IFLIB_INTR_LEGACY
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.no_dead_strip	_iflib_free_intr_mem
.subsections_via_symbols
