	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_signer
_verify_signer:                         ## @verify_signer
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ve_trust_init
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_certificates
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_forbidden_anchors@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VEC_LEN
	testq	%rax, %rax
	jle	LBB0_5
## %bb.3:
	movq	-40(%rbp), %rsi
	movq	_forbidden_anchors@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_verify_signer_xcs
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ve_error_set
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_5:
	movq	-40(%rbp), %rsi
	movq	_trust_anchors@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_verify_signer_xcs
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_check_forbidden_digests
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	callq	_ve_error_set
	movq	%rbx, %rdi
	callq	_xfreepkey
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_free_certificates
LBB0_11:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot read certificates\n"

	.comm	_forbidden_anchors,4,2          ## @forbidden_anchors
L_.str.1:                               ## @.str.1
	.asciz	"Certificate is on forbidden list\n"

	.comm	_trust_anchors,4,2              ## @trust_anchors
L_.str.2:                               ## @.str.2
	.asciz	"Certificate hash is on forbidden list\n"

	.no_dead_strip	_verify_signer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_signer
_verify_signer:                         ; @verify_signer
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_ve_trust_init
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_certificates
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _forbidden_anchors@GOTPAGE
Lloh1:
	ldr	x8, [x8, _forbidden_anchors@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_VEC_LEN
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x1, [sp, #8]
Lloh3:
	adrp	x4, _forbidden_anchors@GOTPAGE
Lloh4:
	ldr	x4, [x4, _forbidden_anchors@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_verify_signer_xcs
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ve_error_set
	mov	x20, #0
	b	LBB0_10
LBB0_5:
	ldr	x1, [sp, #8]
Lloh9:
	adrp	x4, _trust_anchors@GOTPAGE
Lloh10:
	ldr	x4, [x4, _trust_anchors@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_verify_signer_xcs
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_check_forbidden_digests
	cbz	x0, LBB0_9
; %bb.7:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_ve_error_set
	mov	x0, x20
	bl	_xfreepkey
	mov	x20, #0
LBB0_9:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_free_certificates
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot read certificates\n"

	.comm	_forbidden_anchors,4,2          ; @forbidden_anchors
l_.str.1:                               ; @.str.1
	.asciz	"Certificate is on forbidden list\n"

	.comm	_trust_anchors,4,2              ; @trust_anchors
l_.str.2:                               ; @.str.2
	.asciz	"Certificate hash is on forbidden list\n"

	.no_dead_strip	_verify_signer
.subsections_via_symbols
