	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppt_teardown_msi
_ppt_teardown_msi:                      ## @ppt_teardown_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	%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
	cmpl	$0, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r12
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	8(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %r14d
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %r15
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r12), %edi
	movq	%r15, %rsi
	callq	_bus_teardown_intr
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r14
	movl	24(%r12), %edi
	movl	(%r13), %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_bus_release_resource
	jmp	LBB0_7
LBB0_8:
	cmpl	$1, 4(%r12)
	jne	LBB0_10
## %bb.9:
	movl	24(%r12), %edi
	callq	_pci_release_msi
LBB0_10:
	movl	$0, (%r12)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.no_dead_strip	_ppt_teardown_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppt_teardown_msi
_ppt_teardown_msi:                      ; @ppt_teardown_msi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x22, _SYS_RES_IRQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SYS_RES_IRQ@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	str	xzr, [x8, x23]
	ldr	x8, [x19, #8]
	str	xzr, [x8, x23]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x19, #4]
	lsl	x23, x21, #3
	ldp	x9, x8, [x19, #8]
	ldr	x20, [x8, x23]
	ldr	x2, [x9, x23]
	cbz	x2, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #24]
	mov	x1, x20
	bl	_bus_teardown_intr
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, x21, x24
	ldr	w0, [x19, #24]
	ldr	w1, [x22]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	bl	_bus_release_resource
	b	LBB0_3
LBB0_8:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x19, #24]
	bl	_pci_release_msi
LBB0_10:
	str	wzr, [x19]
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.no_dead_strip	_ppt_teardown_msi
.subsections_via_symbols
