	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dane_create_tlsa_rr       ## -- Begin function ldns_dane_create_tlsa_rr
	.p2align	4, 0x90
_ldns_dane_create_tlsa_rr:              ## @ldns_dane_create_tlsa_rr
	.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	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	_LDNS_RR_TYPE_TLSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ldns_rr_new_frm_type
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_LDNS_RDF_TYPE_INT8@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_ldns_native2rdf_int8
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%r14), %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ldns_rr_set_rdf
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_ldns_native2rdf_int8
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%r14), %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_ldns_rr_set_rdf
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ldns_native2rdf_int8
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%r14), %rdi
	movq	%rax, %rsi
	movl	$2, %edx
	callq	_ldns_rr_set_rdf
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_ldns_dane_cert2rdf
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r15
	movq	(%r14), %rdi
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rsi
	movl	$3, %edx
	callq	_ldns_rr_set_rdf
	movq	(%r15), %rbx
	jmp	LBB0_9
LBB0_7:
	movq	(%r14), %rdi
	callq	_ldns_rr_free
	movq	$0, (%r14)
LBB0_8:
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rax, %rbx
	callq	_ldns_rr_free
	movq	$0, (%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_TLSA,4,2          ## @LDNS_RR_TYPE_TLSA
	.comm	_LDNS_STATUS_MEM_ERR,8,3        ## @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_RDF_TYPE_INT8,4,2         ## @LDNS_RDF_TYPE_INT8
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dane_create_tlsa_rr       ; -- Begin function ldns_dane_create_tlsa_rr
	.p2align	2
_ldns_dane_create_tlsa_rr:              ; @ldns_dane_create_tlsa_rr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_TLSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_TLSA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ldns_rr_new_frm_type
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x24, _LDNS_RDF_TYPE_INT8@GOTPAGE
Lloh4:
	ldr	x24, [x24, _LDNS_RDF_TYPE_INT8@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x23
	bl	_ldns_native2rdf_int8
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	ldr	x0, [x19]
	mov	w2, #0
	bl	_ldns_rr_set_rdf
	ldr	w0, [x24]
	mov	x1, x22
	bl	_ldns_native2rdf_int8
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x0
	ldr	x0, [x19]
	mov	w2, #1
	bl	_ldns_rr_set_rdf
	ldr	w0, [x24]
	mov	x1, x20
	bl	_ldns_native2rdf_int8
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
	ldr	x0, [x19]
	mov	w2, #2
	bl	_ldns_rr_set_rdf
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_ldns_dane_cert2rdf
	mov	x20, x0
Lloh5:
	adrp	x21, _LDNS_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _LDNS_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x19]
	cmp	x20, x8
	b.ne	LBB0_9
; %bb.5:
	ldr	x1, [sp, #8]
	mov	w2, #3
	bl	_ldns_rr_set_rdf
	ldr	x20, [x21]
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19]
	bl	_ldns_rr_free
	str	xzr, [x19]
LBB0_7:
Lloh7:
	adrp	x8, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	_ldns_rr_free
	str	xzr, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_TLSA,4,2          ; @LDNS_RR_TYPE_TLSA
	.comm	_LDNS_STATUS_MEM_ERR,8,3        ; @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_RDF_TYPE_INT8,4,2         ; @LDNS_RDF_TYPE_INT8
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
.subsections_via_symbols
