	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_ec_validate_public      ## -- Begin function sshkey_ec_validate_public
	.p2align	4, 0x90
_sshkey_ec_validate_public:             ## @sshkey_ec_validate_public
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_SSH_ERR_KEY_INVALID_EC_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BN_CTX_start
	movq	%r15, %rdi
	callq	_EC_GROUP_method_of
	movl	%eax, %edi
	callq	_EC_METHOD_get_field_type
	movq	_NID_X9_62_prime_field@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_EC_POINT_is_at_infinity
	testl	%eax, %eax
	jne	LBB0_22
## %bb.6:
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_20
## %bb.8:
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	movq	%rbx, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_BN_CTX_get
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_EC_GROUP_get_order
	cmpl	$1, %eax
	jne	LBB0_25
## %bb.11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_EC_POINT_get_affine_coordinates_GFp
	cmpl	$1, %eax
	jne	LBB0_25
## %bb.12:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_num_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_BN_num_bits
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_22
## %bb.13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_num_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_BN_num_bits
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_22
## %bb.14:
	movq	%r15, %rdi
	callq	_EC_POINT_new
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	callq	_EC_POINT_mul
	cmpl	$1, %eax
	jne	LBB0_28
## %bb.16:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_EC_POINT_is_at_infinity
	cmpl	$1, %eax
	jne	LBB0_23
## %bb.17:
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_28
## %bb.18:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	jns	LBB0_23
## %bb.19:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_BN_cmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovsl	%ecx, %r14d
	jmp	LBB0_23
LBB0_4:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_24
LBB0_20:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %r14d
LBB0_22:
	xorl	%r13d, %r13d
LBB0_23:
	movq	%rbx, %rdi
	callq	_BN_CTX_free
	movq	%r13, %rdi
	callq	_EC_POINT_free
LBB0_24:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_28:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_KEY_INVALID_EC_VALUE,4,2 ## @SSH_ERR_KEY_INVALID_EC_VALUE
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_NID_X9_62_prime_field,8,3      ## @NID_X9_62_prime_field
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_ec_validate_public      ; -- Begin function sshkey_ec_validate_public
	.p2align	2
_sshkey_ec_validate_public:             ; @sshkey_ec_validate_public
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SSH_ERR_KEY_INVALID_EC_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_KEY_INVALID_EC_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_BN_CTX_new
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_BN_CTX_start
	mov	x0, x21
	bl	_EC_GROUP_method_of
	bl	_EC_METHOD_get_field_type
Lloh3:
	adrp	x8, _NID_X9_62_prime_field@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_X9_62_prime_field@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	bl	_EC_POINT_is_at_infinity
	cbz	w0, LBB0_7
LBB0_3:
	mov	x25, #0
LBB0_4:
	mov	x0, x20
	bl	_BN_CTX_free
	mov	x0, x25
	bl	_EC_POINT_free
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_21
; %bb.8:
	mov	x23, x0
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_21
; %bb.9:
	mov	x24, x0
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_21
; %bb.10:
	mov	x27, x0
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_21
; %bb.11:
	mov	x26, x0
	mov	x0, x21
	mov	x1, x27
	mov	x2, x20
	bl	_EC_GROUP_get_order
	cmp	w0, #1
	b.ne	LBB0_24
; %bb.12:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x20
	bl	_EC_POINT_get_affine_coordinates_GFp
	cmp	w0, #1
	b.ne	LBB0_24
; %bb.13:
	mov	x0, x23
	bl	_BN_num_bits
	mov	x25, x0
	mov	x0, x27
	bl	_BN_num_bits
	cmp	w0, #0
	cinc	w8, w0, lt
	cmp	w25, w8, asr #1
	b.le	LBB0_3
; %bb.14:
	mov	x0, x24
	bl	_BN_num_bits
	mov	x25, x0
	mov	x0, x27
	bl	_BN_num_bits
	cmp	w0, #0
	cinc	w8, w0, lt
	cmp	w25, w8, asr #1
	b.le	LBB0_3
; %bb.15:
	mov	x0, x21
	bl	_EC_POINT_new
	mov	x25, x0
	cbz	x0, LBB0_22
; %bb.16:
	mov	x0, x21
	mov	x1, x25
	mov	x2, #0
	mov	x3, x22
	mov	x4, x27
	mov	x5, x20
	bl	_EC_POINT_mul
	cmp	w0, #1
	b.ne	LBB0_25
; %bb.17:
	mov	x0, x21
	mov	x1, x25
	bl	_EC_POINT_is_at_infinity
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.18:
	bl	_BN_value_one
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	bl	_BN_sub
	cbz	w0, LBB0_25
; %bb.19:
	mov	x0, x23
	mov	x1, x26
	bl	_BN_cmp
	tbz	x0, #63, LBB0_4
; %bb.20:
	mov	x0, x24
	mov	x1, x26
	bl	_BN_cmp
	asr	x8, x0, #63
	bic	w19, w19, w8
	b	LBB0_4
LBB0_21:
	mov	x25, #0
LBB0_22:
Lloh9:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
LBB0_23:
	ldr	w19, [x8]
	b	LBB0_4
LBB0_24:
	mov	x25, #0
LBB0_25:
Lloh11:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_KEY_INVALID_EC_VALUE,4,2 ; @SSH_ERR_KEY_INVALID_EC_VALUE
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_NID_X9_62_prime_field,8,3      ; @NID_X9_62_prime_field
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
.subsections_via_symbols
