	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DH_check_params                ## -- Begin function DH_check_params
	.p2align	4, 0x90
_DH_check_params:                       ## @DH_check_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$0, (%rsi)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rbx, %rdi
	callq	_BN_CTX_start
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r13
	movl	4(%r12), %edi
	callq	_BN_is_odd
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_DH_CHECK_P_NOT_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_4:
	movl	(%r12), %edi
	callq	_BN_is_negative
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	(%r12), %edi
	callq	_BN_is_zero
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	callq	_BN_is_one
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	_DH_NOT_SUITABLE_GENERATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_8:
	movl	4(%r12), %esi
	movq	%r13, %rdi
	callq	_BN_copy
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_BN_sub_word
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:
	movq	_DH_NOT_SUITABLE_GENERATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_12:
	movl	$1, %r14d
LBB0_13:
	movq	%rbx, %rdi
	callq	_BN_CTX_end
	movq	%rbx, %rdi
	callq	_BN_CTX_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DH_CHECK_P_NOT_PRIME,4,2       ## @DH_CHECK_P_NOT_PRIME
	.comm	_DH_NOT_SUITABLE_GENERATOR,4,2  ## @DH_NOT_SUITABLE_GENERATOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DH_check_params                ; -- Begin function DH_check_params
	.p2align	2
_DH_check_params:                       ; @DH_check_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	str	wzr, [x1]
	bl	_BN_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_13
; %bb.2:
	mov	x22, x0
	ldr	w0, [x21, #4]
	bl	_BN_is_odd
	cbnz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _DH_CHECK_P_NOT_PRIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DH_CHECK_P_NOT_PRIME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_4:
	ldr	w0, [x21]
	bl	_BN_is_negative
Lloh3:
	adrp	x23, _DH_NOT_SUITABLE_GENERATOR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DH_NOT_SUITABLE_GENERATOR@GOTPAGEOFF]
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x21]
	bl	_BN_is_zero
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x21]
	bl	_BN_is_one
	cbz	x0, LBB0_8
LBB0_7:
	ldr	w8, [x23]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_8:
	ldr	w1, [x21, #4]
	mov	x0, x22
	bl	_BN_copy
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x22
	mov	w1, #1
	bl	_BN_sub_word
	cbz	w0, LBB0_13
; %bb.10:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_BN_cmp
	tbnz	x0, #63, LBB0_12
; %bb.11:
	ldr	w8, [x23]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_12:
	mov	w20, #1
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DH_CHECK_P_NOT_PRIME,4,2       ; @DH_CHECK_P_NOT_PRIME
	.comm	_DH_NOT_SUITABLE_GENERATOR,4,2  ; @DH_NOT_SUITABLE_GENERATOR
.subsections_via_symbols
