	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CMS_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%r14d, %r14d
	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, %r13
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_NID_zlib_compression@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_CMS_compress
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_BIO_new_file
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	_SMIME_write_CMS
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	callq	_ERR_print_errors_fp
	movl	$1, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_CMS_ContentInfo_free
	movq	%r13, %rdi
	callq	_BIO_free
	movq	%r15, %rdi
	callq	_BIO_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_STREAM,4,2                 ## @CMS_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"comp.txt"

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

	.comm	_NID_zlib_compression,4,2       ## @NID_zlib_compression
L_.str.2:                               ## @.str.2
	.asciz	"smcomp.txt"

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

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"Error Compressing 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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _CMS_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMS_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_OpenSSL_add_all_algorithms
	bl	_ERR_load_crypto_strings
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_new_file
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh7:
	adrp	x8, _NID_zlib_compression@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NID_zlib_compression@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_CMS_compress
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BIO_new_file
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_SMIME_write_CMS
	cbz	w0, LBB0_7
; %bb.4:
	mov	w22, #0
	b	LBB0_8
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x21, #0
LBB0_7:
Lloh14:
	adrp	x22, _stderr@GOTPAGE
Lloh15:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
	bl	_ERR_print_errors_fp
	mov	w22, #1
LBB0_8:
	mov	x0, x20
	bl	_CMS_ContentInfo_free
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x21
	bl	_BIO_free
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_STREAM,4,2                 ; @CMS_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"comp.txt"

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

	.comm	_NID_zlib_compression,4,2       ; @NID_zlib_compression
l_.str.2:                               ; @.str.2
	.asciz	"smcomp.txt"

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

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

.subsections_via_symbols
