	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pbe_test_run
_pbe_test_run:                          ## @pbe_test_run
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	8(%rbx), %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_PBE_TYPE_PBKDF2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	40(%rbx), %rdi
	movl	36(%rbx), %esi
	movl	32(%rbx), %edx
	movl	28(%rbx), %ecx
	movl	20(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	16(%rbx), %r9d
	pushq	%r15
	pushq	%rax
	callq	_PKCS5_PBKDF2_HMAC
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	_PBE_TYPE_SCRYPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	40(%rbx), %rdi
	movl	36(%rbx), %esi
	movl	32(%rbx), %edx
	movl	8(%rbx), %r11d
	movl	28(%rbx), %ecx
	movl	60(%rbx), %r8d
	movl	56(%rbx), %r9d
	movl	52(%rbx), %r10d
	movl	48(%rbx), %eax
	pushq	%r11
	pushq	%r15
	pushq	%rax
	pushq	%r10
	callq	_EVP_PBE_scrypt
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_PBE_TYPE_PKCS12@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	40(%rbx), %rdi
	movl	36(%rbx), %esi
	movl	32(%rbx), %edx
	movl	28(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	20(%rbx), %r9d
	movl	8(%rbx), %r10d
	movl	16(%rbx), %eax
	subq	$8, %rsp
	pushq	%rax
	pushq	%r15
	pushq	%r10
	callq	_PKCS12_key_gen_uni
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %r8
	movl	%ecx, %r9d
	callq	_memory_err_compare
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	xorl	%eax, %eax
LBB0_13:
	movq	%rax, (%r14)
LBB0_14:
	movq	%r15, %rdi
	callq	_OPENSSL_free
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INTERNAL_ERROR"

	.comm	_PBE_TYPE_PBKDF2,8,3            ## @PBE_TYPE_PBKDF2
L_.str.1:                               ## @.str.1
	.asciz	"PBKDF2_ERROR"

	.comm	_PBE_TYPE_SCRYPT,8,3            ## @PBE_TYPE_SCRYPT
L_.str.2:                               ## @.str.2
	.asciz	"SCRYPT_ERROR"

	.comm	_PBE_TYPE_PKCS12,8,3            ## @PBE_TYPE_PKCS12
L_.str.3:                               ## @.str.3
	.asciz	"PKCS12_ERROR"

L_.str.4:                               ## @.str.4
	.asciz	"KEY_MISMATCH"

	.no_dead_strip	_pbe_test_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pbe_test_run
_pbe_test_run:                          ; @pbe_test_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21, #8]
	bl	_OPENSSL_malloc
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PBE_TYPE_PBKDF2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PBE_TYPE_PBKDF2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x21, #40]
	ldp	w2, w1, [x21, #32]
	ldr	w3, [x21, #28]
	ldp	w5, w4, [x21, #16]
	ldr	w6, [x21, #8]
	mov	x7, x20
	bl	_PKCS5_PBKDF2_HMAC
	cbnz	x0, LBB0_10
; %bb.3:
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_12
LBB0_5:
Lloh7:
	adrp	x9, _PBE_TYPE_SCRYPT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PBE_TYPE_SCRYPT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x0, [x21, #40]
	ldp	w2, w1, [x21, #32]
	ldr	w3, [x21, #28]
	ldp	w5, w4, [x21, #56]
	ldp	w7, w6, [x21, #48]
	ldr	w8, [x21, #8]
	str	w8, [sp, #8]
	str	x20, [sp]
	bl	_EVP_PBE_scrypt
	cbnz	x0, LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh12:
	adrp	x9, _PBE_TYPE_PKCS12@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PBE_TYPE_PKCS12@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x21, #40]
	ldp	w2, w1, [x21, #32]
	ldp	w4, w3, [x21, #24]
	ldr	w6, [x21, #8]
	ldp	w8, w5, [x21, #16]
	str	w8, [sp]
	mov	x7, x20
	bl	_PKCS12_key_gen_uni
	cbz	x0, LBB0_14
LBB0_10:
	ldp	w3, w2, [x21, #8]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	mov	x5, x3
	bl	_memory_err_compare
	cbz	w0, LBB0_13
; %bb.11:
	mov	x8, #0
LBB0_12:
	str	x8, [x19]
LBB0_13:
	mov	x0, x20
	bl	_OPENSSL_free
	mov	w0, #1
	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
	add	sp, sp, #64
	ret
LBB0_14:
Lloh17:
	adrp	x8, l_.str.3@PAGE
Lloh18:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INTERNAL_ERROR"

	.comm	_PBE_TYPE_PBKDF2,8,3            ; @PBE_TYPE_PBKDF2
l_.str.1:                               ; @.str.1
	.asciz	"PBKDF2_ERROR"

	.comm	_PBE_TYPE_SCRYPT,8,3            ; @PBE_TYPE_SCRYPT
l_.str.2:                               ; @.str.2
	.asciz	"SCRYPT_ERROR"

	.comm	_PBE_TYPE_PKCS12,8,3            ; @PBE_TYPE_PKCS12
l_.str.3:                               ; @.str.3
	.asciz	"PKCS12_ERROR"

l_.str.4:                               ; @.str.4
	.asciz	"KEY_MISMATCH"

	.no_dead_strip	_pbe_test_run
.subsections_via_symbols
