	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PBE_string2key
_PBE_string2key:                        ## @PBE_string2key
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r14d
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_5:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	leaq	-96(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_decode_PKCS12_PBEParams
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movq	24(%rbp), %r10
	movq	-96(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rax), %r9d
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_4:
	movq	_HX509_ALG_NOT_SUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_17
LBB0_7:
	movl	$1, %r9d
LBB0_9:
	movq	-88(%rbp), %r15
	movl	-80(%rbp), %ecx
	movq	_PKCS12_KEY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movl	4(%rdx), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	movq	%r10, %rbx
	callq	_PKCS12_key_gen
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	_PKCS12_IV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %eax
	movq	%rbx, %r10
	movl	4(%r13), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	callq	_PKCS12_key_gen
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	16(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_hx509_crypto_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	-44(%rbp), %edi
	callq	_hx509_crypto_allow_weak
	movl	-44(%rbp), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_hx509_crypto_set_key_data
	movl	-44(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r15d
	callq	_hx509_crypto_destroy
	jmp	LBB0_16
LBB0_10:
	movq	_HX509_CRYPTO_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_16:
	leaq	-96(%rbp), %rdi
	callq	_free_PKCS12_PBEParams
LBB0_17:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%edi, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_ALG_NOT_SUPP,4,2         ## @HX509_ALG_NOT_SUPP
	.comm	_PKCS12_KEY_ID,4,2              ## @PKCS12_KEY_ID
	.comm	_HX509_CRYPTO_INTERNAL_ERROR,4,2 ## @HX509_CRYPTO_INTERNAL_ERROR
	.comm	_PKCS12_IV_ID,4,2               ## @PKCS12_IV_ID
	.no_dead_strip	_PBE_string2key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PBE_string2key
_PBE_string2key:                        ; @PBE_string2key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x7
	mov	x21, x6
	mov	x25, x5
	mov	x20, x4
	mov	x28, x3
	mov	x19, x2
	mov	x24, x1
	mov	x22, x0
	cbz	x1, LBB0_5
; %bb.1:
	mov	x0, x24
	bl	_strlen
	mov	x26, x0
	cbz	x19, LBB0_6
LBB0_2:
	ldp	w1, w0, [x19]
	add	x2, sp, #24
	mov	x3, #0
	bl	_decode_PKCS12_PBEParams
	mov	x27, x0
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	x8, [sp, #24]
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w27, [x8]
	b	LBB0_8
LBB0_5:
	mov	w26, #0
	cbnz	x19, LBB0_2
LBB0_6:
Lloh0:
	adrp	x8, _HX509_ALG_NOT_SUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_ALG_NOT_SUPP@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	b	LBB0_15
LBB0_7:
	mov	w27, #1
LBB0_8:
	ldr	x28, [sp, #32]
	ldr	w19, [sp, #40]
Lloh3:
	adrp	x8, _PKCS12_KEY_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PKCS12_KEY_ID@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldp	w6, w7, [x20]
	str	x23, [sp]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x28
	mov	x3, x19
	mov	x5, x27
	bl	_PKCS12_key_gen
	cbz	w0, LBB0_13
; %bb.9:
Lloh6:
	adrp	x8, _PKCS12_IV_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS12_IV_ID@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	ldp	w6, w7, [x25]
	str	x23, [sp]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x28
	mov	x3, x19
	mov	x5, x27
	bl	_PKCS12_key_gen
	cbz	w0, LBB0_13
; %bb.10:
	add	x3, sp, #20
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	bl	_hx509_crypto_init
	mov	x27, x0
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	w0, [sp, #20]
	bl	_hx509_crypto_allow_weak
	ldr	w0, [sp, #20]
	ldp	w2, w1, [x20]
	bl	_hx509_crypto_set_key_data
	mov	x27, x0
	ldr	w0, [sp, #20]
	cbz	w27, LBB0_16
; %bb.12:
	bl	_hx509_crypto_destroy
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _HX509_CRYPTO_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HX509_CRYPTO_INTERNAL_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
LBB0_14:
	add	x0, sp, #24
	bl	_free_PKCS12_PBEParams
LBB0_15:
	mov	x0, x27
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	str	w0, [x19]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_ALG_NOT_SUPP,4,2         ; @HX509_ALG_NOT_SUPP
	.comm	_PKCS12_KEY_ID,4,2              ; @PKCS12_KEY_ID
	.comm	_HX509_CRYPTO_INTERNAL_ERROR,4,2 ; @HX509_CRYPTO_INTERNAL_ERROR
	.comm	_PKCS12_IV_ID,4,2               ; @PKCS12_IV_ID
	.no_dead_strip	_PBE_string2key
.subsections_via_symbols
