	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memmmap                        ## -- Begin function memmmap
	.p2align	4, 0x90
_memmmap:                               ## @memmmap
	.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	%r8, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_dev2unit
	movq	_CDEV_MINOR_MEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.1:
	movq	%r12, (%r15)
	movq	_mem_range_softc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.2:
	movq	8(%rax), %rax
	movq	_MDF_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rdx
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdi), %esi
	testl	%esi, %ecx
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax,%rdi), %rbx
	cmpq	%r12, %rbx
	jg	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	16(%rax,%rdi), %rbx
	cmpq	%r12, %rbx
	jle	LBB0_13
## %bb.6:
	movq	_MDF_ATTRMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	xorl	%eax, %eax
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_15
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_12:
	movq	_VM_MEMATTR_WRITE_THROUGH@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_16:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_VM_MEMATTR_WRITE_COMBINING@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_VM_MEMATTR_WRITE_BACK@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_11:
	movq	_VM_MEMATTR_UNCACHEABLE@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_CDEV_MINOR_MEM,8,3             ## @CDEV_MINOR_MEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_mem_range_softc,16,3           ## @mem_range_softc
	.comm	_MDF_ACTIVE,4,2                 ## @MDF_ACTIVE
	.comm	_MDF_ATTRMASK,4,2               ## @MDF_ATTRMASK
	.comm	_VM_MEMATTR_WRITE_BACK,4,2      ## @VM_MEMATTR_WRITE_BACK
	.comm	_VM_MEMATTR_WRITE_COMBINING,4,2 ## @VM_MEMATTR_WRITE_COMBINING
	.comm	_VM_MEMATTR_UNCACHEABLE,4,2     ## @VM_MEMATTR_UNCACHEABLE
	.comm	_VM_MEMATTR_WRITE_THROUGH,4,2   ## @VM_MEMATTR_WRITE_THROUGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memmmap                        ; -- Begin function memmmap
	.p2align	2
_memmmap:                               ; @memmmap
	.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	x19, x4
	mov	x21, x2
	mov	x20, x1
	bl	_dev2unit
Lloh0:
	adrp	x8, _CDEV_MINOR_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDEV_MINOR_MEM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	str	x20, [x21]
Lloh3:
	adrp	x9, _mem_range_softc@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mem_range_softc@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	ldr	x10, [x9, #8]
Lloh5:
	adrp	x9, _MDF_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MDF_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	x10, x10, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #24
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	tst	w9, w11
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x10]
	cmp	x12, x20
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x10, #8]
	add	x12, x13, x12
	cmp	x12, x20
	b.le	LBB0_3
; %bb.7:
Lloh8:
	adrp	x8, _MDF_ATTRMASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDF_ATTRMASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w11
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.8:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	mov	w0, #0
Lloh13:
	adrp	x8, _VM_MEMATTR_WRITE_THROUGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VM_MEMATTR_WRITE_THROUGH@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
Lloh15:
	adrp	x8, _EFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
LBB0_13:
	mov	w0, #0
Lloh18:
	adrp	x8, _VM_MEMATTR_WRITE_COMBINING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VM_MEMATTR_WRITE_COMBINING@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	mov	w0, #0
Lloh20:
	adrp	x8, _VM_MEMATTR_WRITE_BACK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VM_MEMATTR_WRITE_BACK@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
Lloh22:
	adrp	x8, _VM_MEMATTR_UNCACHEABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VM_MEMATTR_UNCACHEABLE@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_15-LBB0_9)>>2
                                        ; -- End function
	.comm	_CDEV_MINOR_MEM,8,3             ; @CDEV_MINOR_MEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_mem_range_softc,16,3           ; @mem_range_softc
	.comm	_MDF_ACTIVE,4,2                 ; @MDF_ACTIVE
	.comm	_MDF_ATTRMASK,4,2               ; @MDF_ATTRMASK
	.comm	_VM_MEMATTR_WRITE_BACK,4,2      ; @VM_MEMATTR_WRITE_BACK
	.comm	_VM_MEMATTR_WRITE_COMBINING,4,2 ; @VM_MEMATTR_WRITE_COMBINING
	.comm	_VM_MEMATTR_UNCACHEABLE,4,2     ; @VM_MEMATTR_UNCACHEABLE
	.comm	_VM_MEMATTR_WRITE_THROUGH,4,2   ; @VM_MEMATTR_WRITE_THROUGH
.subsections_via_symbols
