	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_dane_enable                ## -- Begin function SSL_dane_enable
	.p2align	4, 0x90
_SSL_dane_enable:                       ## @SSL_dane_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_4
## %bb.3:
	movq	_SSL_R_DANE_ALREADY_ENABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_SSL_R_CONTEXT_NOT_DANE_ENABLED@GOTPCREL(%rip), %rax
LBB0_11:
	movq	_SSL_F_SSL_DANE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_SSLerr
	movl	%r15d, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rsi, %r14
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SSL_set_tlsext_host_name
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_X509_VERIFY_PARAM_set1_host
	movl	$-1, %r15d
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	$-1, 24(%rbx)
	movq	(%rbx), %rax
	movq	%rax, 40(%rbx)
	xorl	%eax, %eax
	callq	_sk_danetls_record_new_null
	movq	%rax, %rcx
	movq	%rax, 32(%rbx)
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movl	$-1, %r15d
	movq	_SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_SSL_DANE_ENABLE,4,2      ## @SSL_F_SSL_DANE_ENABLE
	.comm	_SSL_R_CONTEXT_NOT_DANE_ENABLED,4,2 ## @SSL_R_CONTEXT_NOT_DANE_ENABLED
	.comm	_SSL_R_DANE_ALREADY_ENABLED,4,2 ## @SSL_R_DANE_ALREADY_ENABLED
	.comm	_SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN,4,2 ## @SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_dane_enable                ; -- Begin function SSL_dane_enable
	.p2align	2
_SSL_dane_enable:                       ; @SSL_dane_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w19, #0
Lloh0:
	adrp	x8, _SSL_R_DANE_ALREADY_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_R_DANE_ALREADY_ENABLED@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	mov	w19, #0
Lloh2:
	adrp	x8, _SSL_R_CONTEXT_NOT_DANE_ENABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_R_CONTEXT_NOT_DANE_ENABLED@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	x20, x1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_SSL_set_tlsext_host_name
	cbz	w0, LBB0_9
LBB0_6:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #0
	bl	_X509_VERIFY_PARAM_set1_host
	cbz	w0, LBB0_9
; %bb.7:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19, #24]
	ldr	x8, [x19]
	str	x8, [x19, #40]
	bl	_sk_danetls_record_new_null
	str	x0, [x19, #32]
	cbz	x0, LBB0_10
; %bb.8:
	mov	w19, #1
	b	LBB0_12
LBB0_9:
	mov	w19, #-1
Lloh4:
	adrp	x8, _SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	w19, #-1
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_11:
Lloh8:
	adrp	x9, _SSL_F_SSL_DANE_ENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SSL_F_SSL_DANE_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_SSLerr
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_SSL_DANE_ENABLE,4,2      ; @SSL_F_SSL_DANE_ENABLE
	.comm	_SSL_R_CONTEXT_NOT_DANE_ENABLED,4,2 ; @SSL_R_CONTEXT_NOT_DANE_ENABLED
	.comm	_SSL_R_DANE_ALREADY_ENABLED,4,2 ; @SSL_R_DANE_ALREADY_ENABLED
	.comm	_SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN,4,2 ; @SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
