	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s390_iommu_map
_s390_iommu_map:                        ## @s390_iommu_map
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_to_s390_domain
	movq	_IOMMU_READ@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_ZPCI_PTE_VALID@GOTPCREL(%rip), %rcx
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rdx
	xorl	%r8d, %r8d
	andl	(%rdx), %ebx
	jne	LBB0_3
## %bb.2:
	movq	_ZPCI_TABLE_PROTECTED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
LBB0_3:
	orl	(%rcx), %r8d
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s390_iommu_update_trans        ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPCI_PTE_VALID,4,2             ## @ZPCI_PTE_VALID
	.comm	_IOMMU_READ,4,2                 ## @IOMMU_READ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_ZPCI_TABLE_PROTECTED,4,2       ## @ZPCI_TABLE_PROTECTED
	.no_dead_strip	_s390_iommu_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s390_iommu_map
_s390_iommu_map:                        ; @s390_iommu_map
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	bl	_to_s390_domain
Lloh0:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ZPCI_PTE_VALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZPCI_PTE_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IOMMU_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IOMMU_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ZPCI_TABLE_PROTECTED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ZPCI_TABLE_PROTECTED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w22
	csel	w9, w10, wzr, eq
	orr	w4, w9, w8
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_s390_iommu_update_trans
LBB0_2:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPCI_PTE_VALID,4,2             ; @ZPCI_PTE_VALID
	.comm	_IOMMU_READ,4,2                 ; @IOMMU_READ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_ZPCI_TABLE_PROTECTED,4,2       ; @ZPCI_TABLE_PROTECTED
	.no_dead_strip	_s390_iommu_map
.subsections_via_symbols
