	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_cmp                   ## -- Begin function EC_GROUP_cmp
	.p2align	4, 0x90
_EC_GROUP_cmp:                          ## @EC_GROUP_cmp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_EC_GROUP_method_of
	movl	%eax, %edi
	callq	_EC_METHOD_get_field_type
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_EC_GROUP_method_of
	movl	%eax, %edi
	callq	_EC_METHOD_get_field_type
	movl	$1, %r13d
	cmpq	%rax, %rbx
	jne	LBB0_23
## %bb.1:
	movq	%r12, %rdi
	callq	_EC_GROUP_get_curve_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_EC_GROUP_get_curve_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_EC_GROUP_get_curve_name
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_EC_GROUP_get_curve_name
	cmpq	%rax, %rbx
	jne	LBB0_23
LBB0_4:
	movq	(%r12), %rax
	movq	_EC_FLAGS_CUSTOM_CURVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r13d, %r13d
	testl	%ecx, (%rax)
	jne	LBB0_23
## %bb.5:
	testq	%r14, %r14
	je	LBB0_19
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_19:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_20
LBB0_7:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_start
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movl	$-1, %r13d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_21
## %bb.9:
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_21
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.11:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.12:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.13:
	movq	%r12, %rdi
	callq	_EC_GROUP_get0_generator
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_EC_GROUP_get0_generator
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_EC_POINT_cmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_21:
	movl	$1, %r13d
LBB0_22:
	movq	%r14, %rdi
	callq	_BN_CTX_end
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_free
LBB0_23:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$-1, %r13d
	jmp	LBB0_23
LBB0_14:
	movq	%r12, %rdi
	callq	_EC_GROUP_get0_order
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_EC_GROUP_get0_order
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_EC_GROUP_get0_cofactor
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_EC_GROUP_get0_cofactor
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.15:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.16:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.17:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.18:
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_FLAGS_CUSTOM_CURVE,4,2      ## @EC_FLAGS_CUSTOM_CURVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_cmp                   ; -- Begin function EC_GROUP_cmp
	.p2align	2
_EC_GROUP_cmp:                          ; @EC_GROUP_cmp
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_EC_GROUP_method_of
	bl	_EC_METHOD_get_field_type
	mov	x20, x0
	mov	x0, x21
	bl	_EC_GROUP_method_of
	bl	_EC_METHOD_get_field_type
	cmp	x20, x0
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x22
	bl	_EC_GROUP_get_curve_name
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_EC_GROUP_get_curve_name
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_EC_GROUP_get_curve_name
	mov	x20, x0
	mov	x0, x21
	bl	_EC_GROUP_get_curve_name
	cmp	x20, x0
	b.ne	LBB0_6
LBB0_4:
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _EC_FLAGS_CUSTOM_CURVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EC_FLAGS_CUSTOM_CURVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:
	mov	w21, #1
LBB0_7:
	mov	x0, x21
	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_8:
	cbz	x19, LBB0_10
; %bb.9:
	mov	x20, #0
	b	LBB0_11
LBB0_10:
	bl	_BN_CTX_new
	mov	x19, x0
	mov	x20, x0
	cbz	x0, LBB0_21
LBB0_11:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x25, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x23, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x28, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x27, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_19
; %bb.12:
	mov	x26, x0
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_18
; %bb.13:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	x1, x28
	mov	x2, x27
	mov	x3, x26
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_18
; %bb.14:
	mov	x0, x25
	mov	x1, x28
	bl	_BN_cmp
	cbnz	x0, LBB0_18
; %bb.15:
	mov	x0, x24
	mov	x1, x27
	bl	_BN_cmp
	cbnz	x0, LBB0_18
; %bb.16:
	mov	x0, x23
	mov	x1, x26
	bl	_BN_cmp
	cbnz	x0, LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_EC_GROUP_get0_generator
	mov	x23, x0
	mov	x0, x21
	bl	_EC_GROUP_get0_generator
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	x3, x19
	bl	_EC_POINT_cmp
	cbz	x0, LBB0_22
LBB0_18:
	mov	w21, #1
	b	LBB0_20
LBB0_19:
	mov	w21, #-1
LBB0_20:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
	b	LBB0_7
LBB0_21:
	mov	w21, #-1
	b	LBB0_7
LBB0_22:
	mov	x0, x22
	bl	_EC_GROUP_get0_order
	mov	x23, x0
	mov	x0, x21
	bl	_EC_GROUP_get0_order
	mov	x25, x0
	mov	x0, x22
	bl	_EC_GROUP_get0_cofactor
	mov	x22, x0
	mov	x0, x21
	bl	_EC_GROUP_get0_cofactor
	mov	w21, #-1
	cbz	x23, LBB0_20
; %bb.23:
	cbz	x25, LBB0_20
; %bb.24:
	mov	x24, x0
	mov	x0, x23
	mov	x1, x25
	bl	_BN_cmp
	cbnz	x0, LBB0_18
; %bb.25:
	mov	x0, x22
	mov	x1, x24
	bl	_BN_cmp
	cbnz	x0, LBB0_18
; %bb.26:
	mov	w21, #0
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_FLAGS_CUSTOM_CURVE,4,2      ; @EC_FLAGS_CUSTOM_CURVE
.subsections_via_symbols
