	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppt_teardown_msix
_ppt_teardown_msix:                     ## @ppt_teardown_msix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ppt_teardown_msix_intr
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_4:
	movl	48(%r14), %edi
	movq	_M_PPTMSIX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_free
	movl	44(%r14), %edi
	movl	(%rbx), %esi
	callq	_free
	movl	40(%r14), %edi
	movl	(%rbx), %esi
	callq	_free
	movl	56(%r14), %edi
	callq	_pci_release_msi
	movq	32(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movl	56(%r14), %edi
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r14), %rdx
	callq	_bus_release_resource
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
LBB0_6:
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movl	56(%r14), %edi
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rdx
	callq	_bus_release_resource
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
LBB0_8:
	movl	$0, (%r14)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PPTMSIX,4,2                  ## @M_PPTMSIX
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.no_dead_strip	_ppt_teardown_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppt_teardown_msix
_ppt_teardown_msix:                     ; @ppt_teardown_msix
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ppt_teardown_msix_intr
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x19, #48]
Lloh0:
	adrp	x20, _M_PPTMSIX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _M_PPTMSIX@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_free
	ldr	w0, [x19, #44]
	ldr	w1, [x20]
	bl	_free
	ldr	w0, [x19, #40]
	ldr	w1, [x20]
	bl	_free
	ldr	w0, [x19, #56]
	bl	_pci_release_msi
	ldr	x3, [x19, #32]
Lloh2:
	adrp	x20, _SYS_RES_MEMORY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SYS_RES_MEMORY@GOTPAGEOFF]
	cbz	x3, LBB0_6
; %bb.5:
	ldr	w0, [x19, #56]
	ldr	w1, [x20]
	ldr	x2, [x19, #24]
	bl	_bus_release_resource
	stp	xzr, xzr, [x19, #24]
LBB0_6:
	ldr	x3, [x19, #16]
	cbz	x3, LBB0_8
; %bb.7:
	ldr	w0, [x19, #56]
	ldr	w1, [x20]
	ldr	x2, [x19, #8]
	bl	_bus_release_resource
	stp	xzr, xzr, [x19, #8]
LBB0_8:
	str	wzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PPTMSIX,4,2                  ; @M_PPTMSIX
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.no_dead_strip	_ppt_teardown_msix
.subsections_via_symbols
