	.file	"extr_dnssec_sign.c_ldns_key_list_filter_for_non_dnskey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ldns_key_list_filter_for_non_dnskey, @function
ldns_key_list_filter_for_non_dnskey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	ecx, 128
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	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
	mov	rbx, rdi
	sub	rsp, 1040
	.cfi_def_cfa_offset 1088
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1032[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	rep stosq
	mov	rdi, rbx
	call	ldns_key_list_key_count@PLT
	test	rax, rax
	je	.L1
	xor	r12d, r12d
	xor	r14d, r14d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	add	r12, 1
	call	ldns_key_algorithm@PLT
	mov	DWORD PTR [rsp+rax*4], 1
.L3:
	mov	rdi, rbx
	call	ldns_key_list_key_count@PLT
	cmp	rax, r12
	jbe	.L32
	mov	rdi, rbx
	mov	rsi, r12
	call	ldns_key_list_key@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ldns_key_flags@PLT
	test	DWORD PTR LDNS_KEY_SEP_KEY[rip], eax
	jne	.L4
	test	r14, r14
	jne	.L4
	mov	rdi, rbp
	call	ldns_key_algorithm@PLT
	mov	r14, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L32:
	test	r14, r14
	jne	.L33
.L1:
	mov	rax, QWORD PTR 1032[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	add	rsp, 1040
	.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
.L33:
	.cfi_restore_state
	mov	DWORD PTR [rsp+r14*4], 0
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbx
	mov	rsi, r12
	call	ldns_key_list_key@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ldns_key_flags@PLT
	test	DWORD PTR LDNS_KEY_SEP_KEY[rip], eax
	je	.L7
	test	DWORD PTR LDNS_SIGN_WITH_ALL_ALGORITHMS[rip], r13d
	je	.L8
	mov	rdi, rbp
	call	ldns_key_algorithm@PLT
	mov	eax, DWORD PTR [rsp+rax*4]
	test	eax, eax
	jne	.L35
.L8:
	xor	esi, esi
	mov	rdi, rbp
	call	ldns_key_set_use@PLT
.L7:
	add	r12, 1
.L6:
	mov	rdi, rbx
	call	ldns_key_list_key_count@PLT
	cmp	rax, r12
	ja	.L9
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, rbp
	call	ldns_key_algorithm@PLT
	mov	DWORD PTR [rsp+rax*4], 0
	jmp	.L7
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ldns_key_list_filter_for_non_dnskey, .-ldns_key_list_filter_for_non_dnskey
	.comm	LDNS_SIGN_WITH_ALL_ALGORITHMS,4,4
	.comm	LDNS_KEY_SEP_KEY,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_dnssec_sign.c_ldns_key_list_filter_for_non_dnskey.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ldns_key_list_filter_for_non_dnskey, %function
ldns_key_list_filter_for_non_dnskey:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	sub	sp, sp, #1024
	sub	sp, sp, #8
	ldr	r3, .L33
	mov	r2, #1024
	mov	r10, r1
	add	r0, sp, #4
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #1028]
	mov	r3,#0
	bl	memset
	mov	r0, r5
	bl	ldns_key_list_key_count
	cmp	r0, #0
	beq	.L1
	mov	r4, #0
	mov	r8, #1
	mov	r7, r4
	ldr	r9, .L33+4
	b	.L3
.L4:
	mov	r0, r6
	bl	ldns_key_algorithm
	add	r3, sp, #1024
	add	r3, r3, #8
	add	r0, r3, r0, lsl #2
	str	r8, [r0, #-1028]
	add	r4, r4, #1
.L3:
	mov	r0, r5
	bl	ldns_key_list_key_count
	cmp	r0, r4
	bls	.L29
	mov	r1, r4
	mov	r0, r5
	bl	ldns_key_list_key
	mov	r6, r0
	bl	ldns_key_flags
	ldr	r3, [r9]
	and	r0, r0, r3
	orrs	r3, r0, r7
	bne	.L4
	mov	r0, r6
	bl	ldns_key_algorithm
	mov	r7, r0
	b	.L4
.L29:
	cmp	r7, #0
	bne	.L30
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #1028]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #1024
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L30:
	mov	r3, #0
	add	r2, sp, #1024
	add	r2, r2, #8
	add	r7, r2, r7, lsl #2
	str	r3, [r7, #-1028]
	mov	r4, r3
	mov	r9, r3
	ldr	r7, .L33+4
	ldr	r8, .L33+8
	b	.L6
.L9:
	mov	r1, r4
	mov	r0, r5
	bl	ldns_key_list_key
	mov	r6, r0
	bl	ldns_key_flags
	ldr	r3, [r7]
	tst	r0, r3
	beq	.L7
	ldr	r3, [r8]
	tst	r10, r3
	beq	.L8
	mov	r0, r6
	bl	ldns_key_algorithm
	add	r3, sp, #1024
	add	r3, r3, #8
	add	r0, r3, r0, lsl #2
	ldr	r3, [r0, #-1028]
	cmp	r3, #0
	bne	.L32
.L8:
	mov	r0, r6
	mov	r1, #0
	bl	ldns_key_set_use
.L7:
	add	r4, r4, #1
.L6:
	mov	r0, r5
	bl	ldns_key_list_key_count
	cmp	r0, r4
	bhi	.L9
	b	.L1
.L32:
	mov	r0, r6
	bl	ldns_key_algorithm
	add	r3, sp, #1024
	add	r3, r3, #8
	add	r0, r3, r0, lsl #2
	str	r9, [r0, #-1028]
	b	.L7
.L31:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	LDNS_KEY_SEP_KEY
	.word	LDNS_SIGN_WITH_ALL_ALGORITHMS
	.size	ldns_key_list_filter_for_non_dnskey, .-ldns_key_list_filter_for_non_dnskey
	.comm	LDNS_SIGN_WITH_ALL_ALGORITHMS,4,4
	.comm	LDNS_KEY_SEP_KEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
