	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_veriexec_proc_is_trusted   ## -- Begin function mac_veriexec_proc_is_trusted
	.p2align	4, 0x90
_mac_veriexec_proc_is_trusted:          ## @mac_veriexec_proc_is_trusted
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_PROC_LOCKED
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_mac_veriexec_metadata_get_executable_flags
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_PROC_LOCK
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_mac_veriexec_metadata_get_executable_flags
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_PROC_UNLOCK
LBB0_3:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.4:
	movl	-20(%rbp), %ecx
	movq	_VERIEXEC_TRUSTED@GOTPCREL(%rip), %rdx
	notl	%ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	sete	%al
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERIEXEC_TRUSTED,4,2           ## @VERIEXEC_TRUSTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_veriexec_proc_is_trusted   ; -- Begin function mac_veriexec_proc_is_trusted
	.p2align	2
_mac_veriexec_proc_is_trusted:          ; @mac_veriexec_proc_is_trusted
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_PROC_LOCKED
	cbz	w0, LBB0_3
; %bb.1:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_mac_veriexec_metadata_get_executable_flags
	mov	x20, x0
	cbz	w20, LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_PROC_LOCK
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_mac_veriexec_metadata_get_executable_flags
	mov	x20, x0
	mov	x0, x19
	bl	_PROC_UNLOCK
	cbnz	w20, LBB0_2
LBB0_4:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _VERIEXEC_TRUSTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VERIEXEC_TRUSTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	cset	w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VERIEXEC_TRUSTED,4,2           ; @VERIEXEC_TRUSTED
.subsections_via_symbols
