	.file	"extr_pkcs12.c_pkcs12_parse_pbe_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pkcs12_parse_pbe_params, @function
pkcs12_parse_pbe_params:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MBEDTLS_ASN1_CONSTRUCTED[rip]
	or	eax, DWORD PTR MBEDTLS_ASN1_SEQUENCE[rip]
	cmp	DWORD PTR 12[rdi], eax
	je	.L2
	mov	eax, DWORD PTR MBEDTLS_ERR_ASN1_UNEXPECTED_TAG[rip]
	add	eax, DWORD PTR MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	lea	rdx, 8[rsi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	movsx	r13, DWORD PTR 8[rdi]
	mov	ecx, DWORD PTR MBEDTLS_ASN1_OCTET_STRING[rip]
	add	r13, QWORD PTR [rdi]
	mov	rsi, r13
	call	mbedtls_asn1_get_tag@PLT
	test	eax, eax
	je	.L4
.L9:
	add	eax, DWORD PTR MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	movsx	rdx, DWORD PTR 8[rbp]
	mov	rsi, r13
	mov	rdi, rbx
	mov	QWORD PTR 0[rbp], rax
	add	rax, rdx
	mov	rdx, r12
	mov	QWORD PTR [rbx], rax
	call	mbedtls_asn1_get_int@PLT
	test	eax, eax
	jne	.L9
	cmp	QWORD PTR [rbx], r13
	je	.L1
	mov	eax, DWORD PTR MBEDTLS_ERR_ASN1_LENGTH_MISMATCH[rip]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	pkcs12_parse_pbe_params, .-pkcs12_parse_pbe_params
	.comm	MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT,4,4
	.comm	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,4
	.comm	MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,4
	.comm	MBEDTLS_ASN1_SEQUENCE,4,4
	.comm	MBEDTLS_ASN1_OCTET_STRING,4,4
	.comm	MBEDTLS_ASN1_CONSTRUCTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pkcs12.c_pkcs12_parse_pbe_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkcs12_parse_pbe_params, %function
pkcs12_parse_pbe_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L9
	ldr	r3, .L9+4
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	lr, [ip]
	ldr	ip, [r0, #8]
	orr	r3, r3, lr
	cmp	ip, r3
	beq	.L2
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	add	r0, r0, r3
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, r1
	ldr	r7, [r0]
	ldr	r1, [r0, #4]
	ldr	r3, .L9+16
	add	r7, r7, r1
	ldr	r3, [r3]
	mov	r5, r2
	mov	r1, r7
	add	r2, r6, #4
	mov	r4, r0
	bl	mbedtls_asn1_get_tag
	subs	r3, r0, #0
	beq	.L4
	ldr	r2, .L9+8
	ldr	r0, [r2]
	add	r0, r3, r0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r1, [r4]
	ldr	r3, [r6, #4]
	str	r1, [r6]
	add	r3, r1, r3
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	str	r3, [r4]
	bl	mbedtls_asn1_get_int
	cmp	r0, #0
	bne	.L8
	ldr	r3, [r4]
	cmp	r3, r7
	ldrne	r3, .L9+20
	ldrne	r2, .L9+8
	ldrne	r3, [r3]
	ldrne	r0, [r2]
	addne	r0, r0, r3
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	add	r0, r0, r3
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	MBEDTLS_ASN1_SEQUENCE
	.word	MBEDTLS_ASN1_CONSTRUCTED
	.word	MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT
	.word	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.word	MBEDTLS_ASN1_OCTET_STRING
	.word	MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.size	pkcs12_parse_pbe_params, .-pkcs12_parse_pbe_params
	.comm	MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT,4,4
	.comm	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,4
	.comm	MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,4
	.comm	MBEDTLS_ASN1_SEQUENCE,4,4
	.comm	MBEDTLS_ASN1_OCTET_STRING,4,4
	.comm	MBEDTLS_ASN1_CONSTRUCTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
