	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lomac_vnode_check_mmap
_lomac_vnode_check_mmap:                ## @lomac_vnode_check_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	_lomac_enabled@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	callq	_SLOT
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_SLOT
	movq	%rax, %rbx
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_lomac_subject_dominate
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_lomac_dominate_single
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_maybe_demote                   ## TAILCALL
LBB0_4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lomac_enabled,4,2              ## @lomac_enabled
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mapping"

L_.str.1:                               ## @.str.1
	.asciz	"file"

	.no_dead_strip	_lomac_vnode_check_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lomac_vnode_check_mmap
_lomac_vnode_check_mmap:                ; @lomac_vnode_check_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
Lloh0:
	adrp	x8, _lomac_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lomac_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	ldr	x0, [x0]
	bl	_SLOT
	mov	x20, x0
	mov	x0, x22
	bl	_SLOT
	mov	x22, x0
Lloh3:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_lomac_subject_dominate
	cbz	w0, LBB0_9
LBB0_4:
Lloh9:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VM_PROT_EXECUTE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x20
	bl	_lomac_dominate_single
	cbz	w0, LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x4, 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	_maybe_demote
LBB0_9:
Lloh19:
	adrp	x8, _EACCES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_lomac_enabled,4,2              ; @lomac_enabled
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mapping"

l_.str.1:                               ; @.str.1
	.asciz	"file"

	.no_dead_strip	_lomac_vnode_check_mmap
.subsections_via_symbols
