	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_check_server_ecdh_params
_ssl_check_server_ecdh_params:          ## @ssl_check_server_ecdh_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	8(%rax), %edi
	callq	_mbedtls_ecp_curve_info_from_grp_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%rax), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	(%rbx), %rdx
	movl	$-522, %ecx                     ## imm = 0xFDF6
	addl	4(%rdx), %ecx
	movl	$-1, %eax
	cmpl	$-359, %ecx                     ## imm = 0xFE99
	jb	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	callq	_MBEDTLS_SSL_DEBUG_ECP
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ## @MBEDTLS_ERR_SSL_INTERNAL_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"ECDH: Qp"

	.no_dead_strip	_ssl_check_server_ecdh_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_check_server_ecdh_params
_ssl_check_server_ecdh_params:          ; @ssl_check_server_ecdh_params
	.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	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #8]
	bl	_mbedtls_ecp_curve_info_from_grp_id
	cbz	x0, LBB0_3
; %bb.1:
	ldrsw	x1, [x0]
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x2, [x19]
	ldr	w8, [x2, #4]
	sub	w8, w8, #522
	cmn	w8, #359
	b.hs	LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh2:
	adrp	x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	bl	_MBEDTLS_SSL_DEBUG_ECP
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ; @MBEDTLS_ERR_SSL_INTERNAL_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"ECDH: Qp"

	.no_dead_strip	_ssl_check_server_ecdh_params
.subsections_via_symbols
