	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_file_mmap
_selinux_file_mmap:                     ## @selinux_file_mmap
	.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	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_current_sid
	movq	_CONFIG_LSM_MMAP_MIN_ADDR@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	jbe	LBB0_2
## %bb.1:
	movq	_SECCLASS_MEMPROTECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MEMPROTECT__MMAP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_4
LBB0_2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_cap_file_mmap
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_selinux_checkreqprot@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	cmoveq	%r12, %r15
	movq	_MAP_TYPE@GOTPCREL(%rip), %rax
	andq	(%rax), %r13
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpq	(%rax), %r13
	sete	%dl
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_file_map_prot_check            ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_LSM_MMAP_MIN_ADDR,8,3   ## @CONFIG_LSM_MMAP_MIN_ADDR
	.comm	_SECCLASS_MEMPROTECT,4,2        ## @SECCLASS_MEMPROTECT
	.comm	_MEMPROTECT__MMAP_ZERO,4,2      ## @MEMPROTECT__MMAP_ZERO
	.comm	_selinux_checkreqprot,8,3       ## @selinux_checkreqprot
	.comm	_MAP_TYPE,8,3                   ## @MAP_TYPE
	.comm	_MAP_SHARED,8,3                 ## @MAP_SHARED
	.no_dead_strip	_selinux_file_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_file_mmap
_selinux_file_mmap:                     ; @selinux_file_mmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_current_sid
Lloh0:
	adrp	x8, _CONFIG_LSM_MMAP_MIN_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_LSM_MMAP_MIN_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x24
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SECCLASS_MEMPROTECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SECCLASS_MEMPROTECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MEMPROTECT__MMAP_ZERO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEMPROTECT__MMAP_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, x0
	mov	x4, #0
	bl	_avc_has_perm
	cbnz	w0, LBB0_5
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x24
	mov	x5, x23
	bl	_cap_file_mmap
	cbnz	x23, LBB0_5
; %bb.3:
	cbnz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _selinux_checkreqprot@GOTPAGE
Lloh10:
	ldr	x8, [x8, _selinux_checkreqprot@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x1, x21, x22, eq
Lloh12:
	adrp	x8, _MAP_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAP_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	and	x8, x8, x20
Lloh15:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_file_map_prot_check
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_LSM_MMAP_MIN_ADDR,8,3   ; @CONFIG_LSM_MMAP_MIN_ADDR
	.comm	_SECCLASS_MEMPROTECT,4,2        ; @SECCLASS_MEMPROTECT
	.comm	_MEMPROTECT__MMAP_ZERO,4,2      ; @MEMPROTECT__MMAP_ZERO
	.comm	_selinux_checkreqprot,8,3       ; @selinux_checkreqprot
	.comm	_MAP_TYPE,8,3                   ; @MAP_TYPE
	.comm	_MAP_SHARED,8,3                 ; @MAP_SHARED
	.no_dead_strip	_selinux_file_mmap
.subsections_via_symbols
