	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sel_mmap_policy                ## -- Begin function sel_mmap_policy
	.p2align	4, 0x90
_sel_mmap_policy:                       ## @sel_mmap_policy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movq	_VM_SHARED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_VM_MAYWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rsi)
	movq	_VM_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_VM_RESERVED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rsi)
	movq	_sel_mmap_policy_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_SHARED,4,2                  ## @VM_SHARED
	.comm	_VM_MAYWRITE,4,2                ## @VM_MAYWRITE
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_VM_RESERVED,4,2                ## @VM_RESERVED
	.comm	_sel_mmap_policy_ops,4,2        ## @sel_mmap_policy_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sel_mmap_policy                ; -- Begin function sel_mmap_policy
	.p2align	2
_sel_mmap_policy:                       ; @sel_mmap_policy
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _VM_SHARED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VM_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _VM_MAYWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_MAYWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x1]
Lloh6:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _EACCES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
	mov	w0, #0
Lloh12:
	adrp	x9, _VM_RESERVED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VM_RESERVED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x1]
Lloh15:
	adrp	x8, _sel_mmap_policy_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sel_mmap_policy_ops@GOTPAGEOFF]
	str	x8, [x1, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_SHARED,4,2                  ; @VM_SHARED
	.comm	_VM_MAYWRITE,4,2                ; @VM_MAYWRITE
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_VM_RESERVED,4,2                ; @VM_RESERVED
	.comm	_sel_mmap_policy_ops,4,2        ; @sel_mmap_policy_ops
.subsections_via_symbols
