	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_dh_init                 ## -- Begin function crypto_dh_init
	.p2align	4, 0x90
_crypto_dh_init:                        ## @crypto_dh_init
	.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
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)
	movq	%rcx, %rdi
	movq	%rdx, %rsi
	callq	_os_get_random
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_os_memcmp
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	movq	$0, (%r13)
LBB0_3:
	movq	%rbx, -48(%rbp)
	leaq	-48(%rbp), %rax
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	pushq	%rax
	pushq	%r14
	callq	_crypto_mod_exp
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdx
	xorl	%r15d, %r15d
	cmpq	%rbx, %rdx
	jae	LBB0_6
## %bb.5:
	subq	%rdx, %rbx
	leaq	(%r14,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_os_memmove
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_os_memset
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_dh_init                 ; -- Begin function crypto_dh_init
	.p2align	2
_crypto_dh_init:                        ; @crypto_dh_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	str	x0, [sp, #8]
	mov	x0, x3
	mov	x1, x2
	bl	_os_get_random
	tbnz	x0, #63, LBB0_7
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_os_memcmp
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.2:
	str	xzr, [x21]
LBB0_3:
	str	x20, [sp]
	add	x0, sp, #8
	mov	x7, sp
	mov	w1, #1
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	bl	_crypto_mod_exp
	tbnz	x0, #63, LBB0_7
; %bb.4:
	ldr	x2, [sp]
	cmp	x2, x20
	b.hs	LBB0_6
; %bb.5:
	sub	x20, x20, x2
	add	x0, x19, x20, lsl #3
	mov	x1, x19
	bl	_os_memmove
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_os_memset
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
