	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maybe_demote
_maybe_demote:                          ## @maybe_demote
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_curthread@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movl	16(%rax), %edi
	callq	_PSLOT
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	_MAC_LOMAC_FLAG_UPDATE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_lomac_dominate_single
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_mtx_unlock
	jmp	LBB0_10
LBB0_3:
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_lomac_copy_single
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_lomac_copy_range
	leaq	4(%r13), %rdi
	addq	$12, %rbx
	movq	%rbx, %rsi
	callq	_lomac_dominate_element
	movl	4(%r13), %ecx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	%ecx, (%rbx)
LBB0_5:
	movl	%ecx, 8(%r12)
	movl	(%r14), %eax
	orl	%eax, (%r12)
	movq	_curthread@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_thread_lock
	movq	_TDF_ASTPENDING@GOTPCREL(%rip), %rax
	movq	_TDF_MACPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rdi
	orl	%ecx, (%rdi)
	callq	_thread_unlock
	leaq	-136(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lomac_copy_single
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	_SBUF_AUTOEXTEND@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sbuf_new
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_lomac_to_string
	movq	%rbx, %rdi
	callq	_sbuf_finish
	movq	%rbx, %rdi
	callq	_sbuf_data
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sbuf_new
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_lomac_to_string
	movq	%rbx, %rdi
	callq	_sbuf_finish
	movq	%rbx, %rdi
	callq	_sbuf_data
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sbuf_new
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_lomac_to_string
	movq	%rbx, %rdi
	callq	_sbuf_finish
	movq	%rbx, %rdi
	callq	_sbuf_data
	movq	%rax, %r12
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%rax), %r13d
	movq	-112(%rbp), %r15                ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:
	movq	(%r14), %rax
	movq	8(%rax), %rdx
	leaq	-120(%rbp), %rsi
	movq	%r15, %rdi
	callq	_VOP_GETATTR
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r10d
	movl	4(%rbx), %ecx
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %r8d
	xorl	%eax, %eax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	callq	_log
	addq	$48, %rsp
	jmp	LBB0_9
LBB0_7:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r10d
	movl	4(%rbx), %ecx
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r9d
	movl	-120(%rbp), %r11d
	movq	(%r15), %rax
	movl	(%rax), %r15d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %r8d
	xorl	%eax, %eax
	pushq	%r15
	pushq	%r11
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	callq	_log
	addq	$64, %rsp
LBB0_9:
	leaq	-72(%rbp), %rdi
	callq	_sbuf_delete
	leaq	-64(%rbp), %rdi
	callq	_sbuf_delete
	leaq	-56(%rbp), %rdi
	callq	_sbuf_delete
