	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppr_notifier
_ppr_notifier:                          ## @ppr_notifier
	.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
	movq	%rdx, %r13
	movl	(%rdx), %r12d
	movl	4(%rdx), %ebx
	movl	%ebx, %edi
	callq	_PCI_BUS_NUM
	movzbl	%bl, %edx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_pci_get_domain_bus_and_slot
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$511, %r12d                     ## imm = 0x1FF
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r12
	movq	%rax, %rdi
	callq	_get_dev_data
	movq	%rax, %rbx
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_amd_iommu_rlookup_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %edi
	callq	_translation_pre_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	12(%r13), %esi
	movq	_PPR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_amd_iommu_complete_ppr
	jmp	LBB0_18
LBB0_5:
	movl	4(%r13), %edi
	callq	_get_device_state
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	%rax, %r15
	movl	12(%r13), %esi
	movq	%rax, %rdi
	callq	_get_pasid_state
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	$0, 16(%rbx)
	je	LBB0_9
LBB0_8:
	movq	(%r15), %rdi
	movl	12(%r13), %esi
	movq	_PPR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_amd_iommu_complete_ppr
LBB0_14:
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_17
## %bb.15:
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_put_pasid_state
LBB0_17:
	movq	%r15, %rdi
	callq	_put_device_state
	jmp	LBB0_18
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	shrl	$9, %r12d
	andl	$1, %r12d
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rax,%rcx,8)
LBB0_11:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movq	%r15, 40(%rax)
	movl	16(%r13), %eax
	movl	%eax, 32(%rbx)
	movq	%rcx, 24(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movl	%r12d, 4(%rbx)
	movl	12(%r13), %eax
	movl	%eax, 16(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rbx
	movq	_do_fault@GOTPCREL(%rip), %rax
	movq	%rcx, %r12
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	_iommu_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_queue_work
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rbx
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	movq	%rcx, %rbx
	movq	%rcx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_finish_pri_tag
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.comm	_amd_iommu_rlookup_table,8,3    ## @amd_iommu_rlookup_table
	.comm	_PPR_INVALID,4,2                ## @PPR_INVALID
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_do_fault,4,2                   ## @do_fault
	.comm	_iommu_wq,4,2                   ## @iommu_wq
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_ppr_notifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppr_notifier
_ppr_notifier:                          ; @ppr_notifier
	.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	x20, x2
	ldp	w25, w19, [x2]
	mov	x0, x19
	bl	_PCI_BUS_NUM
	mov	x1, x0
	and	w2, w19, #0xff
	mov	w0, #0
	bl	_pci_get_domain_bus_and_slot
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	and	x22, x25, #0x1ff
	sxtw	x24, w19
	bl	_get_dev_data
	mov	x23, x0
Lloh0:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _amd_iommu_rlookup_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _amd_iommu_rlookup_table@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_translation_pre_enabled
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x20, #12]
Lloh6:
	adrp	x8, _PPR_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPR_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x22
	bl	_amd_iommu_complete_ppr
	b	LBB0_12
LBB0_4:
	ldr	w0, [x20, #4]
	bl	_get_device_state
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
	ldr	w1, [x20, #12]
	bl	_get_pasid_state
	mov	x23, x0
Lloh9:
	adrp	x24, _NOTIFY_OK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _NOTIFY_OK@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_13
LBB0_7:
	ldr	x0, [x21]
	ldr	w1, [x20, #12]
Lloh11:
	adrp	x8, _PPR_INVALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PPR_INVALID@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x3, x22
	bl	_amd_iommu_complete_ppr
LBB0_8:
	ldr	w8, [x24]
	cmp	w19, w8
	ccmp	x23, #0, #4, ne
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_put_pasid_state
LBB0_10:
	mov	x0, x21
	bl	_put_device_state
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	mov	x0, x19
	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
LBB0_13:
	ubfx	w25, w25, #9, #1
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x23, #8]
	add	x8, x8, x22, lsl #3
	add	x0, x8, #4
	bl	_atomic_inc
	cbz	w25, LBB0_15
; %bb.14:
	ldr	x8, [x23, #8]
	lsl	x9, x22, #3
	mov	w10, #1
	str	w10, [x8, x9]
LBB0_15:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
Lloh17:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.16:
	str	x21, [x0, #40]
	ldr	w8, [x20, #16]
	str	w8, [x0, #32]
	str	x23, [x0, #24]
	stp	w22, w25, [x0]
	ldr	d0, [x20, #8]
	stur	d0, [x0, #12]
	add	x19, x0, #8
Lloh20:
	adrp	x8, _do_fault@GOTPAGE
Lloh21:
	ldr	x8, [x8, _do_fault@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
Lloh23:
	adrp	x8, _iommu_wq@GOTPAGE
Lloh24:
	ldr	x8, [x8, _iommu_wq@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_queue_work
	ldr	w19, [x24]
	b	LBB0_8
LBB0_17:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_finish_pri_tag
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.comm	_amd_iommu_rlookup_table,8,3    ; @amd_iommu_rlookup_table
	.comm	_PPR_INVALID,4,2                ; @PPR_INVALID
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_do_fault,4,2                   ; @do_fault
	.comm	_iommu_wq,4,2                   ; @iommu_wq
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_ppr_notifier
.subsections_via_symbols
