	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_veriexec_syscall
_mac_veriexec_syscall:                  ## @mac_veriexec_syscall
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_9
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_11
## %bb.2:
	movq	_CAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-76(%rbp), %rdi
	callq	_cap_rights_init
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_getvnode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	-48(%rbp), %rbx
	movl	4(%rbx), %edx
	movq	_DTYPE_VNODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_4
## %bb.5:
	leaq	-72(%rbp), %rdi
	movl	$24, %esi
	callq	_bzero
	movl	4(%r14), %eax
	movl	%eax, -56(%rbp)
	movl	(%rbx), %r15d
	movl	%r15d, -72(%rbp)
	leaq	-40(%rbp), %rbx
	movq	%rbx, -64(%rbp)
	movq	_LK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movq	_LK_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%r15d, %edi
	callq	_vn_lock
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movq	%rbx, %rsi
	callq	_VOP_GETATTR
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_S_IXUSR@GOTPCREL(%rip), %r15
	movq	_S_IXGRP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%r15), %eax
	movq	_S_IXOTH@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	-40(%rbp), %edx
	xorl	%ecx, %ecx
	testl	%edx, %eax
	sete	%cl
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_MAC_VERIEXEC_DBG
	movl	(%rbx), %eax
	orl	(%r15), %eax
	orl	(%r12), %eax
	xorl	%esi, %esi
	andl	-40(%rbp), %eax
	sete	%sil
	leaq	-72(%rbp), %rdi
	movq	%r14, %rdx
	callq	_mac_veriexec_fingerprint_check_image
	movl	%eax, %ebx
	movl	-72(%rbp), %r15d
LBB0_7:
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	jmp	LBB0_8
LBB0_9:
	movq	_LOOKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FOLLOW@GOTPCREL(%rip), %rax
	movq	_LOCKLEAF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LOCKSHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_AUDITVNODE1@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_UIO_USERSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_NDINIT
	movq	%r15, %rdi
	callq	_namei
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	_NDF_ONLY_PNBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdi
	callq	_NDFREE
	movl	(%r14), %edi
	movl	-72(%rbp), %esi
	movq	_VVERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mac_veriexec_check_vp
	movl	%eax, %ebx
	movl	-72(%rbp), %edi
	callq	_vput
	jmp	LBB0_12
LBB0_11:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_MAC_VERIEXEC_DBG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_fdrop
LBB0_12:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_READ,4,2                   ## @CAP_READ
	.comm	_DTYPE_VNODE,4,2                ## @DTYPE_VNODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC_VERIEXEC_CHECK_SYSCALL: file is not vnode type (type=0x%x)"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
L_.str.1:                               ## @.str.1
	.asciz	"mac_veriexec_fingerprint_check_image: va_mode=%o, check_files=%d\n"

	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
	.comm	_LOOKUP,4,2                     ## @LOOKUP
	.comm	_FOLLOW,4,2                     ## @FOLLOW
	.comm	_LOCKLEAF,4,2                   ## @LOCKLEAF
	.comm	_LOCKSHARED,4,2                 ## @LOCKSHARED
	.comm	_AUDITVNODE1,4,2                ## @AUDITVNODE1
	.comm	_UIO_USERSPACE,4,2              ## @UIO_USERSPACE
	.comm	_NDF_ONLY_PNBUF,4,2             ## @NDF_ONLY_PNBUF
	.comm	_VVERIFY,4,2                    ## @VVERIFY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_mac_veriexec_syscall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_veriexec_syscall
