	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_create_empty_rrsig        ## -- Begin function ldns_create_empty_rrsig
	.p2align	4, 0x90
_ldns_create_empty_rrsig:               ## @ldns_create_empty_rrsig
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_owner
	movl	%eax, %edi
	callq	_ldns_dname_label_count
	movl	%eax, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_owner
	movl	%eax, %edi
	callq	_ldns_dname_is_wildcard
	cmpq	$1, %rax
	adcl	$-1, %r12d
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ldns_rr_new_frm_type
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_ttl
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_get_class
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_set_ttl
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_ldns_rr_set_class
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_owner
	movl	%eax, %edi
	callq	_ldns_rdf_clone
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_ldns_rr_set_owner
	movq	_LDNS_RDF_TYPE_INT32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ldns_native2rdf_int32
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_rrsig_set_origttl
	movq	%r15, %rdi
	callq	_ldns_key_pubkey_owner
	movl	%eax, %edi
	callq	_ldns_rdf_clone
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ldns_dname2canonical
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_rrsig_set_signame
	movq	_LDNS_RDF_TYPE_INT8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_ldns_native2rdf_int8
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_rrsig_set_labels
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ldns_key_inception
	movq	_LDNS_RDF_TYPE_TIME@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ldns_key_inception
	movq	%rax, %rsi
LBB0_2:
	movl	%r12d, %edi
	callq	_ldns_native2rdf_int32
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_rrsig_set_inception
	movq	%r15, %rdi
	callq	_ldns_key_expiration
	movl	(%r14), %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_ldns_key_expiration
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_4:
	movq	_LDNS_DEFAULT_EXP_TIME@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
LBB0_5:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_ldns_native2rdf_int32
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_rrsig_set_expiration
	movq	_LDNS_RDF_TYPE_INT16@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ldns_key_keytag
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ldns_native2rdf_int16
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_rrsig_set_keytag
	movq	_LDNS_RDF_TYPE_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ldns_key_algorithm
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ldns_native2rdf_int8
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_rrsig_set_algorithm
	movq	_LDNS_RDF_TYPE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_get_type
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ldns_native2rdf_int16
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_rrsig_set_typecovered
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_RRSIG,4,2         ## @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RDF_TYPE_INT32,4,2        ## @LDNS_RDF_TYPE_INT32
	.comm	_LDNS_RDF_TYPE_INT8,4,2         ## @LDNS_RDF_TYPE_INT8
	.comm	_LDNS_RDF_TYPE_TIME,4,2         ## @LDNS_RDF_TYPE_TIME
	.comm	_LDNS_DEFAULT_EXP_TIME,8,3      ## @LDNS_DEFAULT_EXP_TIME
	.comm	_LDNS_RDF_TYPE_INT16,4,2        ## @LDNS_RDF_TYPE_INT16
	.comm	_LDNS_RDF_TYPE_ALG,4,2          ## @LDNS_RDF_TYPE_ALG
	.comm	_LDNS_RDF_TYPE_TYPE,4,2         ## @LDNS_RDF_TYPE_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_create_empty_rrsig        ; -- Begin function ldns_create_empty_rrsig
	.p2align	2
_ldns_create_empty_rrsig:               ; @ldns_create_empty_rrsig
	.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	x20, x1
	mov	x19, x0
	mov	w1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_owner
	bl	_ldns_dname_label_count
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_owner
	bl	_ldns_dname_is_wildcard
	cmp	x0, #0
	cset	w8, ne
	sub	w22, w21, w8
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ldns_rr_new_frm_type
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_ttl
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_get_class
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_ldns_rr_set_ttl
	mov	x0, x21
	mov	x1, x24
	bl	_ldns_rr_set_class
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_owner
	bl	_ldns_rdf_clone
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_set_owner
Lloh3:
	adrp	x8, _LDNS_RDF_TYPE_INT32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RDF_TYPE_INT32@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_ldns_native2rdf_int32
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_rrsig_set_origttl
	mov	x0, x20
	bl	_ldns_key_pubkey_owner
	bl	_ldns_rdf_clone
	mov	x23, x0
	bl	_ldns_dname2canonical
	mov	x0, x21
	mov	x1, x23
	bl	_ldns_rr_rrsig_set_signame
Lloh6:
	adrp	x8, _LDNS_RDF_TYPE_INT8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RDF_TYPE_INT8@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_ldns_native2rdf_int8
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_rrsig_set_labels
	mov	x0, #0
	bl	_time
	mov	x22, x0
	mov	x0, x20
	bl	_ldns_key_inception
Lloh9:
	adrp	x24, _LDNS_RDF_TYPE_TIME@GOTPAGE
Lloh10:
	ldr	x24, [x24, _LDNS_RDF_TYPE_TIME@GOTPAGEOFF]
	ldr	w23, [x24]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ldns_key_inception
	mov	x1, x0
	b	LBB0_3
LBB0_2:
	mov	x1, x22
LBB0_3:
	mov	x0, x23
	bl	_ldns_native2rdf_int32
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_rrsig_set_inception
	mov	x0, x20
	bl	_ldns_key_expiration
	ldr	w23, [x24]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_ldns_key_expiration
	mov	x1, x0
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _LDNS_DEFAULT_EXP_TIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_DEFAULT_EXP_TIME@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x22
LBB0_6:
	mov	x0, x23
	bl	_ldns_native2rdf_int32
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_rrsig_set_expiration
Lloh14:
	adrp	x8, _LDNS_RDF_TYPE_INT16@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_RDF_TYPE_INT16@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_ldns_key_keytag
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_native2rdf_int16
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_rrsig_set_keytag
Lloh17:
	adrp	x8, _LDNS_RDF_TYPE_ALG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LDNS_RDF_TYPE_ALG@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_ldns_key_algorithm
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_native2rdf_int8
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_rrsig_set_algorithm
Lloh20:
	adrp	x8, _LDNS_RDF_TYPE_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LDNS_RDF_TYPE_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_get_type
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_native2rdf_int16
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_rr_rrsig_set_typecovered
	mov	x0, x21
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_RRSIG,4,2         ; @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RDF_TYPE_INT32,4,2        ; @LDNS_RDF_TYPE_INT32
	.comm	_LDNS_RDF_TYPE_INT8,4,2         ; @LDNS_RDF_TYPE_INT8
	.comm	_LDNS_RDF_TYPE_TIME,4,2         ; @LDNS_RDF_TYPE_TIME
	.comm	_LDNS_DEFAULT_EXP_TIME,8,3      ; @LDNS_DEFAULT_EXP_TIME
	.comm	_LDNS_RDF_TYPE_INT16,4,2        ; @LDNS_RDF_TYPE_INT16
	.comm	_LDNS_RDF_TYPE_ALG,4,2          ; @LDNS_RDF_TYPE_ALG
	.comm	_LDNS_RDF_TYPE_TYPE,4,2         ; @LDNS_RDF_TYPE_TYPE
.subsections_via_symbols
