	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DH_check_pub_key               ## -- Begin function DH_check_pub_key
	.p2align	4, 0x90
_DH_check_pub_key:                      ## @DH_check_pub_key
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, (%rdx)
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_start
	movq	%r13, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_18
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_BN_set_word
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	jg	LBB0_5
## %bb.4:
	movq	_DH_CHECK_PUBKEY_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_5:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_BN_copy
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_BN_sub_word
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	movq	_DH_CHECK_PUBKEY_TOO_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_9:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.10:
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_BN_mod_exp
	testl	%eax, %eax
	movl	$0, %ebx
	je	LBB0_19
## %bb.11:
	movq	%r12, %rdi
	callq	_BN_is_one
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_DH_CHECK_PUBKEY_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_13:
	movl	$1, %ebx
	jmp	LBB0_19
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%r13, %rdi
	callq	_BN_CTX_end
	movq	%r13, %rdi
	callq	_BN_CTX_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DH_CHECK_PUBKEY_TOO_SMALL,4,2  ## @DH_CHECK_PUBKEY_TOO_SMALL
	.comm	_DH_CHECK_PUBKEY_TOO_LARGE,4,2  ## @DH_CHECK_PUBKEY_TOO_LARGE
	.comm	_DH_CHECK_PUBKEY_INVALID,4,2    ## @DH_CHECK_PUBKEY_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DH_check_pub_key               ; -- Begin function DH_check_pub_key
	.p2align	2
_DH_check_pub_key:                      ; @DH_check_pub_key
	.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, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [x2]
	bl	_BN_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.1:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_14
; %bb.2:
	mov	x23, x0
	mov	w1, #1
	bl	_BN_set_word
	cbz	w0, LBB0_14
; %bb.3:
	mov	x0, x21
	mov	x1, x23
	bl	_BN_cmp
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _DH_CHECK_PUBKEY_TOO_SMALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DH_CHECK_PUBKEY_TOO_SMALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x23
	bl	_BN_copy
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x23
	mov	w1, #1
	bl	_BN_sub_word
	cbz	w0, LBB0_14
; %bb.7:
	mov	x0, x21
	mov	x1, x23
	bl	_BN_cmp
	tbnz	x0, #63, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _DH_CHECK_PUBKEY_TOO_LARGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DH_CHECK_PUBKEY_TOO_LARGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_9:
	ldr	x2, [x22, #8]
	cbz	x2, LBB0_13
; %bb.10:
	ldr	w3, [x22]
	mov	x0, x23
	mov	x1, x21
	mov	x4, x19
	bl	_BN_mod_exp
	cbz	w0, LBB0_14
; %bb.11:
	mov	x0, x23
	bl	_BN_is_one
	cbnz	w0, LBB0_13
; %bb.12:
Lloh6:
	adrp	x8, _DH_CHECK_PUBKEY_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DH_CHECK_PUBKEY_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_13:
	mov	w20, #1
	b	LBB0_15
LBB0_14:
	mov	w20, #0
LBB0_15:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DH_CHECK_PUBKEY_TOO_SMALL,4,2  ; @DH_CHECK_PUBKEY_TOO_SMALL
	.comm	_DH_CHECK_PUBKEY_TOO_LARGE,4,2  ; @DH_CHECK_PUBKEY_TOO_LARGE
	.comm	_DH_CHECK_PUBKEY_INVALID,4,2    ; @DH_CHECK_PUBKEY_INVALID
.subsections_via_symbols
