	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_veriexec_check_vp
_mac_veriexec_check_vp:                 ## @mac_veriexec_check_vp
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rdx
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_VOP_GETATTR
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	_VERIEXEC_FILES_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_mac_veriexec_metadata_fetch_fingerprint_status
	movl	%eax, %ebx
	movq	_EAUTH@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	cmpl	(%r12), %ebx
	jne	LBB0_10
LBB0_3:
	movq	%r15, %rdi
	callq	_mac_veriexec_get_fingerprint_status
                                        ## kill: def $eax killed $eax def $rax
	movq	_VWRITE@GOTPCREL(%rip), %rdx
	leal	-128(%rax), %ecx
	testl	%r14d, (%rdx)
	je	LBB0_6
## %bb.4:
	cmpl	$2, %ecx
	ja	LBB0_6
## %bb.5:
	movl	-40(%rbp), %edx
	movl	-48(%rbp), %r8d
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_MAC_VERIEXEC_DBG
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_VVERIFY@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	je	LBB0_9
## %bb.7:
	cmpl	$2, %ecx
	ja	LBB0_11
## %bb.8:
	testl	%ebx, %ebx
	jne	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_11:
	movl	-40(%rbp), %ecx
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_MAC_VERIEXEC_DBG
	movl	(%r12), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_VERIEXEC_FILES_FIRST,4,2       ## @VERIEXEC_FILES_FIRST
	.comm	_EAUTH,4,2                      ## @EAUTH
	.comm	_VWRITE,4,2                     ## @VWRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempted write to fingerprinted file for dev %ju, file %ju.%ju\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_VVERIFY,4,2                    ## @VVERIFY
L_.str.1:                               ## @.str.1
	.asciz	"fingerprint status is %d for dev %ju, file %ju.%ju\n"

	.no_dead_strip	_mac_veriexec_check_vp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_veriexec_check_vp
_mac_veriexec_check_vp:                 ; @mac_veriexec_check_vp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x2, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x1, sp, #16
	mov	x0, x21
	bl	_VOP_GETATTR
	mov	x19, x0
	cbnz	w0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _VERIEXEC_FILES_FIRST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERIEXEC_FILES_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x22
	bl	_mac_veriexec_metadata_fetch_fingerprint_status
	mov	x19, x0
Lloh6:
	adrp	x22, _EAUTH@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EAUTH@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x21
	bl	_mac_veriexec_get_fingerprint_status
Lloh8:
	adrp	x8, _VWRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VWRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w9, w8, w20
	sub	w8, w0, #128
	cmp	w9, #0
	ccmp	w8, #2, #2, ne
	b.ls	LBB0_7
; %bb.3:
Lloh11:
	adrp	x9, _VVERIFY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VVERIFY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.5:
	cbnz	w19, LBB0_9
LBB0_6:
	mov	w19, #0
	b	LBB0_9
LBB0_7:
	ldp	w3, w2, [sp, #20]
	ldr	w4, [sp, #16]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MAC_VERIEXEC_DBG
Lloh16:
	adrp	x8, _EPERM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	b	LBB0_9
LBB0_8:
	mov	x2, x0
	ldp	w4, w3, [sp, #20]
	ldr	w8, [sp, #16]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	w0, #2
	bl	_MAC_VERIEXEC_DBG
	ldr	w19, [x22]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_VERIEXEC_FILES_FIRST,4,2       ; @VERIEXEC_FILES_FIRST
	.comm	_EAUTH,4,2                      ; @EAUTH
	.comm	_VWRITE,4,2                     ; @VWRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempted write to fingerprinted file for dev %ju, file %ju.%ju\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_VVERIFY,4,2                    ; @VVERIFY
l_.str.1:                               ; @.str.1
	.asciz	"fingerprint status is %d for dev %ju, file %ju.%ju\n"

	.no_dead_strip	_mac_veriexec_check_vp
.subsections_via_symbols
