	.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	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	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
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_BIO_reset
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_PrivateKey
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BIO_free
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_new_file
	testq	%rax, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_BIO_reset
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_PrivateKey
	testq	%rbx, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_new_file
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_PKCS7_STREAM@GOTPCREL(%rip), %rdx
	movq	_PKCS7_PARTIAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rdx), %r8d
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_PKCS7_sign
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_PKCS7_sign_add_signer
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_PKCS7_sign_add_signer
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_BIO_new_file
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %r14
	movq	_PKCS7_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_SMIME_write_PKCS7
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_17
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_9:
	xorl	%r12d, %r12d
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	movl	(%r13), %edi
	callq	_ERR_print_errors_fp
	movl	$1, %r13d
LBB0_18:
	movq	%r12, %rdi
	callq	_PKCS7_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_X509_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_PKEY_free
	movq	%rbx, %rdi
	callq	_X509_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_PKEY_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_free
	movq	%r14, %rdi
	callq	_BIO_free
	movq	%r15, %rdi
	callq	_BIO_free
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_15:
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.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	"signer2.pem"

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

	.comm	_PKCS7_STREAM,4,2               ## @PKCS7_STREAM
	.comm	_PKCS7_PARTIAL,4,2              ## @PKCS7_PARTIAL
L_.str.4:                               ## @.str.4
	.asciz	"smout.txt"

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

	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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	x21, x0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509
	mov	x19, x0
	mov	x0, x21
	bl	_BIO_reset
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_PrivateKey
	mov	x20, x0
	mov	x0, x21
	bl	_BIO_free
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	x21, x0
	cbz	x0, LBB0_12
; %bb.2:
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509
	mov	x22, x0
	mov	x0, x21
	bl	_BIO_reset
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_PrivateKey
	mov	x23, x0
	mov	x24, #0
	cbz	x22, LBB0_14
; %bb.3:
	cbz	x23, LBB0_14
; %bb.4:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_new_file
	mov	x25, x0
	cbz	x0, LBB0_15
; %bb.5:
Lloh12:
	adrp	x27, _PKCS7_STREAM@GOTPAGE
Lloh13:
	ldr	x27, [x27, _PKCS7_STREAM@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh14:
	adrp	x9, _PKCS7_PARTIAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PKCS7_PARTIAL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, x25
	bl	_PKCS7_sign
	mov	x24, x0
	cbz	x0, LBB0_16
; %bb.6:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	mov	x3, #0
	mov	w4, #0
	bl	_PKCS7_sign_add_signer
	cbz	w0, LBB0_16
; %bb.7:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	mov	w4, #0
	bl	_PKCS7_sign_add_signer
	cbz	w0, LBB0_16
; %bb.8:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_BIO_new_file
	mov	x26, x0
	cbz	x0, LBB0_17
; %bb.9:
	ldr	w3, [x27]
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_SMIME_write_PKCS7
	cbz	w0, LBB0_17
; %bb.10:
	mov	w27, #0
	b	LBB0_18
LBB0_11:
	mov	x24, #0
	mov	x23, #0
	mov	x20, #0
	mov	x22, #0
	mov	x19, #0
	b	LBB0_13
LBB0_12:
	mov	x24, #0
	mov	x23, #0
	mov	x22, #0
LBB0_13:
	mov	x26, #0
	mov	x25, #0
	b	LBB0_17
LBB0_14:
	mov	x26, x24
	mov	x25, x24
	b	LBB0_17
LBB0_15:
	mov	x24, #0
LBB0_16:
	mov	x26, #0
LBB0_17:
Lloh21:
	adrp	x27, _stderr@GOTPAGE
Lloh22:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	ldr	w0, [x27]
	bl	_ERR_print_errors_fp
	mov	w27, #1
LBB0_18:
	mov	x0, x24
	bl	_PKCS7_free
	mov	x0, x19
	bl	_X509_free
	mov	x0, x20
	bl	_EVP_PKEY_free
	mov	x0, x22
	bl	_X509_free
	mov	x0, x23
	bl	_EVP_PKEY_free
	mov	x0, x25
	bl	_BIO_free
	mov	x0, x26
	bl	_BIO_free
	mov	x0, x21
	bl	_BIO_free
	mov	x0, x27
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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	"signer2.pem"

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

	.comm	_PKCS7_STREAM,4,2               ; @PKCS7_STREAM
	.comm	_PKCS7_PARTIAL,4,2              ; @PKCS7_PARTIAL
l_.str.4:                               ; @.str.4
	.asciz	"smout.txt"

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

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

.subsections_via_symbols
