	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehca_mmap_fw
_ehca_mmap_fw:                          ## @ehca_mmap_fw
	.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
	movq	(%rdi), %rbx
	subq	8(%rdi), %rbx
	movq	_EHCA_PAGESIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_ehca_gen_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rdi, %r15
	movq	%rdx, %r14
	movq	(%rsi), %r12
	movl	32(%rdi), %edi
	callq	_pgprot_noncached
	movl	%eax, 32(%r15)
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ehca_gen_dbg
	movq	_EHCA_PAGESHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %r12
	movl	8(%r15), %esi
	movl	32(%r15), %ecx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_remap_4k_pfn
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_ehca_gen_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	%r14, 24(%r15)
	incl	(%r14)
	movq	_vm_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHCA_PAGESIZE,8,3              ## @EHCA_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid vsize=%lx"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"vsize=%llx physical=%llx"

	.comm	_EHCA_PAGESHIFT,8,3             ## @EHCA_PAGESHIFT
L_.str.2:                               ## @.str.2
	.asciz	"remap_pfn_range() failed ret=%i"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vm_ops,4,2                     ## @vm_ops
	.no_dead_strip	_ehca_mmap_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehca_mmap_fw
_ehca_mmap_fw:                          ; @ehca_mmap_fw
	.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
	ldp	x8, x9, [x0]
Lloh0:
	adrp	x10, _EHCA_PAGESIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EHCA_PAGESIZE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	sub	x21, x8, x9
	cmp	x21, x10
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_ehca_gen_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x2
	mov	x20, x0
	ldr	x22, [x1]
	ldr	w0, [x0, #32]
	bl	_pgprot_noncached
	str	w0, [x20, #32]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_ehca_gen_dbg
	ldr	w1, [x20, #8]
Lloh9:
	adrp	x8, _EHCA_PAGESHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EHCA_PAGESHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	asr	x2, x22, x8
	ldr	w3, [x20, #32]
	mov	x0, x20
	bl	_remap_4k_pfn
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_ehca_gen_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh16:
	adrp	x8, _vm_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _vm_ops@GOTPAGEOFF]
	stp	x8, x19, [x20, #16]
LBB0_6:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EHCA_PAGESIZE,8,3              ; @EHCA_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid vsize=%lx"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"vsize=%llx physical=%llx"

	.comm	_EHCA_PAGESHIFT,8,3             ; @EHCA_PAGESHIFT
l_.str.2:                               ; @.str.2
	.asciz	"remap_pfn_range() failed ret=%i"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vm_ops,4,2                     ; @vm_ops
	.no_dead_strip	_ehca_mmap_fw
.subsections_via_symbols
