	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dane_create_tlsa_owner    ## -- Begin function ldns_dane_create_tlsa_owner
	.p2align	4, 0x90
_ldns_dane_create_tlsa_owner:           ## @ldns_dane_create_tlsa_owner
	.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
	movl	%ecx, %r14d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%edi, %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	movq	%r12, %rdi
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rax, %rbx
	decl	%eax
	movb	%al, (%r15)
	addl	$-128, %r14d
	cmpl	$2, %r14d
	ja	LBB0_1
## %bb.2:
	movslq	%r14d, %rax
	leaq	l_reltable.ldns_dane_create_tlsa_owner(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	leaq	(%r15,%rbx), %rdi
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	subl	%ebx, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rax, %r14
	addq	%rbx, %r14
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	cltq
	addq	%r14, %rax
	movslq	(%r13), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_4
## %bb.3:
	movq	_LDNS_STATUS_DOMAINNAME_OVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_LDNS_STATUS_DANE_UNKNOWN_TRANSPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rbx
	addq	%r14, %rbx
	movq	%r12, %rdi
	callq	_ldns_rdf_data
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_memcpy
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	addl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_ldns_rdf_new_frm_data
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ## @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ## @LDNS_RDF_TYPE_DNAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X_%d"

L_.str.1:                               ## @.str.1
	.asciz	"\004_tcp"

L_.str.2:                               ## @.str.2
	.asciz	"\004_udp"

L_.str.3:                               ## @.str.3
	.asciz	"\005_sctp"

	.comm	_LDNS_STATUS_DANE_UNKNOWN_TRANSPORT,4,2 ## @LDNS_STATUS_DANE_UNKNOWN_TRANSPORT
	.comm	_LDNS_STATUS_DOMAINNAME_OVERFLOW,4,2 ## @LDNS_STATUS_DOMAINNAME_OVERFLOW
	.comm	_LDNS_STATUS_MEM_ERR,4,2        ## @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.ldns_dane_create_tlsa_owner
l_reltable.ldns_dane_create_tlsa_owner:
	.long	L_.str.2-l_reltable.ldns_dane_create_tlsa_owner
	.long	L_.str.1-l_reltable.ldns_dane_create_tlsa_owner
	.long	L_.str.3-l_reltable.ldns_dane_create_tlsa_owner

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dane_create_tlsa_owner    ; -- Begin function ldns_dane_create_tlsa_owner
	.p2align	2
_ldns_dane_create_tlsa_owner:           ; @ldns_dane_create_tlsa_owner
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	bl	_ldns_rdf_get_type
Lloh7:
	adrp	x25, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh8:
	ldr	x25, [x25, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	w1, [x24]
	str	x22, [sp, #-16]!
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_snprintf
	add	sp, sp, #16
	mov	x22, x0
	sub	w8, w22, #1
	strb	w8, [x21]
	sub	w8, w23, #128
	cmp	w8, #2
	b.hi	LBB0_3
; %bb.1:
Lloh11:
	adrp	x9, l_switch.table.ldns_dane_create_tlsa_owner@PAGE
Lloh12:
	add	x9, x9, l_switch.table.ldns_dane_create_tlsa_owner@PAGEOFF
	ldr	x2, [x9, w8, sxtw #3]
	add	x0, x21, x22
	ldr	w8, [x24]
	sub	w1, w8, w22
	bl	_snprintf
	add	x26, x0, x22
	mov	x0, x20
	bl	_ldns_rdf_size
	add	x8, x26, w0, sxtw
	ldrsw	x9, [x24]
	cmp	x8, x9
	b.ls	LBB0_4
; %bb.2:
Lloh13:
	adrp	x8, _LDNS_STATUS_DOMAINNAME_OVERFLOW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LDNS_STATUS_DOMAINNAME_OVERFLOW@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _LDNS_STATUS_DANE_UNKNOWN_TRANSPORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_STATUS_DANE_UNKNOWN_TRANSPORT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	add	x22, x21, x26
	mov	x0, x20
	bl	_ldns_rdf_data
	mov	x23, x0
	mov	x0, x20
	bl	_ldns_rdf_size
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	ldr	x22, [x25]
	mov	x0, x20
	bl	_ldns_rdf_size
	add	w1, w0, w26
	mov	x0, x22
	mov	x2, x21
	bl	_ldns_rdf_new_frm_data
	str	x0, [x19]
Lloh17:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh19:
	adrp	x9, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_5:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ; @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X_%d"

l_.str.1:                               ; @.str.1
	.asciz	"\004_tcp"

l_.str.2:                               ; @.str.2
	.asciz	"\004_udp"

l_.str.3:                               ; @.str.3
	.asciz	"\005_sctp"

	.comm	_LDNS_STATUS_DANE_UNKNOWN_TRANSPORT,4,2 ; @LDNS_STATUS_DANE_UNKNOWN_TRANSPORT
	.comm	_LDNS_STATUS_DOMAINNAME_OVERFLOW,4,2 ; @LDNS_STATUS_DOMAINNAME_OVERFLOW
	.comm	_LDNS_STATUS_MEM_ERR,4,2        ; @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ldns_dane_create_tlsa_owner
l_switch.table.ldns_dane_create_tlsa_owner:
	.quad	l_.str.2
	.quad	l_.str.1
	.quad	l_.str.3

.subsections_via_symbols
