	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_ec_validate_private     ## -- Begin function sshkey_ec_validate_private
	.p2align	4, 0x90
_sshkey_ec_validate_private:            ## @sshkey_ec_validate_private
	.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	%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_8
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BN_CTX_start
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_EC_KEY_get0_group
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_EC_GROUP_get_order
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_EC_KEY_get0_private_key
	movq	%rax, %rdi
	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_11
## %bb.5:
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_EC_KEY_get0_private_key
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	movl	$0, %eax
	cmovsl	%eax, %r14d
	jmp	LBB0_11
LBB0_7:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_9:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r14d
LBB0_11:
	movq	%rbx, %rdi
	callq	_BN_CTX_free
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_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_private     ; -- Begin function sshkey_ec_validate_private
	.p2align	2
_sshkey_ec_validate_private:            ; @sshkey_ec_validate_private
	.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	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_8
; %bb.1:
	mov	x20, x0
	bl	_BN_CTX_start
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_7
; %bb.2:
	mov	x23, x0
	mov	x0, x20
	bl	_BN_CTX_get
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	mov	x0, x21
	bl	_EC_KEY_get0_group
	mov	x1, x23
	mov	x2, x20
	bl	_EC_GROUP_get_order
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x21
	bl	_EC_KEY_get0_private_key
	bl	_BN_num_bits
	mov	x24, x0
	mov	x0, x23
	bl	_BN_num_bits
	cmp	w0, #0
	cinc	w8, w0, lt
	cmp	w24, w8, asr #1
	b.le	LBB0_11
; %bb.5:
	bl	_BN_value_one
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_BN_sub
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_EC_KEY_get0_private_key
	mov	x1, x22
	bl	_BN_cmp
	asr	x8, x0, #63
	bic	w19, w19, w8
	b	LBB0_11
LBB0_7:
Lloh3:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
LBB0_10:
	ldr	w19, [x8]
LBB0_11:
	mov	x0, x20
	bl	_BN_CTX_free
LBB0_12:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
.subsections_via_symbols
