	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_report_device_fault      ## -- Begin function iommu_report_device_fault
	.p2align	4, 0x90
_iommu_report_device_fault:             ## @iommu_report_device_fault
	.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
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	%rsi, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%r15), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.4:
	movq	8(%rbx), %rax
	movq	_IOMMU_FAULT_PAGE_REQ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_12
## %bb.5:
	movq	_IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_12
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	%rax, %r12
	leaq	8(%r14), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	leaq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	(%r14), %rcx
	jmp	LBB0_13
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	addq	$8, %rbx
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	*%rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_kfree
LBB0_16:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IOMMU_FAULT_PAGE_REQ,8,3       ## @IOMMU_FAULT_PAGE_REQ
	.comm	_IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE,4,2 ## @IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_report_device_fault      ; -- Begin function iommu_report_device_fault
	.p2align	2
_iommu_report_device_fault:             ; @iommu_report_device_fault
	.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
	cbz	x1, LBB0_8
; %bb.1:
	ldr	x19, [x0]
	cbz	x19, LBB0_8
; %bb.2:
	mov	x21, x1
	mov	x0, x19
	bl	_mutex_lock
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_9
; %bb.3:
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.4:
	mov	x20, x21
	ldr	x9, [x20, #8]!
Lloh0:
	adrp	x10, _IOMMU_FAULT_PAGE_REQ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IOMMU_FAULT_PAGE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.5:
	ldr	w9, [x21, #16]
Lloh3:
	adrp	x10, _IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.6:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #24
	bl	_kmemdup
	cbz	x0, LBB0_16
; %bb.7:
	mov	x21, x0
	add	x22, x23, #8
	mov	x0, x22
	bl	_mutex_lock
	add	x1, x23, #16
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x8, [x23]
	b	LBB0_12
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_11:
	mov	x21, #0
LBB0_12:
	ldr	w1, [x23, #12]
	mov	x0, x20
	blr	x8
	mov	x20, x0
	cmp	w0, #0
	ccmp	x21, #0, #4, ne
	b.eq	LBB0_14
; %bb.13:
	add	x22, x23, #8
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x21
	bl	_list_del
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x21
	bl	_kfree
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_15:
	mov	x0, x20
	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
LBB0_16:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IOMMU_FAULT_PAGE_REQ,8,3       ; @IOMMU_FAULT_PAGE_REQ
	.comm	_IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE,4,2 ; @IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
