	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_pkcs12_pbe             ## -- Begin function mbedtls_pkcs12_pbe
	.p2align	4, 0x90
_mbedtls_pkcs12_pbe:                    ## @mbedtls_pkcs12_pbe
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -112(%rbp)
	movl	%edx, %edi
	callq	_mbedtls_cipher_info_from_type
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%ebx, -116(%rbp)                ## 4-byte Spill
	movl	(%rax), %eax
	movl	4(%r12), %r10d
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	leaq	-96(%rbp), %rax
	leaq	-80(%rbp), %r8
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%ebx, %r9d
	pushq	%r10
	pushq	%rax
	callq	_pkcs12_pbe_derive_key_iv
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	leaq	-100(%rbp), %r14
	movq	%r14, %rdi
	callq	_mbedtls_cipher_init
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_cipher_setup
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	shll	$3, %ebx
	leaq	-100(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movl	%ebx, %edx
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	callq	_mbedtls_cipher_setkey
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movl	4(%r12), %edx
	leaq	-100(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	callq	_mbedtls_cipher_set_iv
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	leaq	-100(%rbp), %rdi
	callq	_mbedtls_cipher_reset
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	32(%rbp), %rbx
	movq	24(%rbp), %rdx
	movq	16(%rbp), %rsi
	leaq	-100(%rbp), %rdi
	leaq	-112(%rbp), %r8
	movq	%rbx, %rcx
	callq	_mbedtls_cipher_update
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	addq	-112(%rbp), %rbx
	leaq	-100(%rbp), %rdi
	leaq	-112(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mbedtls_cipher_finish
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	_mbedtls_zeroize
	leaq	-96(%rbp), %rdi
	movl	$16, %esi
	callq	_mbedtls_zeroize
	leaq	-100(%rbp), %rdi
	callq	_mbedtls_cipher_free
	jmp	LBB0_11
LBB0_1:
	movq	_MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH,4,2 ## @MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_pkcs12_pbe             ; -- Begin function mbedtls_pkcs12_pbe
	.p2align	2
_mbedtls_pkcs12_pbe:                    ; @mbedtls_pkcs12_pbe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x24, x4
	mov	x26, x3
	mov	x22, x1
	mov	x27, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	xzr, [sp, #8]
	mov	x0, x2
	bl	_mbedtls_cipher_info_from_type
	cbz	x0, LBB0_9
; %bb.1:
	mov	x23, x0
	ldp	w8, w7, [x0]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w25, w8, #3
	add	x4, sp, #40
	add	x6, sp, #24
	mov	x0, x27
	mov	x1, x26
	mov	x2, x24
	mov	x3, x21
	mov	x5, x25
	bl	_pkcs12_pbe_derive_key_iv
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.2:
	add	x0, sp, #20
	bl	_mbedtls_cipher_init
	add	x0, sp, #20
	mov	x1, x23
	bl	_mbedtls_cipher_setup
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.3:
	lsl	w2, w25, #3
	add	x0, sp, #20
	add	x1, sp, #40
	mov	x3, x22
	bl	_mbedtls_cipher_setkey
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w2, [x23, #4]
	add	x0, sp, #20
	add	x1, sp, #24
	bl	_mbedtls_cipher_set_iv
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.5:
	add	x0, sp, #20
	bl	_mbedtls_cipher_reset
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x22, [x29, #16]
	add	x0, sp, #20
	add	x4, sp, #8
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_mbedtls_cipher_update
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x8, [sp, #8]
	add	x1, x22, x8
	add	x0, sp, #20
	add	x2, sp, #8
	bl	_mbedtls_cipher_finish
Lloh3:
	adrp	x8, _MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w21, wzr, w8, eq
LBB0_8:
	add	x0, sp, #40
	mov	w1, #32
	bl	_mbedtls_zeroize
	add	x0, sp, #24
	mov	w1, #16
	bl	_mbedtls_zeroize
	add	x0, sp, #20
	bl	_mbedtls_cipher_free
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_10:
	ldr	x8, [sp, #72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	bl	___stack_chk_fail
	.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	_MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH,4,2 ; @MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH
.subsections_via_symbols
