	.file	"extr_x509_vfy.c_get_crl_score.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_crl_score, @function
get_crl_score:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 16[rsp], 0
	mov	eax, DWORD PTR [rcx]
	test	DWORD PTR IDP_INVALID[rip], eax
	jne	.L5
	mov	rbp, rcx
	mov	rcx, QWORD PTR [rdi]
	mov	r12d, DWORD PTR [rdx]
	mov	rbx, rdx
	mov	r13, rdi
	mov	edx, DWORD PTR IDP_REASONS[rip]
	mov	r15, rsi
	mov	r14, r8
	mov	ecx, DWORD PTR [rcx]
	test	DWORD PTR X509_V_FLAG_EXTENDED_CRL_SUPPORT[rip], ecx
	jne	.L4
	or	edx, DWORD PTR IDP_INDIRECT[rip]
	test	edx, eax
	jne	.L5
.L6:
	mov	rdi, rbp
	call	X509_CRL_get_issuer@PLT
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], eax
	call	X509_get_issuer_name@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, eax
	call	X509_NAME_cmp@PLT
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IDP_INDIRECT[rip], eax
	je	.L5
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR EXFLAG_CRITICAL[rip], eax
	jne	.L10
.L34:
	mov	eax, DWORD PTR CRL_SCORE_NOCRITICAL[rip]
	or	DWORD PTR 16[rsp], eax
.L10:
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r13
	call	check_crl_time@PLT
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR CRL_SCORE_TIME[rip]
	or	DWORD PTR 16[rsp], eax
.L11:
	mov	rdx, r15
	lea	rcx, 16[rsp]
	mov	rsi, rbp
	mov	rdi, r13
	call	crl_akid_check@PLT
	mov	edx, DWORD PTR 16[rsp]
	test	DWORD PTR CRL_SCORE_AKID[rip], edx
	jne	.L32
.L5:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L33
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	test	eax, edx
	je	.L7
	mov	eax, r12d
	not	eax
	test	DWORD PTR 4[rbp], eax
	jne	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR CRL_SCORE_ISSUER_NAME[rip]
	or	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR EXFLAG_CRITICAL[rip], eax
	jne	.L10
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rcx, 20[rsp]
	mov	rsi, rbp
	mov	rdi, r14
	call	crl_crldp_check@PLT
	test	rax, rax
	jne	.L12
	mov	eax, DWORD PTR 16[rsp]
.L13:
	mov	DWORD PTR [rbx], r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	QWORD PTR 16[rbp], 0
	je	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, r12d
	mov	eax, DWORD PTR 20[rsp]
	not	edx
	test	edx, eax
	je	.L5
	or	r12d, eax
	mov	eax, DWORD PTR 16[rsp]
	or	eax, DWORD PTR CRL_SCORE_SCOPE[rip]
	jmp	.L13
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_crl_score, .-get_crl_score
	.comm	X509_V_FLAG_EXTENDED_CRL_SUPPORT,4,4
	.comm	IDP_REASONS,4,4
	.comm	IDP_INVALID,4,4
	.comm	IDP_INDIRECT,4,4
	.comm	EXFLAG_CRITICAL,4,4
	.comm	CRL_SCORE_TIME,4,4
	.comm	CRL_SCORE_SCOPE,4,4
	.comm	CRL_SCORE_NOCRITICAL,4,4
	.comm	CRL_SCORE_ISSUER_NAME,4,4
	.comm	CRL_SCORE_AKID,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_vfy.c_get_crl_score.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_crl_score, %function
get_crl_score:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	lr, .L34
	mov	r4, r3
	ldr	lr, [lr]
	ldr	r3, [r3]
	mov	r6, r2
	ldr	r2, .L34+4
	sub	sp, sp, #16
	tst	r3, lr
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r9, [sp, #48]
	str	ip, [sp, #4]
	bne	.L5
	ldr	r2, .L34+8
	mov	r7, r1
	ldr	r1, [r0]
	mov	r5, r0
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, .L34+12
	tst	r0, r1
	ldr	r2, [r2]
	ldr	r8, [r6]
	bne	.L4
	ldr	r1, .L34+16
	ldr	r1, [r1]
	orr	r2, r2, r1
	tst	r2, r3
	bne	.L5
.L6:
	mov	r0, r9
	bl	X509_get_issuer_name
	mov	r10, r0
	mov	r0, r4
	bl	X509_CRL_get_issuer
	mov	r1, r0
	mov	r0, r10
	bl	X509_NAME_cmp
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L34+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L5
.L9:
	ldr	r3, .L34+20
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	mov	r1, r4
	tst	r2, r3
	ldreq	r2, .L34+24
	ldreq	r3, [sp, #4]
	ldreq	r2, [r2]
	mov	r0, r5
	orreq	r3, r3, r2
	mov	r2, #0
	streq	r3, [sp, #4]
	bl	check_crl_time
	cmp	r0, #0
	ldrne	r2, .L34+28
	ldrne	r3, [sp, #4]
	ldrne	r2, [r2]
	mov	r0, r5
	orrne	r3, r3, r2
	strne	r3, [sp, #4]
	mov	r2, r7
	add	r3, sp, #4
	mov	r1, r4
	bl	crl_akid_check
	ldr	r3, .L34+32
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L32
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L34+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	tst	r3, r2
	beq	.L7
	ldr	r3, [r4, #4]
	bics	r3, r3, r8
	bne	.L6
	b	.L5
.L8:
	ldr	r2, .L34+36
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [sp, #4]
	b	.L9
.L32:
	mov	r1, r4
	mov	r0, r9
	add	r3, sp, #8
	bl	crl_crldp_check
	cmp	r0, #0
	bne	.L12
	ldr	r0, [sp, #4]
.L13:
	str	r8, [r6]
	b	.L1
.L7:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L6
	b	.L5
.L12:
	ldr	r3, [sp, #8]
	bics	r2, r3, r8
	beq	.L5
	ldr	r2, .L34+40
	ldr	r0, [sp, #4]
	ldr	r2, [r2]
	orr	r8, r8, r3
	orr	r0, r0, r2
	b	.L13
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	IDP_INVALID
	.word	.LC0
	.word	X509_V_FLAG_EXTENDED_CRL_SUPPORT
	.word	IDP_REASONS
	.word	IDP_INDIRECT
	.word	EXFLAG_CRITICAL
	.word	CRL_SCORE_NOCRITICAL
	.word	CRL_SCORE_TIME
	.word	CRL_SCORE_AKID
	.word	CRL_SCORE_ISSUER_NAME
	.word	CRL_SCORE_SCOPE
	.size	get_crl_score, .-get_crl_score
	.comm	X509_V_FLAG_EXTENDED_CRL_SUPPORT,4,4
	.comm	IDP_REASONS,4,4
	.comm	IDP_INVALID,4,4
	.comm	IDP_INDIRECT,4,4
	.comm	EXFLAG_CRITICAL,4,4
	.comm	CRL_SCORE_TIME,4,4
	.comm	CRL_SCORE_SCOPE,4,4
	.comm	CRL_SCORE_NOCRITICAL,4,4
	.comm	CRL_SCORE_ISSUER_NAME,4,4
	.comm	CRL_SCORE_AKID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
