	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ve_efi_init                    ## -- Begin function ve_efi_init
	.p2align	4, 0x90
_ve_efi_init:                           ## @ve_efi_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpb	$0, _ve_efi_init.once(%rip)
	jne	LBB0_11
## %bb.1:
	movb	$1, _ve_efi_init.once(%rip)
	xorl	%eax, %eax
	callq	_efi_secure_boot_enabled
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	leaq	-16(%rbp), %rdi
	callq	_efi_get_trusted_certs
	movq	-16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_ve_trust_anchors_add
	movq	%rax, -16(%rbp)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_free_certificates
LBB0_5:
	leaq	-16(%rbp), %rdi
	callq	_efi_get_forbidden_certs
	movq	-16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_ve_forbidden_anchors_add
	movq	%rax, -16(%rbp)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_free_certificates
LBB0_8:
	leaq	-16(%rbp), %rdi
	callq	_efi_get_forbidden_digests
	movq	-16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_ve_forbidden_digest_add
	movq	%rbx, %rdi
	callq	_xfree
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ve_efi_init.once,1,2 ## @ve_efi_init.once
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ve_efi_init                    ; -- Begin function ve_efi_init
	.p2align	2
_ve_efi_init:                           ; @ve_efi_init
	.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
	adrp	x8, _ve_efi_init.once@PAGE
	ldrb	w9, [x8, _ve_efi_init.once@PAGEOFF]
	tbnz	w9, #0, LBB0_11
; %bb.1:
	mov	w9, #1
	strb	w9, [x8, _ve_efi_init.once@PAGEOFF]
	bl	_efi_secure_boot_enabled
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.2:
	add	x0, sp, #8
	bl	_efi_get_trusted_certs
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_5
; %bb.3:
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ve_trust_anchors_add
	mov	x1, x0
	str	x0, [sp, #8]
	mov	x0, x19
	bl	_free_certificates
LBB0_5:
	add	x0, sp, #8
	bl	_efi_get_forbidden_certs
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_8
; %bb.6:
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ve_forbidden_anchors_add
	mov	x1, x0
	str	x0, [sp, #8]
	mov	x0, x19
	bl	_free_certificates
LBB0_8:
	add	x0, sp, #8
	bl	_efi_get_forbidden_digests
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_11
; %bb.9:
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_ve_forbidden_digest_add
	mov	x0, x19
	bl	_xfree
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ve_efi_init.once,1,2 ; @ve_efi_init.once
.subsections_via_symbols
