	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pasid_setup_pass_through ## -- Begin function intel_pasid_setup_pass_through
	.p2align	4, 0x90
_intel_pasid_setup_pass_through:        ## @intel_pasid_setup_pass_through
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rdi, %r12
	movq	_FLPT_DEFAULT_DID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdx, %rdi
	movl	%ecx, %esi
	callq	_intel_pasid_get_entry
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pasid_clear_entry
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pasid_set_domain_id
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	callq	_pasid_set_address_width
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_pasid_set_translation_type
	movq	%rbx, %rdi
	callq	_pasid_set_fault_enable
	movl	4(%r12), %edi
	callq	_ecap_smpwc
	xorl	%esi, %esi
	testl	%eax, %eax
	setne	%sil
	movq	%rbx, %rdi
	callq	_pasid_set_page_snoop
	movq	%rbx, %rdi
	callq	_pasid_set_sre
	movq	%rbx, %rdi
	callq	_pasid_set_present
	movl	4(%r12), %edi
	callq	_ecap_coherent
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_clflush_cache_range
LBB0_4:
	movl	(%r12), %edi
	callq	_cap_caching_mode
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_pasid_cache_invalidation_with_pasid
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_iotlb_invalidation_with_pasid
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_iommu_flush_write_buffer
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLPT_DEFAULT_DID,4,2           ## @FLPT_DEFAULT_DID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get pasid entry of PASID %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pasid_setup_pass_through ; -- Begin function intel_pasid_setup_pass_through
	.p2align	2
_intel_pasid_setup_pass_through:        ; @intel_pasid_setup_pass_through
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _FLPT_DEFAULT_DID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLPT_DEFAULT_DID@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x2
	mov	x1, x3
	bl	_intel_pasid_get_entry
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	bl	_pasid_clear_entry
	mov	x0, x22
	mov	x1, x21
	bl	_pasid_set_domain_id
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_pasid_set_address_width
	mov	x0, x22
	mov	w1, #4
	bl	_pasid_set_translation_type
	mov	x0, x22
	bl	_pasid_set_fault_enable
	ldr	w0, [x20, #4]
	bl	_ecap_smpwc
	cmp	w0, #0
	cset	w1, ne
	mov	x0, x22
	bl	_pasid_set_page_snoop
	mov	x0, x22
	bl	_pasid_set_sre
	mov	x0, x22
	bl	_pasid_set_present
	ldr	w0, [x20, #4]
	bl	_ecap_coherent
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	w1, #4
	bl	_clflush_cache_range
LBB0_3:
	ldr	w0, [x20]
	bl	_cap_caching_mode
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_pasid_cache_invalidation_with_pasid
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_iotlb_invalidation_with_pasid
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_iommu_flush_write_buffer
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FLPT_DEFAULT_DID,4,2           ; @FLPT_DEFAULT_DID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get pasid entry of PASID %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
