	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_item_decrypt_d2i        ## -- Begin function PKCS12_item_decrypt_d2i
	.p2align	4, 0x90
_PKCS12_item_decrypt_d2i:               ## @PKCS12_item_decrypt_d2i
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%rsi, %r15
	movl	(%r8), %eax
	movl	4(%r8), %ebx
	leaq	-28(%rbp), %r10
	leaq	-40(%rbp), %r9
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	pushq	$0
	pushq	%r10
	callq	_PKCS12_pbe_crypt
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	-28(%rbp), %edx
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r15, %rcx
	callq	_ASN1_item_d2i
	movq	%rax, %rbx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rdi
	movl	-28(%rbp), %esi
	callq	_OPENSSL_cleanse
LBB0_4:
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.5:
	movq	_PKCS12_F_PKCS12_ITEM_DECRYPT_D2I@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
LBB0_6:
	movq	-40(%rbp), %rdi
	callq	_OPENSSL_free
	jmp	LBB0_7
LBB0_1:
	movq	_PKCS12_F_PKCS12_ITEM_DECRYPT_D2I@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_PKCS12_PBE_CRYPT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS12_F_PKCS12_ITEM_DECRYPT_D2I,4,2 ## @PKCS12_F_PKCS12_ITEM_DECRYPT_D2I
	.comm	_PKCS12_R_PKCS12_PBE_CRYPT_ERROR,4,2 ## @PKCS12_R_PKCS12_PBE_CRYPT_ERROR
	.comm	_PKCS12_R_DECODE_ERROR,4,2      ## @PKCS12_R_DECODE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_item_decrypt_d2i        ; -- Begin function PKCS12_item_decrypt_d2i
	.p2align	2
_PKCS12_item_decrypt_d2i:               ; @PKCS12_item_decrypt_d2i
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x5
	mov	x8, x3
	mov	x20, x1
	ldp	w4, w3, [x4]
	add	x5, sp, #24
	add	x6, sp, #12
	mov	x1, x2
	mov	x2, x8
	mov	w7, #0
	bl	_PKCS12_pbe_crypt
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [sp, #24]
	str	x8, [sp, #16]
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	mov	x0, #0
	mov	x3, x20
	bl	_ASN1_item_d2i
	mov	x20, x0
	cbz	w19, LBB0_3
; %bb.2:
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #12]
	bl	_OPENSSL_cleanse
LBB0_3:
	cbnz	x20, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _PKCS12_F_PKCS12_ITEM_DECRYPT_D2I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_F_PKCS12_ITEM_DECRYPT_D2I@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PKCS12_R_DECODE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PKCS12_R_DECODE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_PKCS12err
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_OPENSSL_free
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _PKCS12_F_PKCS12_ITEM_DECRYPT_D2I@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS12_F_PKCS12_ITEM_DECRYPT_D2I@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _PKCS12_R_PKCS12_PBE_CRYPT_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PKCS12_R_PKCS12_PBE_CRYPT_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_PKCS12err
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_F_PKCS12_ITEM_DECRYPT_D2I,4,2 ; @PKCS12_F_PKCS12_ITEM_DECRYPT_D2I
	.comm	_PKCS12_R_PKCS12_PBE_CRYPT_ERROR,4,2 ; @PKCS12_R_PKCS12_PBE_CRYPT_ERROR
	.comm	_PKCS12_R_DECODE_ERROR,4,2      ; @PKCS12_R_DECODE_ERROR
.subsections_via_symbols
