	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_mmap                       ## -- Begin function efa_mmap
	.p2align	4, 0x90
_efa_mmap:                              ## @efa_mmap
	.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, %r13
	movq	%rdi, %rbx
	callq	_to_eucontext
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_to_edev
	movq	%rax, %r15
	movl	(%r13), %eax
	movl	4(%r13), %edx
	movl	%eax, %ebx
	subl	%edx, %ebx
	movl	8(%r13), %r12d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%eax, %ecx
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	12(%r13), %r8d
	testl	%edx, %edx
	je	LBB0_1
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_VM_SHARED@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_VM_EXEC@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___efa_mmap                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start %#lx, end %#lx, length = %#llx, key = %#llx\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VM_SHARED,4,2                  ## @VM_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"length[%#llx] is not page size aligned[%#lx] or VM_SHARED is not set [%#lx]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_EXEC,4,2                    ## @VM_EXEC
L_.str.2:                               ## @.str.2
	.asciz	"Mapping executable pages is not permitted\n"

	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_mmap                       ; -- Begin function efa_mmap
	.p2align	2
_efa_mmap:                              ; @efa_mmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	bl	_to_eucontext
	mov	x21, x0
	ldr	w0, [x20]
	bl	_to_edev
	mov	x20, x0
	ldp	w8, w9, [x19]
	sub	w22, w8, w9
	ldr	w10, [x19, #8]
Lloh0:
	adrp	x11, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	lsl	w23, w10, w11
	stp	x9, x8, [sp]
	mov	x8, x22
	stp	x8, x23, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ibdev_dbg
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sdiv	w9, w22, w8
	msub	w10, w9, w8, w22
	ldr	w9, [x19, #12]
	cbz	w10, LBB0_3
LBB0_1:
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ibdev_dbg
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
Lloh12:
	adrp	x10, _VM_SHARED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VM_SHARED@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_1
; %bb.4:
Lloh15:
	adrp	x8, _VM_EXEC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VM_EXEC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ibdev_dbg
Lloh20:
	adrp	x8, _EPERM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_2
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	___efa_mmap
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start %#lx, end %#lx, length = %#llx, key = %#llx\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VM_SHARED,4,2                  ; @VM_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"length[%#llx] is not page size aligned[%#lx] or VM_SHARED is not set [%#lx]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_EXEC,4,2                    ; @VM_EXEC
l_.str.2:                               ; @.str.2
	.asciz	"Mapping executable pages is not permitted\n"

	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
