	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sel_mmap_handle_status
_sel_mmap_handle_status:                ## @sel_mmap_handle_status
	.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	%rsi, %rbx
	movq	(%rsi), %r14
	subq	8(%rsi), %r14
	movq	(%rdi), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_BUG_ON
	cmpq	$0, 16(%rbx)
	jg	LBB0_2
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_2
## %bb.4:
	movl	24(%rbx), %eax
	movq	_VM_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_VM_MAYWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 24(%rbx)
	movq	8(%rbx), %r12
	movq	%r15, %rdi
	callq	_page_to_pfn
	movl	28(%rbx), %r8d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_remap_pfn_range                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_VM_MAYWRITE,4,2                ## @VM_MAYWRITE
	.no_dead_strip	_sel_mmap_handle_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sel_mmap_handle_status
_sel_mmap_handle_status:                ; @sel_mmap_handle_status
	.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, x1
	ldr	x21, [x0]
	ldp	x8, x9, [x1]
	sub	x20, x8, x9
	cmp	x21, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x20, x9, #0, le
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w8, [x19, #24]
Lloh5:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	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_5:
Lloh10:
	adrp	x9, _VM_MAYWRITE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VM_MAYWRITE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19, #24]
	ldr	x22, [x19, #8]
	mov	x0, x21
	bl	_page_to_pfn
	mov	x2, x0
	ldr	w4, [x19, #28]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	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
	b	_remap_pfn_range
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_VM_MAYWRITE,4,2                ; @VM_MAYWRITE
	.no_dead_strip	_sel_mmap_handle_status
.subsections_via_symbols
