	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_prepare_for_verify
_ldns_prepare_for_verify:               ## @ldns_prepare_for_verify
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rcx, %rdi
	callq	_ldns_rr_owner
	movl	%eax, %edi
	callq	_ldns_dname2canonical
	movq	%r13, %rdi
	callq	_ldns_rr_rrsig_typecovered
	movl	%eax, %edi
	callq	_ldns_rdf2rr_type
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_get_type
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ldns_rrsig2rawsig_buffer
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ldns_rrset_use_signature_ttl
	movq	%r15, %rdi
	callq	_ldns_rr_list_sort
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ldns_rrsig2buffer_wire
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ldns_rr_list2buffer_wire
	movq	%rax, %rcx
	movq	(%rbx), %rax
	cmpq	%rax, %rcx
	je	LBB0_7
LBB0_5:
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR,8,3 ## @LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_MEM_ERR,8,3        ## @LDNS_STATUS_MEM_ERR
	.no_dead_strip	_ldns_prepare_for_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_prepare_for_verify
_ldns_prepare_for_verify:               ; @ldns_prepare_for_verify
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x3
	bl	_ldns_rr_owner
	bl	_ldns_dname2canonical
	mov	x0, x21
	bl	_ldns_rr_rrsig_typecovered
	bl	_ldns_rdf2rr_type
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_get_type
	cmp	x23, x0
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_ldns_rrsig2rawsig_buffer
Lloh0:
	adrp	x22, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LDNS_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_rrset_use_signature_ttl
	mov	x0, x19
	bl	_ldns_rr_list_sort
	mov	x0, x20
	mov	x1, x21
	bl	_ldns_rrsig2buffer_wire
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_ldns_rr_list2buffer_wire
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x0, x8, x9, eq
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR,8,3 ; @LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_MEM_ERR,8,3        ; @LDNS_STATUS_MEM_ERR
	.no_dead_strip	_ldns_prepare_for_verify
.subsections_via_symbols
