	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_item_i2d_encrypt        ## -- Begin function PKCS12_item_i2d_encrypt
	.p2align	4, 0x90
_PKCS12_item_i2d_encrypt:               ## @PKCS12_item_i2d_encrypt
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_ASN1_OCTET_STRING_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_ASN1_item_i2d
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movl	%eax, %r13d
	movq	%rbx, %r9
	addq	$4, %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %r8d
	pushq	$1
	pushq	%rbx
	callq	_PKCS12_pbe_crypt
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi
	movl	%r13d, %esi
	callq	_OPENSSL_cleanse
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	jmp	LBB0_11
LBB0_1:
	movq	_PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_ENCODE_ERROR@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_PKCS12err
	jmp	LBB0_7
LBB0_6:
	movq	_PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_ENCRYPT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
LBB0_7:
	movq	%rbx, %rdi
	callq	_ASN1_OCTET_STRING_free
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT,4,2 ## @PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_PKCS12_R_ENCODE_ERROR,4,2      ## @PKCS12_R_ENCODE_ERROR
	.comm	_PKCS12_R_ENCRYPT_ERROR,4,2     ## @PKCS12_R_ENCRYPT_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_item_i2d_encrypt        ; -- Begin function PKCS12_item_i2d_encrypt
	.p2align	2
_PKCS12_item_i2d_encrypt:               ; @PKCS12_item_i2d_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x25, x1
	mov	x24, x0
	str	xzr, [sp, #8]
	bl	_ASN1_OCTET_STRING_new
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	add	x1, sp, #8
	mov	x0, x23
	mov	x2, x25
	bl	_ASN1_item_i2d
	ldr	x3, [sp, #8]
	cbz	x3, LBB0_7
; %bb.2:
	mov	x23, x0
	add	x5, x19, #4
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x4, x23
	mov	x6, x19
	mov	w7, #1
	bl	_PKCS12_pbe_crypt
	cbz	w0, LBB0_9
; %bb.3:
	cbz	w20, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	mov	x1, x23
	bl	_OPENSSL_cleanse
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _PKCS12_R_ENCODE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PKCS12_R_ENCODE_ERROR@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	bl	_PKCS12err
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _PKCS12_R_ENCRYPT_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PKCS12_R_ENCRYPT_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_PKCS12err
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
LBB0_10:
	mov	x0, x19
	bl	_ASN1_OCTET_STRING_free
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT,4,2 ; @PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_PKCS12_R_ENCODE_ERROR,4,2      ; @PKCS12_R_ENCODE_ERROR
	.comm	_PKCS12_R_ENCRYPT_ERROR,4,2     ; @PKCS12_R_ENCRYPT_ERROR
.subsections_via_symbols
