	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_dane_dup
_ssl_dane_dup:                          ## @ssl_dane_dup
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_DANETLS_ENABLED
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	(%r14), %rdi
	callq	_sk_danetls_record_num
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_dane_final
	movl	16(%r14), %eax
	movl	%eax, 16(%r13)
	movq	24(%r13), %rax
	movq	%rax, 8(%r13)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%r12d, %esi
	callq	_sk_danetls_record_new_reserve
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_sk_danetls_record_value
	movl	16(%rax), %esi
	movl	12(%rax), %edx
	movl	8(%rax), %ecx
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	movq	%r13, %rdi
	callq	_SSL_dane_tlsa_add
	testq	%rax, %rax
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_4
LBB0_9:
	movl	$1, %r15d
	jmp	LBB0_10
LBB0_8:
	movq	_SSL_F_SSL_DANE_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_SSL_DANE_DUP,4,2         ## @SSL_F_SSL_DANE_DUP
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_ssl_dane_dup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_dane_dup
_ssl_dane_dup:                          ; @ssl_dane_dup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_DANETLS_ENABLED
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x0, [x19]
	bl	_sk_danetls_record_num
	mov	x21, x0
	mov	x0, x20
	bl	_dane_final
	ldr	w8, [x19, #16]
	str	w8, [x20, #16]
	ldr	x8, [x20, #24]
	str	x8, [x20, #8]
	mov	x0, #0
	mov	x1, x21
	bl	_sk_danetls_record_new_reserve
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.2:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	mov	x1, x22
	bl	_sk_danetls_record_value
	ldp	w2, w1, [x0, #12]
	ldp	w4, w3, [x0, #4]
	ldr	w5, [x0]
	mov	x0, x20
	bl	_SSL_dane_tlsa_add
	cmp	x0, #0
	b.le	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	cmp	w21, w22
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #1
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _SSL_F_SSL_DANE_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_F_SSL_DANE_DUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_SSLerr
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_SSL_DANE_DUP,4,2         ; @SSL_F_SSL_DANE_DUP
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_ssl_dane_dup
.subsections_via_symbols