LBB0_10:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_MAC_LOMAC_FLAG_UPDATE,4,2      ## @MAC_LOMAC_FLAG_UPDATE
	.comm	_TDF_ASTPENDING,4,2             ## @TDF_ASTPENDING
	.comm	_TDF_MACPEND,4,2                ## @TDF_MACPEND
	.comm	_SBUF_AUTOEXTEND,4,2            ## @SBUF_AUTOEXTEND
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LOMAC: level-%s subject p%dg%du%d:%s demoted to level %s after %s a level-%s %s (inode=%ju, mountpount=%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"LOMAC: level-%s subject p%dg%du%d:%s demoted to level %s after %s a level-%s %s\n"

	.no_dead_strip	_maybe_demote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maybe_demote
_maybe_demote:                          ; @maybe_demote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x4
	mov	x20, x3
	mov	x26, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x27, _curthread@GOTPAGE
Lloh1:
	ldr	x27, [x27, _curthread@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, #16]
	bl	_PSLOT
	mov	x23, x0
	ldr	x8, [x27]
	ldr	x28, [x8, #16]
	add	x25, x0, #16
	mov	x0, x25
	bl	_mtx_lock
	ldr	w8, [x23]
Lloh2:
	adrp	x19, _MAC_LOMAC_FLAG_UPDATE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _MAC_LOMAC_FLAG_UPDATE@GOTPAGEOFF]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x23
	bl	_lomac_dominate_single
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x25
	bl	_mtx_unlock
	b	LBB0_10
LBB0_3:
	str	x26, [sp, #40]                  ; 8-byte Folded Spill
	mov	x0, x23
	mov	w1, #16
	bl	_bzero
	mov	x0, x22
	mov	x1, x23
	bl	_lomac_copy_single
	mov	x0, x24
	mov	x1, x23
	bl	_lomac_copy_range
	add	x0, x22, #4
	add	x26, x23, #12
	mov	x1, x26
	bl	_lomac_dominate_element
	ldr	w8, [x22, #4]
	cbnz	w0, LBB0_5
; %bb.4:
	str	w8, [x26]
LBB0_5:
	str	w8, [x23, #8]
	ldr	w8, [x19]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	ldr	x0, [x27]
	bl	_thread_lock
Lloh4:
	adrp	x8, _TDF_ASTPENDING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TDF_ASTPENDING@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _TDF_MACPEND@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TDF_MACPEND@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x0, [x27]
	ldr	w9, [x0]
	orr	w8, w8, w9
	str	w8, [x0]
	bl	_thread_unlock
	add	x1, sp, #56
	mov	x0, x23
	bl	_lomac_copy_single
	mov	x0, x25
	bl	_mtx_unlock
Lloh10:
	adrp	x19, _SBUF_AUTOEXTEND@GOTPAGE
Lloh11:
	ldr	x19, [x19, _SBUF_AUTOEXTEND@GOTPAGEOFF]
	ldr	w3, [x19]
	add	x0, sp, #88
	mov	x1, #0
	mov	w2, #0
	bl	_sbuf_new
	add	x0, sp, #88
	mov	x1, x24
	bl	_lomac_to_string
	add	x0, sp, #88
	bl	_sbuf_finish
	add	x0, sp, #88
	bl	_sbuf_data
	mov	x24, x0
	ldr	w3, [x19]
	add	x0, sp, #80
	mov	x1, #0
	mov	w2, #0
	bl	_sbuf_new
	add	x0, sp, #80
	mov	x1, x23
	bl	_lomac_to_string
	add	x0, sp, #80
	bl	_sbuf_finish
	add	x0, sp, #80
	bl	_sbuf_data
	mov	x23, x0
	ldr	w3, [x19]
	add	x0, sp, #72
	mov	x1, #0
	mov	w2, #0
	bl	_sbuf_new
	add	x0, sp, #72
	mov	x1, x22
	bl	_lomac_to_string
	add	x0, sp, #72
	bl	_sbuf_finish
	add	x0, sp, #72
	bl	_sbuf_data
	mov	x25, x0
	ldr	x8, [x28, #8]
	ldr	w22, [x8]
	cbz	x21, LBB0_7
; %bb.6:
	ldr	x8, [x27]
	ldr	x2, [x8, #8]
	add	x1, sp, #48
	mov	x0, x21
	bl	_VOP_GETATTR
	cbz	x0, LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x27]
	ldr	x8, [x8, #8]
	ldr	w5, [x8]
	ldp	w6, w3, [x28]
	stp	x25, x20, [sp, #8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x27]
	ldr	x8, [x8, #8]
	ldr	w5, [x8]
	ldp	w6, w3, [x28]
	ldr	x8, [sp, #48]
	ldr	x9, [x21]
	ldr	w9, [x9]
	stp	x8, x9, [sp, #24]
	stp	x25, x20, [sp, #8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x2, x24
	mov	x4, x22
	mov	x7, x23
	bl	_log
	add	x0, sp, #88
	bl	_sbuf_delete
	add	x0, sp, #80
	bl	_sbuf_delete
	add	x0, sp, #72
	bl	_sbuf_delete
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_MAC_LOMAC_FLAG_UPDATE,4,2      ; @MAC_LOMAC_FLAG_UPDATE
	.comm	_TDF_ASTPENDING,4,2             ; @TDF_ASTPENDING
	.comm	_TDF_MACPEND,4,2                ; @TDF_MACPEND
	.comm	_SBUF_AUTOEXTEND,4,2            ; @SBUF_AUTOEXTEND
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LOMAC: level-%s subject p%dg%du%d:%s demoted to level %s after %s a level-%s %s (inode=%ju, mountpount=%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"LOMAC: level-%s subject p%dg%du%d:%s demoted to level %s after %s a level-%s %s\n"

	.no_dead_strip	_maybe_demote
.subsections_via_symbols
