	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_veriexec_metadata_unmounted ## -- Begin function mac_veriexec_metadata_unmounted
	.p2align	4, 0x90
_mac_veriexec_metadata_unmounted:       ## @mac_veriexec_metadata_unmounted
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_ve_mutex@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_veriexec_dev_head@GOTPCREL(%rip), %rsi
	movl	%r14d, %edi
	callq	_free_veriexec_dev
	movq	_ENOENT@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	je	LBB0_3
## %bb.2:
	movq	_ve_mutex@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	jmp	LBB0_4
LBB0_3:
	movq	_veriexec_file_dev_head@GOTPCREL(%rip), %rsi
	movl	%r14d, %edi
	callq	_free_veriexec_dev
	movl	%eax, %r14d
	movq	_ve_mutex@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	xorl	%ebx, %ebx
	cmpl	(%r15), %r14d
	cmovnel	%r14d, %ebx
	testl	%r14d, %r14d
	cmovel	%r14d, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ve_mutex,4,2                   ## @ve_mutex
	.comm	_veriexec_dev_head,4,2          ## @veriexec_dev_head
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_veriexec_file_dev_head,4,2     ## @veriexec_file_dev_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_veriexec_metadata_unmounted ; -- Begin function mac_veriexec_metadata_unmounted
	.p2align	2
_mac_veriexec_metadata_unmounted:       ; @mac_veriexec_metadata_unmounted
	.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, x0
Lloh0:
	adrp	x0, _ve_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ve_mutex@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x1, _veriexec_dev_head@GOTPAGE
Lloh3:
	ldr	x1, [x1, _veriexec_dev_head@GOTPAGEOFF]
	mov	x0, x19
	bl	_free_veriexec_dev
Lloh4:
	adrp	x21, _ENOENT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, _veriexec_file_dev_head@GOTPAGE
Lloh7:
	ldr	x1, [x1, _veriexec_file_dev_head@GOTPAGEOFF]
	mov	x0, x19
	bl	_free_veriexec_dev
	mov	x19, x0
Lloh8:
	adrp	x0, _ve_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ve_mutex@GOTPAGEOFF]
	bl	_mtx_unlock
	ldr	w8, [x21]
	cmp	w19, w8
	ccmp	w19, #0, #4, ne
	csel	w20, wzr, w19, eq
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh10:
	adrp	x0, _ve_mutex@GOTPAGE
Lloh11:
	ldr	x0, [x0, _ve_mutex@GOTPAGEOFF]
	bl	_mtx_unlock
LBB0_3:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ve_mutex,4,2                   ; @ve_mutex
	.comm	_veriexec_dev_head,4,2          ; @veriexec_dev_head
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_veriexec_file_dev_head,4,2     ; @veriexec_file_dev_head
.subsections_via_symbols
