	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkcs7_decrypt_rinfo
_pkcs7_decrypt_rinfo:                   ## @pkcs7_decrypt_rinfo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_EVP_PKEY_decrypt_init
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_EVP_PKEY_OP_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EVP_PKEY_CTRL_PKCS7_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %r13d
	movq	%r15, %rdi
	movl	$-1, %esi
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_EVP_PKEY_CTX_ctrl
	testq	%rax, %rax
	jle	LBB0_5
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_decrypt
	testq	%rax, %rax
	jle	LBB0_15
## %bb.8:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%r14), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %r13
	movq	%rax, %rsi
	callq	_EVP_PKEY_decrypt
	testq	%rax, %rax
	jle	LBB0_16
## %bb.11:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	testq	%r12, %r12
	je	LBB0_14
## %bb.13:
	cmpq	%r12, %rax
	je	LBB0_14
LBB0_16:
	movq	_PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	%r13, %rdi
	callq	_OPENSSL_free
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_1:
	movl	$-1, %r13d
	jmp	LBB0_17
LBB0_3:
	movl	$-1, %r13d
	jmp	LBB0_15
LBB0_5:
	movq	_PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_CTRL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	_PKCS7err
LBB0_15:
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_free
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%rbx), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	callq	_OPENSSL_clear_free
	movq	%r13, (%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
	movl	$1, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_OP_DECRYPT,4,2        ## @EVP_PKEY_OP_DECRYPT
	.comm	_EVP_PKEY_CTRL_PKCS7_DECRYPT,4,2 ## @EVP_PKEY_CTRL_PKCS7_DECRYPT
	.comm	_PKCS7_F_PKCS7_DECRYPT_RINFO,4,2 ## @PKCS7_F_PKCS7_DECRYPT_RINFO
	.comm	_PKCS7_R_CTRL_ERROR,4,2         ## @PKCS7_R_CTRL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.no_dead_strip	_pkcs7_decrypt_rinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkcs7_decrypt_rinfo
_pkcs7_decrypt_rinfo:                   ; @pkcs7_decrypt_rinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x4
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x3
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_EVP_PKEY_decrypt_init
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _EVP_PKEY_OP_DECRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_OP_DECRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _EVP_PKEY_CTRL_PKCS7_DECRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_PKEY_CTRL_PKCS7_DECRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	w4, #0
	mov	x5, x23
	bl	_EVP_PKEY_CTX_ctrl
	cmp	x0, #0
	b.le	LBB0_10
; %bb.3:
	ldr	x8, [x23]
	ldp	w4, w3, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_EVP_PKEY_decrypt
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.4:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x24, x0
	ldr	x8, [x23]
	ldp	w4, w3, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x24
	bl	_EVP_PKEY_decrypt
	ldr	x8, [sp, #8]
	cmp	x0, #1
	ccmp	x8, #0, #4, ge
	b.eq	LBB0_8
; %bb.6:
	cbz	x22, LBB0_16
; %bb.7:
	cmp	x8, x22
	b.eq	LBB0_16
LBB0_8:
Lloh6:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_PKCS7err
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
	mov	x0, x24
	bl	_OPENSSL_free
	mov	w20, #0
	b	LBB0_15
LBB0_9:
	mov	w20, #-1
	b	LBB0_15
LBB0_10:
Lloh12:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _PKCS7_R_CTRL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PKCS7_R_CTRL_ERROR@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PKCS7_F_PKCS7_DECRYPT_RINFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	bl	_PKCS7err
LBB0_13:
	mov	w20, #-1
LBB0_14:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
LBB0_15:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	x0, [x21]
	ldr	w1, [x20]
	bl	_OPENSSL_clear_free
	str	x24, [x21]
	ldr	x8, [sp, #8]
	str	w8, [x20]
	mov	w20, #1
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_OP_DECRYPT,4,2        ; @EVP_PKEY_OP_DECRYPT
	.comm	_EVP_PKEY_CTRL_PKCS7_DECRYPT,4,2 ; @EVP_PKEY_CTRL_PKCS7_DECRYPT
	.comm	_PKCS7_F_PKCS7_DECRYPT_RINFO,4,2 ; @PKCS7_F_PKCS7_DECRYPT_RINFO
	.comm	_PKCS7_R_CTRL_ERROR,4,2         ; @PKCS7_R_CTRL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.no_dead_strip	_pkcs7_decrypt_rinfo
.subsections_via_symbols
