	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	movq	%rax, -40(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_OpenSSL_add_all_algorithms
	xorl	%eax, %eax
	callq	_ERR_load_crypto_strings
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_new_file
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	movq	%rax, -40(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_BIO_reset
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_PrivateKey
	movq	%rax, %r15
	movq	%rbx, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	testq	%r15, %r15
	je	LBB0_3
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_new_file
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SMIME_read_PKCS7
	movq	%rax, %rcx
	movq	%rax, -40(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_BIO_new_file
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	-40(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_PKCS7_decrypt
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -40(%rbp)                 ## 8-byte Spill
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
	movl	(%r15), %edi
	callq	_ERR_print_errors_fp
	movl	$1, %r15d
LBB0_13:
	movq	-40(%rbp), %rdi                 ## 8-byte Reload
	callq	_PKCS7_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_X509_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_PKEY_free
	movq	%r13, %rdi
	callq	_BIO_free
	movq	%rbx, %rdi
	callq	_BIO_free
	movq	%r14, %rdi
	callq	_BIO_free
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -40(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"signer.pem"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"smencr.txt"

L_.str.3:                               ## @.str.3
	.asciz	"encrout.txt"

L_.str.4:                               ## @.str.4
	.asciz	"w"

	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"Error Signing Data\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_OpenSSL_add_all_algorithms
	bl	_ERR_load_crypto_strings
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_new_file
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509
	mov	x20, x0
	mov	x0, x19
	bl	_BIO_reset
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_PrivateKey
	mov	x21, x0
	mov	x23, #0
	cbz	x20, LBB0_8
; %bb.2:
	cbz	x21, LBB0_8
; %bb.3:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_new_file
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x22
	mov	x1, #0
	bl	_SMIME_read_PKCS7
	mov	x23, x0
	cbz	x0, LBB0_10
; %bb.5:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_BIO_new_file
	mov	x24, x0
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	w4, #0
	bl	_PKCS7_decrypt
	mov	w25, #0
	cbnz	w0, LBB0_12
	b	LBB0_11
LBB0_7:
	mov	x23, #0
	mov	x21, #0
	mov	x20, #0
	mov	x24, #0
	mov	x22, #0
	b	LBB0_11
LBB0_8:
	mov	x24, x23
	mov	x22, x23
	b	LBB0_11
LBB0_9:
	mov	x23, #0
LBB0_10:
	mov	x24, #0
LBB0_11:
Lloh12:
	adrp	x25, _stderr@GOTPAGE
Lloh13:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	ldr	w0, [x25]
	bl	_ERR_print_errors_fp
	mov	w25, #1
LBB0_12:
	mov	x0, x23
	bl	_PKCS7_free
	mov	x0, x20
	bl	_X509_free
	mov	x0, x21
	bl	_EVP_PKEY_free
	mov	x0, x22
	bl	_BIO_free
	mov	x0, x24
	bl	_BIO_free
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"signer.pem"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"smencr.txt"

l_.str.3:                               ; @.str.3
	.asciz	"encrout.txt"

l_.str.4:                               ; @.str.4
	.asciz	"w"

	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"Error Signing Data\n"

.subsections_via_symbols
