	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_get_auto_dh                ## -- Begin function ssl_get_auto_dh
	.p2align	4, 0x90
_ssl_get_auto_dh:                       ## @ssl_get_auto_dh
	.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	16(%rdi), %rax
	cmpl	$2, (%rax)
	je	LBB0_19
## %bb.1:
	movq	8(%rdi), %rax
	movq	_SSL_aNULL@GOTPCREL(%rip), %rcx
	movq	_SSL_aPSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.2:
	movl	$128, %r15d
	cmpl	$256, 4(%rax)                   ## imm = 0x100
	je	LBB0_7
LBB0_19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DH_get_1024_160                ## TAILCALL
LBB0_3:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movl	(%rax), %edi
	callq	_EVP_PKEY_security_bits
	movl	%eax, %r15d
	cmpl	$128, %eax
	jl	LBB0_18
LBB0_7:
	xorl	%eax, %eax
	callq	_DH_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_BN_set_word
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	xorl	%edi, %edi
	cmpl	$192, %r15d
	jb	LBB0_14
## %bb.13:
	callq	_BN_get_rfc3526_prime_8192
	jmp	LBB0_15
LBB0_10:
	movq	%rbx, %rdi
	callq	_DH_free
	jmp	LBB0_11
LBB0_18:
	cmpl	$112, %r15d
	jl	LBB0_19
## %bb.20:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DH_get_2048_224                ## TAILCALL
LBB0_14:
	callq	_BN_get_rfc3526_prime_3072
LBB0_15:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_DH_set0_pqg
	testl	%eax, %eax
	jne	LBB0_5
LBB0_17:
	movq	%rbx, %rdi
	callq	_DH_free
	movq	%r15, %rdi
	callq	_BN_free
LBB0_11:
	movq	%r14, %rdi
	callq	_BN_free
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_aNULL,4,2                  ## @SSL_aNULL
	.comm	_SSL_aPSK,4,2                   ## @SSL_aPSK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_get_auto_dh                ; -- Begin function ssl_get_auto_dh
	.p2align	2
_ssl_get_auto_dh:                       ; @ssl_get_auto_dh
	.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
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _SSL_aNULL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SSL_aNULL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _SSL_aPSK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SSL_aPSK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x8, #4]
	cmp	w8, #256
	b.ne	LBB0_14
; %bb.3:
	mov	w21, #128
	b	LBB0_6
LBB0_4:
	ldr	x8, [x0]
	cbz	x8, LBB0_20
; %bb.5:
	ldr	w0, [x8]
	bl	_EVP_PKEY_security_bits
	mov	x21, x0
	cmp	w0, #128
	b.lt	LBB0_12
LBB0_6:
	bl	_DH_new
	mov	x19, x0
	cbz	x0, LBB0_21
; %bb.7:
	bl	_BN_new
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	w1, #2
	bl	_BN_set_word
	cbz	w0, LBB0_11
; %bb.9:
	cmp	w21, #192
	b.lo	LBB0_15
; %bb.10:
	mov	x0, #0
	bl	_BN_get_rfc3526_prime_8192
	b	LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_DH_free
	b	LBB0_19
LBB0_12:
	cmp	w21, #112
	b.lt	LBB0_14
; %bb.13:
	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
	b	_DH_get_2048_224
LBB0_14:
	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
	b	_DH_get_1024_160
LBB0_15:
	mov	x0, #0
	bl	_BN_get_rfc3526_prime_3072
LBB0_16:
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, x20
	bl	_DH_set0_pqg
	cbnz	w0, LBB0_21
LBB0_18:
	mov	x0, x19
	bl	_DH_free
	mov	x0, x21
	bl	_BN_free
LBB0_19:
	mov	x0, x20
	bl	_BN_free
LBB0_20:
	mov	x19, #0
LBB0_21:
	mov	x0, x19
	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_aNULL,4,2                  ; @SSL_aNULL
	.comm	_SSL_aPSK,4,2                   ; @SSL_aPSK
.subsections_via_symbols
