	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmap_piobufs
_mmap_piobufs:                          ## @mmap_piobufs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %edx
	movq	%rsi, %rcx
	movl	(%rdi), %eax
	movl	4(%rdi), %esi
	subl	%esi, %eax
	imull	(%rcx), %r8d
	cmpl	%r8d, %eax
	jbe	LBB0_2
## %bb.1:
	movq	8(%rcx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	addl	4(%rcx), %edx
	movq	_VM_MAYREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	8(%rdi), %ecx
	movq	_VM_DONTCOPY@GOTPCREL(%rip), %r8
	movq	_VM_DONTEXPAND@GOTPCREL(%rip), %r9
	orl	(%r8), %ecx
	orl	(%r9), %ecx
	movl	%ecx, 8(%rdi)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rdx
	movl	12(%rdi), %r8d
	movl	%eax, %ecx
	popq	%rbp
	jmp	_io_remap_pfn_range             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAIL mmap piobufs: reqlen %lx > PAGE\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_MAYREAD,4,2                 ## @VM_MAYREAD
	.comm	_VM_DONTCOPY,4,2                ## @VM_DONTCOPY
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	__PAGE_GUARDED,4,2              ## @_PAGE_GUARDED
	.comm	__PAGE_NO_CACHE,4,2             ## @_PAGE_NO_CACHE
	.comm	__PAGE_WRITETHRU,4,2            ## @_PAGE_WRITETHRU
	.no_dead_strip	_mmap_piobufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmap_piobufs
_mmap_piobufs:                          ; @mmap_piobufs
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x9, x1
	ldp	w8, w1, [x0]
	ldr	w10, [x9]
	mul	w10, w10, w4
	sub	w8, w8, w1
	cmp	w8, w10
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x9, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_info
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w9, [x9, #4]
	add	w9, w9, w3
Lloh5:
	adrp	x10, _VM_MAYREAD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VM_MAYREAD@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	ldp	w11, w4, [x0, #8]
	bic	w10, w11, w10
Lloh8:
	adrp	x11, _VM_DONTCOPY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _VM_DONTCOPY@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh11:
	adrp	x11, _VM_DONTEXPAND@GOTPAGE
Lloh12:
	ldr	x11, [x11, _VM_DONTEXPAND@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x0, #8]
Lloh14:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	lsr	x2, x9, x10
	mov	x3, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_io_remap_pfn_range
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAIL mmap piobufs: reqlen %lx > PAGE\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_MAYREAD,4,2                 ; @VM_MAYREAD
	.comm	_VM_DONTCOPY,4,2                ; @VM_DONTCOPY
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	__PAGE_GUARDED,4,2              ; @_PAGE_GUARDED
	.comm	__PAGE_NO_CACHE,4,2             ; @_PAGE_NO_CACHE
	.comm	__PAGE_WRITETHRU,4,2            ; @_PAGE_WRITETHRU
	.no_dead_strip	_mmap_piobufs
.subsections_via_symbols
