	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_invalid_ppr_cb
_iommu_invalid_ppr_cb:                  ## @iommu_invalid_ppr_cb
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_kfd_device@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rdi), %edi
	callq	_PCI_BUS_NUM
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_PCI_SLOT
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_PCI_FUNC
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %r8d
	movl	%r12d, %r9d
	pushq	%r15
	pushq	%r14
	callq	_dev_warn_ratelimited
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_kfd_device_by_pci_dev
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PPR_FAULT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%r15d, %ecx
	movq	_PPR_FAULT_EXEC@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	callq	_kfd_signal_iommu_event
LBB0_2:
	movq	_AMD_IOMMU_INV_PRI_RSP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kfd_device,4,2                 ## @kfd_device
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid PPR device %x:%x.%x pasid %d address 0x%lX flags 0x%X"

	.comm	_PPR_FAULT_WRITE,4,2            ## @PPR_FAULT_WRITE
	.comm	_PPR_FAULT_EXEC,4,2             ## @PPR_FAULT_EXEC
	.comm	_AMD_IOMMU_INV_PRI_RSP_INVALID,4,2 ## @AMD_IOMMU_INV_PRI_RSP_INVALID
	.no_dead_strip	_iommu_invalid_ppr_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_invalid_ppr_cb
_iommu_invalid_ppr_cb:                  ; @iommu_invalid_ppr_cb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _kfd_device@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kfd_device@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w0, [x0]
	bl	_PCI_BUS_NUM
	mov	x24, x0
	ldr	w0, [x22]
	bl	_PCI_SLOT
	mov	x25, x0
	ldr	w0, [x22]
	bl	_PCI_FUNC
	mov	x4, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x3, x25
	mov	x5, x20
	mov	x6, x19
	mov	x7, x21
	bl	_dev_warn_ratelimited
	mov	x0, x22
	bl	_kfd_device_by_pci_dev
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PPR_FAULT_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PPR_FAULT_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w3, w8, w21
Lloh8:
	adrp	x8, _PPR_FAULT_EXEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PPR_FAULT_EXEC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w4, w8, w21
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_kfd_signal_iommu_event
LBB0_2:
Lloh11:
	adrp	x8, _AMD_IOMMU_INV_PRI_RSP_INVALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AMD_IOMMU_INV_PRI_RSP_INVALID@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_kfd_device,4,2                 ; @kfd_device
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid PPR device %x:%x.%x pasid %d address 0x%lX flags 0x%X"

	.comm	_PPR_FAULT_WRITE,4,2            ; @PPR_FAULT_WRITE
	.comm	_PPR_FAULT_EXEC,4,2             ; @PPR_FAULT_EXEC
	.comm	_AMD_IOMMU_INV_PRI_RSP_INVALID,4,2 ; @AMD_IOMMU_INV_PRI_RSP_INVALID
	.no_dead_strip	_iommu_invalid_ppr_cb
.subsections_via_symbols
