	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DH_new_method                  ## -- Begin function DH_new_method
	.p2align	4, 0x90
_DH_new_method:                         ## @DH_new_method
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$40, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_CRYPTO_THREAD_lock_new
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_DH_get_default_method
	movq	%rax, 8(%rbx)
	movl	8(%rax), %eax
	movl	%eax, 20(%rbx)
	testq	%r14, %r14
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_ENGINE_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	%r14, 24(%rbx)
	jmp	LBB0_7
LBB0_1:
	movq	_DH_F_DH_NEW_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DHerr
	jmp	LBB0_17
LBB0_3:
	movq	_DH_F_DH_NEW_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DHerr
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_17
LBB0_9:
	xorl	%eax, %eax
	callq	_ENGINE_get_default_DH
	movq	%rax, %r14
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_ENGINE_get_DH
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_11
LBB0_8:
	movq	_ERR_R_ENGINE_LIB@GOTPCREL(%rip), %rax
LBB0_15:
	movq	_DH_F_DH_NEW_METHOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_DHerr
	jmp	LBB0_16
LBB0_10:
	movq	8(%rbx), %rax
LBB0_11:
	movl	8(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_CRYPTO_EX_INDEX_DH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rdx
	addq	$16, %rdx
	movq	%rbx, %rsi
	callq	_CRYPTO_new_ex_data
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.13:
	movq	%rbx, %rdi
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	_ERR_R_INIT_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	callq	_DH_free
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DH_F_DH_NEW_METHOD,4,2         ## @DH_F_DH_NEW_METHOD
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_ENGINE_LIB,4,2           ## @ERR_R_ENGINE_LIB
	.comm	_CRYPTO_EX_INDEX_DH,4,2         ## @CRYPTO_EX_INDEX_DH
	.comm	_ERR_R_INIT_FAIL,4,2            ## @ERR_R_INIT_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DH_new_method                  ; -- Begin function DH_new_method
	.p2align	2
_DH_new_method:                         ; @DH_new_method
	.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
	mov	x20, x0
	mov	w0, #40
	bl	_OPENSSL_zalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	bl	_CRYPTO_THREAD_lock_new
	str	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.2:
	bl	_DH_get_default_method
	str	x0, [x19, #8]
	ldr	w8, [x0, #8]
	str	w8, [x19, #20]
	cbz	x20, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_ENGINE_init
	cbz	w0, LBB0_9
; %bb.4:
	str	x20, [x19, #24]
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _DH_F_DH_NEW_METHOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DH_F_DH_NEW_METHOD@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	_DHerr
	b	LBB0_18
LBB0_6:
Lloh6:
	adrp	x8, _DH_F_DH_NEW_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DH_F_DH_NEW_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_DHerr
	mov	x0, x19
	bl	_OPENSSL_free
	b	LBB0_17
LBB0_7:
	bl	_ENGINE_get_default_DH
	mov	x20, x0
	str	x0, [x19, #24]
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_ENGINE_get_DH
	str	x0, [x19, #8]
	cbnz	x0, LBB0_12
LBB0_9:
Lloh12:
	adrp	x8, _ERR_R_ENGINE_LIB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_ENGINE_LIB@GOTPAGEOFF]
LBB0_10:
Lloh14:
	adrp	x9, _DH_F_DH_NEW_METHOD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DH_F_DH_NEW_METHOD@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_DHerr
	b	LBB0_16
LBB0_11:
	ldr	x0, [x19, #8]
LBB0_12:
	ldr	w8, [x0, #8]
	str	w8, [x19, #20]
Lloh17:
	adrp	x8, _CRYPTO_EX_INDEX_DH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CRYPTO_EX_INDEX_DH@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x2, x19, #16
	mov	x1, x19
	bl	_CRYPTO_new_ex_data
	cbz	w0, LBB0_16
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.14:
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_18
; %bb.15:
Lloh20:
	adrp	x8, _ERR_R_INIT_FAIL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_R_INIT_FAIL@GOTPAGEOFF]
	b	LBB0_10
LBB0_16:
	mov	x0, x19
	bl	_DH_free
LBB0_17:
	mov	x19, #0
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DH_F_DH_NEW_METHOD,4,2         ; @DH_F_DH_NEW_METHOD
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_ENGINE_LIB,4,2           ; @ERR_R_ENGINE_LIB
	.comm	_CRYPTO_EX_INDEX_DH,4,2         ; @CRYPTO_EX_INDEX_DH
	.comm	_ERR_R_INIT_FAIL,4,2            ; @ERR_R_INIT_FAIL
.subsections_via_symbols
