	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_pbe_crypt               ## -- Begin function PKCS12_pbe_crypt
	.p2align	4, 0x90
_PKCS12_pbe_crypt:                      ## @PKCS12_pbe_crypt
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	24(%rbp), %r9d
	movl	(%r13), %ecx
	movl	4(%r13), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	%r15, %r8
	callq	_EVP_PBE_CipherInit
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movslq	%r12d, %rbx
	movq	%r15, %rdi
	callq	_EVP_CIPHER_CTX_block_size
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %rbx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	callq	_EVP_CipherUpdate
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movslq	-44(%rbp), %r14
	movq	%rbx, %rsi
	addq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_EVP_CipherFinal_ex
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	16(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	addl	-44(%rbp), %r14d
	movl	%r14d, (%rax)
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, (%rax)
	jmp	LBB0_14
LBB0_1:
	movq	_PKCS12_F_PKCS12_PBE_CRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_PKCS12_F_PKCS12_PBE_CRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	movq	_PKCS12_F_PKCS12_PBE_CRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	movq	_PKCS12_F_PKCS12_PBE_CRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_PKCS12_CIPHERFINAL_ERROR@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_PKCS12err
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_EVP_CIPHER_CTX_free
	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_PBE_CRYPT,4,2  ## @PKCS12_F_PKCS12_PBE_CRYPT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR,4,2 ## @PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.comm	_PKCS12_R_PKCS12_CIPHERFINAL_ERROR,4,2 ## @PKCS12_R_PKCS12_CIPHERFINAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_pbe_crypt               ; -- Begin function PKCS12_pbe_crypt
	.p2align	2
_PKCS12_pbe_crypt:                      ; @PKCS12_pbe_crypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x21, x6
	mov	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x27, x0
	bl	_EVP_CIPHER_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldp	w3, w0, [x27]
	mov	x1, x26
	mov	x2, x25
	mov	x4, x19
	mov	x5, x22
	bl	_EVP_PBE_CipherInit
	cbz	w0, LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_block_size
	add	x0, x0, w23, sxtw
	bl	_OPENSSL_malloc
	mov	x22, x0
	cbz	x0, LBB0_11
; %bb.3:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x3, x24
	mov	x4, x23
	bl	_EVP_CipherUpdate
	cbz	w0, LBB0_12
; %bb.4:
	ldrsw	x23, [sp, #12]
	add	x1, x22, x23
	add	x2, sp, #12
	mov	x0, x19
	bl	_EVP_CipherFinal_ex
	cbz	w0, LBB0_13
; %bb.5:
	cbz	x21, LBB0_7
; %bb.6:
	ldr	w8, [sp, #12]
	add	w8, w8, w23
	str	w8, [x21]
LBB0_7:
	cbz	x20, LBB0_15
; %bb.8:
	str	x22, [x20]
	b	LBB0_15
LBB0_9:
Lloh0:
	adrp	x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh5:
	adrp	x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh10:
	adrp	x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_PKCS12err
	b	LBB0_15
LBB0_12:
	mov	x0, x22
	bl	_OPENSSL_free
Lloh16:
	adrp	x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_OPENSSL_free
Lloh21:
	adrp	x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PKCS12_F_PKCS12_PBE_CRYPT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _PKCS12_R_PKCS12_CIPHERFINAL_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PKCS12_R_PKCS12_CIPHERFINAL_ERROR@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	bl	_PKCS12err
	mov	x22, #0
LBB0_15:
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_free
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_F_PKCS12_PBE_CRYPT,4,2  ; @PKCS12_F_PKCS12_PBE_CRYPT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR,4,2 ; @PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.comm	_PKCS12_R_PKCS12_CIPHERFINAL_ERROR,4,2 ; @PKCS12_R_PKCS12_CIPHERFINAL_ERROR
.subsections_via_symbols