_mac_veriexec_syscall:                  ; @mac_veriexec_syscall
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _CAP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #20
	bl	_cap_rights_init
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_getvnode
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.3:
	ldr	x20, [sp, #8]
	ldr	w2, [x20, #4]
Lloh3:
	adrp	x8, _DTYPE_VNODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DTYPE_VNODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_9
; %bb.4:
	add	x0, sp, #24
	mov	w1, #24
	bl	_bzero
	ldr	w8, [x19, #4]
	str	w8, [sp, #40]
	ldr	w21, [x20]
	str	w21, [sp, #24]
	add	x8, sp, #16
Lloh6:
	adrp	x9, _LK_EXCLUSIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LK_EXCLUSIVE@GOTPAGEOFF]
	str	x8, [sp, #32]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _LK_RETRY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LK_RETRY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_vn_lock
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	ldr	w2, [x19]
	add	x1, sp, #16
	bl	_VOP_GETATTR
	cbz	w0, LBB0_10
; %bb.5:
	mov	x20, x0
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x8, _LOOKUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOOKUP@GOTPAGEOFF]
Lloh14:
	adrp	x9, _FOLLOW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FOLLOW@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _LOCKLEAF@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LOCKLEAF@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh20:
	adrp	x10, _LOCKSHARED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _LOCKSHARED@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh23:
	adrp	x10, _AUDITVNODE1@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AUDITVNODE1@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	ldr	w8, [x10]
	orr	w2, w9, w8
Lloh27:
	adrp	x8, _UIO_USERSPACE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UIO_USERSPACE@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	add	x0, sp, #24
	mov	x4, x20
	mov	x5, x19
	bl	_NDINIT
	add	x0, sp, #24
	bl	_namei
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.7:
Lloh30:
	adrp	x8, _NDF_ONLY_PNBUF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NDF_ONLY_PNBUF@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x0, sp, #24
	bl	_NDFREE
	ldr	w0, [x19]
	ldr	w1, [sp, #24]
Lloh33:
	adrp	x8, _VVERIFY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VVERIFY@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	bl	_mac_veriexec_check_vp
	mov	x20, x0
	ldr	w0, [sp, #24]
	bl	_vput
	b	LBB0_13
LBB0_8:
Lloh36:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh38:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_9:
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_MAC_VERIEXEC_DBG
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w20, [x8]
	b	LBB0_12
LBB0_10:
Lloh44:
	adrp	x20, _S_IXUSR@GOTPAGE
Lloh45:
	ldr	x20, [x20, _S_IXUSR@GOTPAGEOFF]
	ldr	w2, [sp, #16]
	ldr	w8, [x20]
Lloh46:
	adrp	x21, _S_IXGRP@GOTPAGE
Lloh47:
	ldr	x21, [x21, _S_IXGRP@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh48:
	adrp	x22, _S_IXOTH@GOTPAGE
Lloh49:
	ldr	x22, [x22, _S_IXOTH@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
	tst	w8, w2
	cset	w8, eq
	str	x8, [sp]
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_MAC_VERIEXEC_DBG
	ldr	w8, [sp, #16]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w9, w10, w9
	ldr	w10, [x22]
	orr	w9, w9, w10
	tst	w9, w8
	cset	w1, eq
	add	x0, sp, #24
	mov	x2, x19
	bl	_mac_veriexec_fingerprint_check_image
	mov	x20, x0
	ldr	w21, [sp, #24]
LBB0_11:
	mov	x0, x21
	mov	w1, #0
	bl	_VOP_UNLOCK
LBB0_12:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_fdrop
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh25
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_READ,4,2                   ; @CAP_READ
	.comm	_DTYPE_VNODE,4,2                ; @DTYPE_VNODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC_VERIEXEC_CHECK_SYSCALL: file is not vnode type (type=0x%x)"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
l_.str.1:                               ; @.str.1
	.asciz	"mac_veriexec_fingerprint_check_image: va_mode=%o, check_files=%d\n"

	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
	.comm	_LOOKUP,4,2                     ; @LOOKUP
	.comm	_FOLLOW,4,2                     ; @FOLLOW
	.comm	_LOCKLEAF,4,2                   ; @LOCKLEAF
	.comm	_LOCKSHARED,4,2                 ; @LOCKSHARED
	.comm	_AUDITVNODE1,4,2                ; @AUDITVNODE1
	.comm	_UIO_USERSPACE,4,2              ; @UIO_USERSPACE
	.comm	_NDF_ONLY_PNBUF,4,2             ; @NDF_ONLY_PNBUF
	.comm	_VVERIFY,4,2                    ; @VVERIFY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_mac_veriexec_syscall
.subsections_via_symbols
