	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_mmap_cdev                   ## -- Begin function vm_mmap_cdev
	.p2align	4, 0x90
_vm_mmap_cdev:                          ## @vm_mmap_cdev
	.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, %rbx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	32(%rbp), %r8
	movq	24(%rbp), %rsi
	movq	16(%rbp), %rax
	movq	_D_MMAP_ANON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	$0, (%r8)
	movq	$0, (%rsi)
	movq	_VM_PROT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_MAP_ANON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_2:
	movq	%r9, %r15
	movq	%rdi, %r14
	movl	(%rbx), %edi
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_5
## %bb.3:
	andl	%r12d, %edx
	je	LBB0_5
## %bb.4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_5:
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movq	_MAP_COPY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edi, %edx
	je	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_7:
	movq	_MAP_SHARED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %edx
	movq	%r8, %rcx
	movl	%r12d, %r8d
	callq	*8(%rax)
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.8:
	movq	_OBJT_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbp), %rax
	movq	(%rax), %r8
	movl	(%r14), %r9d
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_vm_pager_allocate
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	32(%rbp), %rcx
	movq	%rax, (%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_MMAP_ANON,4,2                ## @D_MMAP_ANON
	.comm	_VM_PROT_ALL,4,2                ## @VM_PROT_ALL
	.comm	_MAP_ANON,4,2                   ## @MAP_ANON
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_COPY,4,2                   ## @MAP_COPY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_OBJT_DEVICE,4,2                ## @OBJT_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_mmap_cdev                   ; -- Begin function vm_mmap_cdev
	.p2align	2
_vm_mmap_cdev:                          ; @vm_mmap_cdev
	.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	x21, x7
	mov	x19, x4
	ldr	x20, [x29, #16]
	ldr	w8, [x6]
Lloh0:
	adrp	x9, _D_MMAP_ANON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D_MMAP_ANON@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	str	xzr, [x20]
	str	xzr, [x21]
Lloh3:
	adrp	x8, _VM_PROT_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_PROT_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x3]
Lloh6:
	adrp	x8, _MAP_ANON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_ANON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_7
LBB0_2:
	mov	x23, x2
Lloh9:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
	ldr	w9, [x3]
Lloh11:
	ldr	w8, [x8]
	and	w9, w8, w9
	and	w8, w8, w2
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_5
; %bb.3:
	ldr	w26, [x19]
Lloh12:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MAP_COPY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAP_COPY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w26
	b.eq	LBB0_8
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _EACCES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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_8:
	mov	x22, x5
	mov	x24, x1
	mov	x25, x0
Lloh22:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh24:
	ldr	w27, [x8]
	ldr	x8, [x6, #8]
	mov	x0, x5
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	mov	x4, x23
	blr	x8
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.9:
Lloh28:
	adrp	x8, _OBJT_DEVICE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OBJT_DEVICE@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x4, [x21]
	ldr	w5, [x25]
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	bl	_vm_pager_allocate
	cbz	x0, LBB0_4
; %bb.10:
	mov	x8, x0
	mov	w0, #0
	orr	w9, w27, w26
	str	x8, [x20]
	str	w9, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_D_MMAP_ANON,4,2                ; @D_MMAP_ANON
	.comm	_VM_PROT_ALL,4,2                ; @VM_PROT_ALL
	.comm	_MAP_ANON,4,2                   ; @MAP_ANON
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_COPY,4,2                   ; @MAP_COPY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_OBJT_DEVICE,4,2                ; @OBJT_DEVICE
.subsections_via_symbols
