	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_key_list_filter_for_dnskey
_ldns_key_list_filter_for_dnskey:       ## @ldns_key_list_filter_for_dnskey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -1076(%rbp)               ## 4-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	___bzero
	movq	%r15, %rdi
	callq	_ldns_key_list_key_count
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%r15, %rdi
	callq	_ldns_key_list_key_count
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	xorl	%ebx, %ebx
	movq	_LDNS_KEY_SEP_KEY@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_ldns_key_algorithm
	movl	$1, -1072(%rbp,%rax,4)
	incq	%rbx
	movq	%r15, %rdi
	callq	_ldns_key_list_key_count
	cmpq	%rax, %rbx
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ldns_key_list_key
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ldns_key_flags
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_ldns_key_algorithm
	movq	%rax, %r12
	jmp	LBB0_6
LBB0_7:
	testq	%r12, %r12
	je	LBB0_16
## %bb.8:
	movl	$0, -1072(%rbp,%r12,4)
	movq	%r15, %rdi
	callq	_ldns_key_list_key_count
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	xorl	%ebx, %ebx
	movq	_LDNS_SIGN_WITH_ALL_ALGORITHMS@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ldns_key_set_use
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ldns_key_list_key_count
	cmpq	%rax, %rbx
	jae	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ldns_key_list_key
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ldns_key_flags
	testl	%eax, (%r14)
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-1076(%rbp), %eax               ## 4-byte Reload
	testl	%eax, (%r13)
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	callq	_ldns_key_algorithm
	cmpl	$0, -1072(%rbp,%rax,4)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	callq	_ldns_key_algorithm
	movl	$0, -1072(%rbp,%rax,4)
	jmp	LBB0_15
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_KEY_SEP_KEY,4,2           ## @LDNS_KEY_SEP_KEY
	.comm	_LDNS_SIGN_WITH_ALL_ALGORITHMS,4,2 ## @LDNS_SIGN_WITH_ALL_ALGORITHMS
	.no_dead_strip	_ldns_key_list_filter_for_dnskey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_key_list_filter_for_dnskey
_ldns_key_list_filter_for_dnskey:       ; @ldns_key_list_filter_for_dnskey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x0, sp, #8
	mov	w1, #1024
	bl	_bzero
	mov	x0, x20
	bl	_ldns_key_list_key_count
	cbz	x0, LBB0_15
; %bb.1:
	mov	x0, x20
	bl	_ldns_key_list_key_count
	cbz	x0, LBB0_15
; %bb.2:
	mov	x22, #0
	mov	x21, #0
Lloh3:
	adrp	x24, _LDNS_KEY_SEP_KEY@GOTPAGE
Lloh4:
	ldr	x24, [x24, _LDNS_KEY_SEP_KEY@GOTPAGEOFF]
	add	x25, sp, #8
	mov	w26, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ldns_key_algorithm
	str	w26, [x25, x0, lsl #2]
	add	x22, x22, #1
	mov	x0, x20
	bl	_ldns_key_list_key_count
	cmp	x22, x0
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ldns_key_list_key
	mov	x23, x0
	bl	_ldns_key_flags
	ldr	w8, [x24]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	x21, #0, #0, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ldns_key_algorithm
	mov	x21, x0
	b	LBB0_3
LBB0_6:
	cbz	x21, LBB0_15
; %bb.7:
	add	x23, sp, #8
	str	wzr, [x23, x21, lsl #2]
	mov	x0, x20
	bl	_ldns_key_list_key_count
	cbz	x0, LBB0_15
; %bb.8:
	mov	x21, #0
Lloh5:
	adrp	x25, _LDNS_SIGN_WITH_ALL_ALGORITHMS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _LDNS_SIGN_WITH_ALL_ALGORITHMS@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_ldns_key_set_use
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_ldns_key_list_key_count
	cmp	x21, x0
	b.hs	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ldns_key_list_key
	mov	x22, x0
	bl	_ldns_key_flags
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x25]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_ldns_key_algorithm
	ldr	w8, [x23, x0, lsl #2]
	cbz	w8, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_ldns_key_algorithm
	str	wzr, [x23, x0, lsl #2]
	b	LBB0_10
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_KEY_SEP_KEY,4,2           ; @LDNS_KEY_SEP_KEY
	.comm	_LDNS_SIGN_WITH_ALL_ALGORITHMS,4,2 ; @LDNS_SIGN_WITH_ALL_ALGORITHMS
	.no_dead_strip	_ldns_key_list_filter_for_dnskey
.subsections_via_symbols
