	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_pubsignature
_verify_pubsignature:                   ## @verify_pubsignature
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	$0, -32(%rbp)
	movq	_PUBKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_config_string
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_warnx
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movl	%ebx, %edi
	callq	_read_pubkey
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	-32(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	movq	-32(%rbp), %rsi
	movq	(%r15), %r8
	movl	8(%r15), %r9d
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_rsa_verify_cert
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	xorl	%ebx, %ebx
LBB0_7:
	movq	(%r15), %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_PUBKEY,4,2                     ## @PUBKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No CONFIG_PUBKEY defined"

L_.str.1:                               ## @.str.1
	.asciz	"Error reading signature"

L_.str.2:                               ## @.str.2
	.asciz	"Verifying signature with public key %s... "

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Signature is not valid\n"

	.no_dead_strip	_verify_pubsignature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_pubsignature
_verify_pubsignature:                   ; @verify_pubsignature
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _PUBKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PUBKEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_config_string
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_warnx
	mov	w20, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_read_pubkey
	cbz	x0, LBB0_6
; %bb.4:
	mov	x19, x0
	ldr	x1, [sp, #8]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #8]
	ldr	x4, [x19]
	ldr	w5, [x19, #8]
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_rsa_verify_cert
	cbz	w0, LBB0_7
; %bb.5:
	mov	w20, #1
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w20, #0
LBB0_8:
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PUBKEY,4,2                     ; @PUBKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No CONFIG_PUBKEY defined"

l_.str.1:                               ; @.str.1
	.asciz	"Error reading signature"

l_.str.2:                               ; @.str.2
	.asciz	"Verifying signature with public key %s... "

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Signature is not valid\n"

	.no_dead_strip	_verify_pubsignature
.subsections_via_symbols
