	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dane_ctx_enable
_dane_ctx_enable:                       ## @dane_ctx_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	%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	$1, %eax
	cmpq	$0, 16(%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movq	_DANETLS_MATCHING_LAST@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rax
	shlq	$32, %rax
	movabsq	$4294967296, %rbx               ## imm = 0x100000000
	addq	%rax, %rbx
	shrq	$29, %rbx
	movl	%ebx, %edi
	callq	_OPENSSL_zalloc
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_OPENSSL_zalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	testq	%r12, %r12
	je	LBB0_11
## %bb.3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_dane_mds@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_OSSL_NELEM
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	xorl	%r14d, %r14d
	movq	_NID_undef@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	(%r13), %rdi
	callq	_OSSL_NELEM
	addq	$24, %r14
	cmpq	%rax, %r12
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r14), %rdi
	cmpq	(%r15), %rdi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_EVP_get_digestbynid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rcx
	movq	8(%rcx,%r14), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r13), %rax
	movq	8(%rax,%r14), %rcx
	movq	16(%rax,%r14), %rax
	movq	%rax, (%rbx,%rcx,8)
	jmp	LBB0_8
LBB0_11:
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	movq	%r12, %rdi
	callq	_OPENSSL_free
	movq	_SSL_F_DANE_CTX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movl	$1, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DANETLS_MATCHING_LAST,8,3      ## @DANETLS_MATCHING_LAST
	.comm	_SSL_F_DANE_CTX_ENABLE,4,2      ## @SSL_F_DANE_CTX_ENABLE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_dane_mds,8,3                   ## @dane_mds
	.comm	_NID_undef,8,3                  ## @NID_undef
	.no_dead_strip	_dane_ctx_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dane_ctx_enable
_dane_ctx_enable:                       ; @dane_ctx_enable
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_11
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _DANETLS_MATCHING_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DANETLS_MATCHING_LAST@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x8, #4294967296
	add	x8, x8, x22, lsl #32
	lsr	x21, x8, #29
	mov	x0, x21
	bl	_OPENSSL_zalloc
	mov	x20, x0
	mov	x0, x21
	bl	_OPENSSL_zalloc
	mov	x21, x0
	cmp	x0, #0
	ccmp	x20, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_OPENSSL_free
	mov	x0, x20
	bl	_OPENSSL_free
Lloh3:
	adrp	x8, _SSL_F_DANE_CTX_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_DANE_CTX_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #0
	b	LBB0_11
LBB0_4:
Lloh9:
	adrp	x23, _dane_mds@GOTPAGE
Lloh10:
	ldr	x23, [x23, _dane_mds@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_OSSL_NELEM
	cbz	x0, LBB0_10
; %bb.5:
	mov	x24, #0
	mov	x25, #0
Lloh11:
	adrp	x26, _NID_undef@GOTPAGE
Lloh12:
	ldr	x26, [x26, _NID_undef@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	ldr	x0, [x23]
	bl	_OSSL_NELEM
	add	x24, x24, #24
	cmp	x25, x0
	b.hs	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x0, [x8, x24]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_EVP_get_digestbynid
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	str	x0, [x20, x8, lsl #3]
	ldr	x8, [x23]
	add	x8, x8, x24
	ldp	x8, x9, [x8, #8]
	str	x9, [x21, x8, lsl #3]
	b	LBB0_6
LBB0_10:
	stp	x21, x20, [x19, #8]
	mov	w0, #1
	str	x22, [x19]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DANETLS_MATCHING_LAST,8,3      ; @DANETLS_MATCHING_LAST
	.comm	_SSL_F_DANE_CTX_ENABLE,4,2      ; @SSL_F_DANE_CTX_ENABLE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_dane_mds,8,3                   ; @dane_mds
	.comm	_NID_undef,8,3                  ; @NID_undef
	.no_dead_strip	_dane_ctx_enable
.subsections_via_symbols
