	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_decrypt                  ## -- Begin function PKCS7_decrypt
	.p2align	4, 0x90
_PKCS7_decrypt:                         ## @PKCS7_decrypt
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movl	%r8d, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_PKCS7_type_is_enveloped
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_X509_check_private_key
	testl	%eax, %eax
	je	LBB0_15
LBB0_4:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_PKCS7_dataDecode
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %r14
	movq	_PKCS7_TEXT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_19
## %bb.6:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BIO_f_buffer
	movl	%eax, %edi
	callq	_BIO_new
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_22
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_BIO_push
	testq	%rax, %rax
	je	LBB0_23
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_SMIME_text
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_BIO_method_type
	movq	_BIO_TYPE_CIPHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_BIO_get_cipher_status
	testl	%eax, %eax
	cmovel	%eax, %r12d
LBB0_11:
	movq	%r15, %rdi
	jmp	LBB0_30
LBB0_12:
	movq	_PKCS7_F_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_INVALID_NULL_POINTER@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movq	_PKCS7_F_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_WRONG_CONTENT_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_PKCS7_F_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_DECRYPT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
	jmp	LBB0_18
LBB0_15:
	movq	_PKCS7_F_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	callq	_PKCS7err
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_BUFFERSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_24
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_BIO_read
	testl	%eax, %eax
	jle	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_BIO_write
	cmpl	%ebx, %eax
	je	LBB0_20
	jmp	LBB0_25
LBB0_22:
	movq	_PKCS7_F_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
	jmp	LBB0_29
LBB0_23:
	movq	_PKCS7_F_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
	movq	%rbx, %rdi
	callq	_BIO_free_all
	movq	%r14, %rdi
	callq	_BIO_free_all
	jmp	LBB0_17
LBB0_24:
	movq	_PKCS7_F_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
LBB0_25:
	xorl	%r12d, %r12d
	jmp	LBB0_28
LBB0_26:
	movq	%r14, %rdi
	callq	_BIO_method_type
	movq	_BIO_TYPE_CIPHER@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.27:
	movq	%r14, %rdi
	callq	_BIO_get_cipher_status
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
LBB0_28:
	movq	%r15, %rdi
	callq	_OPENSSL_free
LBB0_29:
	movq	%r14, %rdi
LBB0_30:
	callq	_BIO_free_all
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS7_F_PKCS7_DECRYPT,4,2      ## @PKCS7_F_PKCS7_DECRYPT
	.comm	_PKCS7_R_INVALID_NULL_POINTER,4,2 ## @PKCS7_R_INVALID_NULL_POINTER
	.comm	_PKCS7_R_WRONG_CONTENT_TYPE,4,2 ## @PKCS7_R_WRONG_CONTENT_TYPE
	.comm	_PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE,4,2 ## @PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE
	.comm	_PKCS7_R_DECRYPT_ERROR,4,2      ## @PKCS7_R_DECRYPT_ERROR
	.comm	_PKCS7_TEXT,4,2                 ## @PKCS7_TEXT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_BIO_TYPE_CIPHER,8,3            ## @BIO_TYPE_CIPHER
	.comm	_BUFFERSIZE,4,2                 ## @BUFFERSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_decrypt                  ; -- Begin function PKCS7_decrypt
	.p2align	2
_PKCS7_decrypt:                         ; @PKCS7_decrypt
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_PKCS7_type_is_enveloped
	cbz	w0, LBB0_13
; %bb.2:
	cbz	x19, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_X509_check_private_key
	cbz	w0, LBB0_15
LBB0_4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, #0
	mov	x3, x19
	bl	_PKCS7_dataDecode
	cbz	x0, LBB0_14
; %bb.5:
	mov	x19, x0
Lloh0:
	adrp	x8, _PKCS7_TEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS7_TEXT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_19
; %bb.6:
	bl	_BIO_f_buffer
	bl	_BIO_new
	cbz	x0, LBB0_22
; %bb.7:
	mov	x22, x0
	mov	x1, x19
	bl	_BIO_push
	cbz	x0, LBB0_23
; %bb.8:
	mov	x21, x0
	mov	x1, x20
	bl	_SMIME_text
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_BIO_method_type
Lloh3:
	adrp	x8, _BIO_TYPE_CIPHER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_TYPE_CIPHER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_BIO_get_cipher_status
	cmp	w0, #0
	csel	w20, wzr, w20, eq
LBB0_11:
	mov	x0, x21
	b	LBB0_31
LBB0_12:
Lloh6:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _PKCS7_R_INVALID_NULL_POINTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PKCS7_R_INVALID_NULL_POINTER@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh11:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _PKCS7_R_WRONG_CONTENT_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PKCS7_R_WRONG_CONTENT_TYPE@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh16:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _PKCS7_R_DECRYPT_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PKCS7_R_DECRYPT_ERROR@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh21:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	bl	_PKCS7err
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x20
	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_19:
Lloh26:
	adrp	x23, _BUFFERSIZE@GOTPAGE
Lloh27:
	ldr	x23, [x23, _BUFFERSIZE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_OPENSSL_malloc
	mov	x21, x0
	cbz	x0, LBB0_25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_BIO_read
	cmp	w0, #0
	b.le	LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_BIO_write
	cmp	w0, w22
	b.eq	LBB0_20
	b	LBB0_26
LBB0_22:
Lloh28:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_PKCS7err
	b	LBB0_24
LBB0_23:
Lloh34:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_PKCS7err
	mov	x0, x22
	bl	_BIO_free_all
LBB0_24:
	mov	x0, x19
	bl	_BIO_free_all
	b	LBB0_17
LBB0_25:
Lloh40:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_PKCS7err
LBB0_26:
	mov	w20, #0
	b	LBB0_30
LBB0_27:
	mov	x0, x19
	bl	_BIO_method_type
Lloh46:
	adrp	x8, _BIO_TYPE_CIPHER@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BIO_TYPE_CIPHER@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x19
	bl	_BIO_get_cipher_status
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_30
LBB0_29:
	mov	w20, #1
LBB0_30:
	mov	x0, x21
	bl	_OPENSSL_free
	mov	x0, x19
LBB0_31:
	bl	_BIO_free_all
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS7_F_PKCS7_DECRYPT,4,2      ; @PKCS7_F_PKCS7_DECRYPT
	.comm	_PKCS7_R_INVALID_NULL_POINTER,4,2 ; @PKCS7_R_INVALID_NULL_POINTER
	.comm	_PKCS7_R_WRONG_CONTENT_TYPE,4,2 ; @PKCS7_R_WRONG_CONTENT_TYPE
	.comm	_PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE,4,2 ; @PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE
	.comm	_PKCS7_R_DECRYPT_ERROR,4,2      ; @PKCS7_R_DECRYPT_ERROR
	.comm	_PKCS7_TEXT,4,2                 ; @PKCS7_TEXT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_BIO_TYPE_CIPHER,8,3            ; @BIO_TYPE_CIPHER
	.comm	_BUFFERSIZE,4,2                 ; @BUFFERSIZE
.subsections_via_symbols
