	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cms_copy_content
_cms_copy_content:                      ## @cms_copy_content
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, %esi
	callq	_cms_get_text_bio
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rbx, -4152(%rbp)               ## 8-byte Spill
	leaq	-4144(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_BIO_read
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_BIO_write
	cmpl	%r14d, %eax
	je	LBB0_2
## %bb.8:
	xorl	%r12d, %r12d
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_15
LBB0_19:
	movq	_CMS_F_CMS_COPY_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	callq	_CMSerr
LBB0_14:
	xorl	%r12d, %r12d
LBB0_15:
	cmpq	%rbx, %r13
	je	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_BIO_free
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	movl	%r12d, %eax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_BIO_method_type
	movq	_BIO_TYPE_CIPHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_BIO_get_cipher_status
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:
	testl	%r14d, %r14d
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
	jns	LBB0_10
	jmp	LBB0_15
LBB0_6:
	testl	%r14d, %r14d
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
	js	LBB0_14
LBB0_10:
	movq	_CMS_TEXT@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	testl	%r15d, (%rax)
	je	LBB0_15
## %bb.11:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_SMIME_text
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	_CMS_F_CMS_COPY_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_SMIME_TEXT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_15
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_F_CMS_COPY_CONTENT,4,2     ## @CMS_F_CMS_COPY_CONTENT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_BIO_TYPE_CIPHER,8,3            ## @BIO_TYPE_CIPHER
	.comm	_CMS_TEXT,4,2                   ## @CMS_TEXT
	.comm	_CMS_R_SMIME_TEXT_ERROR,4,2     ## @CMS_R_SMIME_TEXT_ERROR
	.no_dead_strip	_cms_copy_content
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cms_copy_content
_cms_copy_content:                      ; @cms_copy_content
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x1, x2
	bl	_cms_get_text_bio
	mov	x20, x0
	cbz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #4096
	bl	_BIO_read
	mov	x23, x0
	cmp	w0, #0
	b.le	LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	bl	_BIO_write
	cmp	w0, w23
	b.eq	LBB0_1
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _CMS_F_CMS_COPY_CONTENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMS_F_CMS_COPY_CONTENT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_CMSerr
LBB0_5:
	mov	w22, #0
LBB0_6:
	cmp	x20, x19
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_BIO_free
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.9:
	mov	x0, x22
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x22
	bl	_BIO_method_type
Lloh13:
	adrp	x8, _BIO_TYPE_CIPHER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BIO_TYPE_CIPHER@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x22
	bl	_BIO_get_cipher_status
	mov	w22, #0
	cbz	w0, LBB0_6
; %bb.12:
	tbz	w23, #31, LBB0_14
	b	LBB0_6
LBB0_13:
	tbnz	w23, #31, LBB0_5
LBB0_14:
Lloh16:
	adrp	x8, _CMS_TEXT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMS_TEXT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_SMIME_text
	cbz	w0, LBB0_17
LBB0_16:
	mov	w22, #1
	b	LBB0_6
LBB0_17:
Lloh19:
	adrp	x8, _CMS_F_CMS_COPY_CONTENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMS_F_CMS_COPY_CONTENT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _CMS_R_SMIME_TEXT_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CMS_R_SMIME_TEXT_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_F_CMS_COPY_CONTENT,4,2     ; @CMS_F_CMS_COPY_CONTENT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_BIO_TYPE_CIPHER,8,3            ; @BIO_TYPE_CIPHER
	.comm	_CMS_TEXT,4,2                   ; @CMS_TEXT
	.comm	_CMS_R_SMIME_TEXT_ERROR,4,2     ; @CMS_R_SMIME_TEXT_ERROR
	.no_dead_strip	_cms_copy_content
.subsections_via_symbols
