	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecdh_make_params       ## -- Begin function mbedtls_ecdh_make_params
	.p2align	4, 0x90
_mbedtls_ecdh_make_params:              ## @mbedtls_ecdh_make_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	%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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.3:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r13
	leaq	16(%rbx), %rsi
	leaq	4(%rbx), %r14
	movq	%r13, %rdi
	movq	%r14, %rdx
	movq	%r8, %rcx
	movq	%r9, %r8
	callq	_mbedtls_ecdh_gen_public
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_mbedtls_ecp_tls_write_group
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rax
	addq	%rax, %r12
	subq	%rax, %r15
	movl	(%rbx), %edx
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_mbedtls_ecp_tls_write_point
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-64(%rbp), %rax
	addq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecdh_make_params       ; -- Begin function mbedtls_ecdh_make_params
	.p2align	2
_mbedtls_ecdh_make_params:              ; @mbedtls_ecdh_make_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	x20, x0
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_6
; %bb.2:
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	add	x1, x22, #16
	add	x24, x22, #4
	mov	x0, x20
	mov	x2, x24
	mov	x3, x4
	mov	x4, x5
	bl	_mbedtls_ecdh_gen_public
	cbnz	w0, LBB0_7
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	mov	x3, x21
	bl	_mbedtls_ecp_tls_write_group
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x8, [sp, #8]
	add	x4, x23, x8
	sub	x5, x21, x8
	ldr	w2, [x22]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x24
	bl	_mbedtls_ecp_tls_write_point
	cbnz	w0, LBB0_7
; %bb.5:
	ldp	x9, x8, [sp]
	add	x8, x9, x8
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
.subsections_via_symbols
