	.file	"extr_x509_crl.c_x509_get_entries.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	x509_get_entries, @function
x509_get_entries:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdi], rsi
	je	.L5
	mov	ecx, DWORD PTR MBEDTLS_ASN1_SEQUENCE[rip]
	mov	rbx, rdx
	or	ecx, DWORD PTR MBEDTLS_ASN1_CONSTRUCTED[rip]
	mov	r13, rdi
	lea	rdx, 8[rsp]
	call	mbedtls_asn1_get_tag@PLT
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR 0[r13]
	mov	rbp, QWORD PTR 8[rsp]
	add	rbp, rax
	cmp	rax, rbp
	jnb	.L5
	lea	r12, 16[rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR MBEDTLS_ASN1_SEQUENCE[rip]
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	or	ecx, DWORD PTR MBEDTLS_ASN1_CONSTRUCTED[rip]
	call	mbedtls_asn1_get_tag@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 0[r13]
	mov	rsi, QWORD PTR 16[rsp]
	lea	rdx, 16[rbx]
	mov	rdi, r13
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR 24[rbx], al
	mov	r14, QWORD PTR 0[r13]
	mov	QWORD PTR 40[rbx], rsi
	mov	QWORD PTR 32[rbx], r14
	add	r14, rsi
	mov	rsi, r14
	call	mbedtls_x509_get_serial@PLT
	test	eax, eax
	jne	.L1
	lea	rdx, 12[rbx]
	mov	rsi, r14
	mov	rdi, r13
	call	mbedtls_x509_get_time@PLT
	test	eax, eax
	jne	.L1
	lea	rdx, 8[rbx]
	mov	rsi, r14
	mov	rdi, r13
	call	x509_get_crl_entry_ext@PLT
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 0[r13], rbp
	jb	.L15
.L5:
	xor	eax, eax
.L1:
	mov	rdi, QWORD PTR 24[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 48
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L8
	cmp	rbp, QWORD PTR 0[r13]
	jbe	.L5
	mov	rbx, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	DWORD PTR MBEDTLS_ERR_ASN1_UNEXPECTED_TAG[rip], eax
	jne	.L1
	jmp	.L5
.L8:
	mov	eax, DWORD PTR MBEDTLS_ERR_X509_ALLOC_FAILED[rip]
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	x509_get_entries, .-x509_get_entries
	.comm	MBEDTLS_ERR_X509_ALLOC_FAILED,4,4
	.comm	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,4
	.comm	MBEDTLS_ASN1_SEQUENCE,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_x509_crl.c_x509_get_entries.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	x509_get_entries, %function
x509_get_entries:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0]
	sub	sp, sp, #20
	cmp	r3, r1
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L5
	ldr	r7, .L17+4
	ldr	r8, .L17+8
	ldr	ip, [r7]
	ldr	r3, [r8]
	mov	r5, r2
	orr	r3, ip, r3
	add	r2, sp, #4
	mov	r4, r0
	bl	mbedtls_asn1_get_tag
	cmp	r0, #0
	bne	.L14
	ldr	r3, [r4]
	ldr	r6, [sp, #4]
	add	r6, r3, r6
	cmp	r3, r6
	bcs	.L5
.L9:
	ldr	r1, [r7]
	ldr	r3, [r8]
	mov	r0, r4
	orr	r3, r1, r3
	add	r2, sp, #8
	mov	r1, r6
	bl	mbedtls_asn1_get_tag
	cmp	r0, #0
	bne	.L1
	ldr	r2, [r4]
	ldr	r3, [sp, #8]
	ldrb	r1, [r2]	@ zero_extendqisi2
	mov	r0, r4
	strb	r1, [r5, #16]
	ldr	r1, [r4]
	add	r2, r5, #12
	add	r9, r1, r3
	str	r1, [r5, #20]
	str	r3, [r5, #24]
	mov	r1, r9
	bl	mbedtls_x509_get_serial
	cmp	r0, #0
	bne	.L1
	mov	r1, r9
	mov	r0, r4
	add	r2, r5, #8
	bl	mbedtls_x509_get_time
	cmp	r0, #0
	bne	.L1
	mov	r1, r9
	mov	r0, r4
	add	r2, r5, #4
	bl	x509_get_crl_entry_ext
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4]
	cmp	r3, r6
	bcc	.L15
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
	b	.L5
.L15:
	mov	r1, #28
	mov	r0, #1
	bl	mbedtls_calloc
	cmp	r0, #0
	str	r0, [r5]
	beq	.L8
	ldr	r3, [r4]
	cmp	r6, r3
	bls	.L5
	mov	r5, r0
	b	.L9
.L8:
	ldr	r3, .L17+16
	ldr	r0, [r3]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	MBEDTLS_ASN1_SEQUENCE
	.word	MBEDTLS_ASN1_CONSTRUCTED
	.word	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.word	MBEDTLS_ERR_X509_ALLOC_FAILED
	.size	x509_get_entries, .-x509_get_entries
	.comm	MBEDTLS_ERR_X509_ALLOC_FAILED,4,4
	.comm	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,4
	.comm	MBEDTLS_ASN1_SEQUENCE,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
