	.file	"extr_x509_crl.c_x509_get_crl_ext.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	x509_get_crl_ext, @function
x509_get_crl_ext:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	ecx, ecx
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	mbedtls_x509_get_ext@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR 0[rbp]
	mov	rbx, rsp
	cmp	r12, rax
	ja	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	r12, rax
	je	.L7
	mov	eax, DWORD PTR MBEDTLS_ERR_ASN1_LENGTH_MISMATCH[rip]
	add	eax, DWORD PTR MBEDTLS_ERR_X509_INVALID_EXTENSIONS[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	add	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 0[rbp], rax
	cmp	rax, r12
	jnb	.L4
.L3:
	mov	ecx, DWORD PTR MBEDTLS_ASN1_CONSTRUCTED[rip]
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, rbp
	or	ecx, DWORD PTR MBEDTLS_ASN1_SEQUENCE[rip]
	call	mbedtls_asn1_get_tag@PLT
	test	eax, eax
	je	.L6
	add	eax, DWORD PTR MBEDTLS_ERR_X509_INVALID_EXTENSIONS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR MBEDTLS_ERR_ASN1_UNEXPECTED_TAG[rip], eax
	jne	.L1
.L7:
	xor	eax, eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	x509_get_crl_ext, .-x509_get_crl_ext
	.comm	MBEDTLS_ERR_X509_INVALID_EXTENSIONS,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_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_crl_ext.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_crl_ext, %function
x509_get_crl_ext:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	ip, .L14
	sub	sp, sp, #12
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	mov	r4, r0
	mov	r5, r1
	str	r3, [sp]
	bl	mbedtls_x509_get_ext
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r4]
	cmp	r5, r3
	bls	.L4
	ldr	r7, .L14+4
	ldr	r6, .L14+8
	b	.L3
.L6:
	ldr	r3, [r4]
	ldr	r2, [sp]
	add	r3, r3, r2
	cmp	r3, r5
	str	r3, [r4]
	bcs	.L4
.L3:
	ldr	r1, [r7]
	ldr	r3, [r6]
	mov	r2, sp
	orr	r3, r1, r3
	mov	r0, r4
	mov	r1, r5
	bl	mbedtls_asn1_get_tag
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L14+12
	ldr	r3, [r3]
	add	r0, r0, r3
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L14+16
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
.L7:
	mov	r0, #0
	b	.L1
.L4:
	cmp	r5, r3
	beq	.L7
	ldr	r2, .L14+12
	ldr	r3, .L14+20
	ldr	r0, [r2]
	ldr	r3, [r3]
	add	r0, r0, r3
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	MBEDTLS_ASN1_CONSTRUCTED
	.word	MBEDTLS_ASN1_SEQUENCE
	.word	MBEDTLS_ERR_X509_INVALID_EXTENSIONS
	.word	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.word	MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.size	x509_get_crl_ext, .-x509_get_crl_ext
	.comm	MBEDTLS_ERR_X509_INVALID_EXTENSIONS,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_CONSTRUCTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
