	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_veriexec_kld_check_load
_mac_veriexec_kld_check_load:           ## @mac_veriexec_kld_check_load
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mac_veriexec_state@GOTPCREL(%rip), %rax
	movq	_VERIEXEC_STATE_ENFORCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rdx
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_VOP_GETATTR
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_VERIEXEC_FILES_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_mac_veriexec_metadata_fetch_fingerprint_status
	movl	%eax, %ebx
	movq	_EAUTH@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	cmpl	(%r15), %ebx
	jne	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_mac_veriexec_get_fingerprint_status
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_7
## %bb.6:
	movl	-32(%rbp), %ecx
	movl	-40(%rbp), %r9d
	movl	-36(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	callq	_MAC_VERIEXEC_DBG
	movl	(%r15), %ebx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_mac_veriexec_state,4,2         ## @mac_veriexec_state
	.comm	_VERIEXEC_STATE_ENFORCE,4,2     ## @VERIEXEC_STATE_ENFORCE
	.comm	_VERIEXEC_FILES_FIRST,4,2       ## @VERIEXEC_FILES_FIRST
	.comm	_EAUTH,4,2                      ## @EAUTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fingerprint status is %d for dev %ju, file %ju.%ju\n"

	.no_dead_strip	_mac_veriexec_kld_check_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_veriexec_kld_check_load
_mac_veriexec_kld_check_load:           ; @mac_veriexec_kld_check_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _mac_veriexec_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mac_veriexec_state@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VERIEXEC_STATE_ENFORCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VERIEXEC_STATE_ENFORCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x2, x0
Lloh6:
	adrp	x8, _curthread@GOTPAGE
Lloh7:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_VOP_GETATTR
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _VERIEXEC_FILES_FIRST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VERIEXEC_FILES_FIRST@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_mac_veriexec_metadata_fetch_fingerprint_status
	mov	x20, x0
Lloh12:
	adrp	x21, _EAUTH@GOTPAGE
Lloh13:
	ldr	x21, [x21, _EAUTH@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mac_veriexec_get_fingerprint_status
	sub	w8, w0, #128
	cmp	w8, #3
	b.lo	LBB0_6
; %bb.4:
	mov	x2, x0
	ldp	w4, w3, [sp, #4]
	ldr	w5, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MAC_VERIEXEC_DBG
	ldr	w20, [x21]
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_mac_veriexec_state,4,2         ; @mac_veriexec_state
	.comm	_VERIEXEC_STATE_ENFORCE,4,2     ; @VERIEXEC_STATE_ENFORCE
	.comm	_VERIEXEC_FILES_FIRST,4,2       ; @VERIEXEC_FILES_FIRST
	.comm	_EAUTH,4,2                      ; @EAUTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fingerprint status is %d for dev %ju, file %ju.%ju\n"

	.no_dead_strip	_mac_veriexec_kld_check_load
.subsections_via_symbols
