	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s390_iommu_iova_to_phys
_s390_iommu_iova_to_phys:               ## @s390_iommu_iova_to_phys
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_s390_domain
	cmpq	%r14, (%rbx)
	jg	LBB0_1
## %bb.2:
	cmpq	%r14, 8(%rbx)
	jge	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_4:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_calc_rtx
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_calc_sx
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_calc_px
	movl	%eax, %r14d
	movq	(%r15), %rbx
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.5:
	movl	%r13d, %r13d
	movq	(%rbx,%r13,8), %rdi
	callq	_reg_entry_isvalid
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	(%rbx,%r13,8), %rdi
	callq	_get_rt_sto
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %rbx
	movl	%r12d, %r12d
	movq	(%rax,%r12,8), %rdi
	callq	_reg_entry_isvalid
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	(%rbx,%r12,8), %rdi
	callq	_get_st_pto
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, %r12
	movl	%r14d, %r14d
	movq	(%rax,%r14,8), %rdi
	callq	_pt_entry_isvalid
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	_ZPCI_PTE_ADDR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	(%r12,%r14,8), %rbx
	jmp	LBB0_17
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPCI_PTE_ADDR_MASK,8,3         ## @ZPCI_PTE_ADDR_MASK
	.no_dead_strip	_s390_iommu_iova_to_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s390_iommu_iova_to_phys
_s390_iommu_iova_to_phys:               ; @s390_iommu_iova_to_phys
	.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	x20, x1
	mov	x21, x0
	bl	_to_s390_domain
	ldr	x8, [x21]
	cmp	x8, x20
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.ge	LBB0_3
LBB0_2:
	mov	x20, #0
	b	LBB0_12
LBB0_3:
	mov	x19, x0
	mov	x0, x20
	bl	_calc_rtx
	mov	x22, x0
	mov	x0, x20
	bl	_calc_sx
	mov	x21, x0
	mov	x0, x20
	bl	_calc_px
	mov	x20, x0
	ldr	x23, [x19], #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbz	x23, LBB0_10
; %bb.4:
	ldr	x0, [x23, w22, uxtw #3]
	bl	_reg_entry_isvalid
	cbz	x0, LBB0_10
; %bb.5:
	mov	w8, w22
	ldr	x0, [x23, x8, lsl #3]
	bl	_get_rt_sto
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	ldr	x0, [x0, w21, uxtw #3]
	bl	_reg_entry_isvalid
	cbz	x0, LBB0_10
; %bb.7:
	mov	w8, w21
	ldr	x0, [x22, x8, lsl #3]
	bl	_get_st_pto
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	ldr	x0, [x0, w20, uxtw #3]
	bl	_pt_entry_isvalid
	cbz	x0, LBB0_10
; %bb.9:
	mov	w8, w20
	ldr	x8, [x21, x8, lsl #3]
Lloh0:
	adrp	x9, _ZPCI_PTE_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZPCI_PTE_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	and	x20, x9, x8
	b	LBB0_11
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPCI_PTE_ADDR_MASK,8,3         ; @ZPCI_PTE_ADDR_MASK
	.no_dead_strip	_s390_iommu_iova_to_phys
.subsections_via_symbols
