	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_mmap_entries_setup
_qp_mmap_entries_setup:                 ## @qp_mmap_entries_setup
	.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	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movslq	8(%r8), %rcx
	addq	(%rsi), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_EFA_MMAP_IO_NC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_mmap_entry_insert
	movq	%rax, (%r13)
	movq	_EFA_MMAP_INVALID@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r13)
	movslq	24(%r13), %rcx
	movq	%r14, %rdx
	movq	%r15, %r14
	movq	%rcx, %r15
	addq	8(%r12), %r15
	andl	%ecx, %eax
	movslq	%eax, %rdi
	addq	(%rdx), %rdi
	callq	_PAGE_ALIGN
	movq	_EFA_MMAP_IO_WC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r12, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%rbx, %r14
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_mmap_entry_insert
	movq	%rax, 16(%r13)
	movq	_EFA_MMAP_INVALID@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_1
## %bb.3:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r13)
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.4:
	movq	%r14, %r15
	movslq	40(%r13), %rcx
	addq	(%r12), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_EFA_MMAP_IO_NC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mmap_entry_insert
	movq	_EFA_MMAP_INVALID@GOTPCREL(%rip), %rcx
	movq	%rax, 32(%r13)
	cmpq	%rax, (%rcx)
	je	LBB0_1
## %bb.5:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 40(%r13)
	movl	8(%r15), %edi
	callq	_virt_to_phys
	movq	(%r15), %r8
	movq	_EFA_MMAP_DMA_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_mmap_entry_insert
	movq	%rax, 48(%r13)
	movq	_EFA_MMAP_INVALID@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r15), %rax
	movq	%rax, 56(%r13)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EFA_MMAP_IO_NC,4,2             ## @EFA_MMAP_IO_NC
	.comm	_EFA_MMAP_INVALID,8,3           ## @EFA_MMAP_INVALID
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_EFA_MMAP_IO_WC,4,2             ## @EFA_MMAP_IO_WC
	.comm	_EFA_MMAP_DMA_PAGE,4,2          ## @EFA_MMAP_DMA_PAGE
	.no_dead_strip	_qp_mmap_entries_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_mmap_entries_setup
_qp_mmap_entries_setup:                 ; @qp_mmap_entries_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldrsw	x9, [x4, #8]
	add	x3, x8, x9
Lloh0:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x4, [x26]
Lloh2:
	adrp	x27, _EFA_MMAP_IO_NC@GOTPAGE
Lloh3:
	ldr	x27, [x27, _EFA_MMAP_IO_NC@GOTPAGEOFF]
	ldr	w5, [x27]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_mmap_entry_insert
	str	x0, [x19]
Lloh4:
	adrp	x25, _EFA_MMAP_INVALID@GOTPAGE
Lloh5:
	ldr	x25, [x25, _EFA_MMAP_INVALID@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, x0
	b.eq	LBB0_5
; %bb.1:
Lloh6:
	adrp	x28, _PAGE_MASK@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PAGE_MASK@GOTPAGEOFF]
	ldr	w8, [x28]
	ldr	w9, [x19, #8]
	bic	w9, w9, w8
	str	w9, [x19, #8]
	ldr	x9, [x22, #8]
	ldrsw	x10, [x19, #24]
	add	x24, x9, x10
	ldr	x9, [x23]
	bic	w8, w10, w8
	add	x0, x9, w8, sxtw
	bl	_PAGE_ALIGN
	mov	x4, x0
Lloh8:
	adrp	x8, _EFA_MMAP_IO_WC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFA_MMAP_IO_WC@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	bl	_mmap_entry_insert
	str	x0, [x19, #16]
	ldr	x8, [x25]
	cmp	x8, x0
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x28]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x22]
	ldrsw	x9, [x19, #40]
	add	x3, x8, x9
	ldr	x4, [x26]
	ldr	w5, [x27]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_mmap_entry_insert
	str	x0, [x19, #32]
	ldr	x8, [x25]
	cmp	x8, x0
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x28]
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #40]
	ldr	w0, [x20, #8]
	bl	_virt_to_phys
	mov	x3, x0
	ldr	x4, [x20]
Lloh11:
	adrp	x8, _EFA_MMAP_DMA_PAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFA_MMAP_DMA_PAGE@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_mmap_entry_insert
	str	x0, [x19, #48]
	ldr	x8, [x25]
	cmp	x8, x0
	b.ne	LBB0_8
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	b	LBB0_6
LBB0_8:
	mov	w0, #0
	ldr	x8, [x20]
	str	x8, [x19, #56]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EFA_MMAP_IO_NC,4,2             ; @EFA_MMAP_IO_NC
	.comm	_EFA_MMAP_INVALID,8,3           ; @EFA_MMAP_INVALID
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_EFA_MMAP_IO_WC,4,2             ; @EFA_MMAP_IO_WC
	.comm	_EFA_MMAP_DMA_PAGE,4,2          ; @EFA_MMAP_DMA_PAGE
	.no_dead_strip	_qp_mmap_entries_setup
.subsections_via_symbols
