	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cardinality_test
_cardinality_test:                      ## @cardinality_test
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_curves@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movl	(%rax,%rcx,4), %ebx
	movl	%ebx, %edi
	callq	_OBJ_nid2sn
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TEST_info
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_29
## %bb.1:
	movl	%ebx, %edi
	callq	_EC_GROUP_new_by_curve_name
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_30
## %bb.2:
	movq	%r14, %rdi
	callq	_EC_GROUP_method_of
	movl	%eax, %edi
	callq	_EC_GROUP_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_31
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_start
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_32
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_EC_GROUP_get_curve
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_32
## %bb.5:
	movq	%rbx, %r12
	movq	%r14, %rdi
	callq	_EC_GROUP_get0_generator
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_EC_POINT_get_affine_coordinates
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_33
## %bb.6:
	movq	%r14, %rdi
	callq	_EC_GROUP_get0_order
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_BN_copy
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
## %bb.7:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_EC_GROUP_get_cofactor
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
## %bb.8:
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%r13, %r8
	callq	_EC_GROUP_set_curve
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_34
## %bb.9:
	movq	%rbx, %rdi
	callq	_EC_POINT_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_35
## %bb.10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_EC_POINT_set_affine_coordinates
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.11:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_EC_GROUP_set_generator
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.12:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_EC_GROUP_get_cofactor
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_TEST_BN_eq
	testl	%eax, %eax
	je	LBB0_35
## %bb.14:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_BN_set_word
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_EC_GROUP_set_generator
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.16:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_EC_GROUP_get_cofactor
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.17:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_TEST_BN_eq
	testl	%eax, %eax
	je	LBB0_35
## %bb.18:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_BN_set_word
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.19:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	movl	%eax, %edx
	callq	_BN_sub
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_35
## %bb.20:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_EC_GROUP_set_generator
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_35
## %bb.21:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_EC_GROUP_set_generator
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_38
## %bb.22:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_BN_set_word
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_38
## %bb.23:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_EC_GROUP_set_generator
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_38
## %bb.24:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_BN_set_word
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_38
## %bb.25:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	movl	%eax, %edx
	callq	_BN_sub
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_38
## %bb.26:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_EC_GROUP_set_generator
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_38
## %bb.27:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$2, %edx
	callq	_BN_lshift
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_38
## %bb.28:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_EC_GROUP_set_generator
	movl	%eax, %edi
	callq	_TEST_false
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
	jmp	LBB0_35
LBB0_29:
	xorl	%r14d, %r14d
LBB0_30:
	xorl	%ebx, %ebx
LBB0_31:
	movq	%r14, %rdi
	callq	_EC_GROUP_free
	movq	%rbx, %rdi
	callq	_EC_GROUP_free
	jmp	LBB0_36
LBB0_32:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_33:
	xorl	%r12d, %r12d
LBB0_34:
	xorl	%r15d, %r15d
LBB0_35:
	movq	%r15, %rdi
	callq	_EC_POINT_free
	movq	%r14, %rdi
	callq	_EC_GROUP_free
	movq	%rbx, %rdi
	callq	_EC_GROUP_free
	movq	%r13, %rdi
	callq	_BN_CTX_end
LBB0_36:
	movq	%r13, %rdi
	callq	_BN_CTX_free
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_curves,8,3                     ## @curves
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Curve %s cardinality test"

	.no_dead_strip	_cardinality_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cardinality_test
_cardinality_test:                      ; @cardinality_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _curves@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curves@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w20, [x8, w0, sxtw #2]
	mov	x0, x20
	bl	_OBJ_nid2sn
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEST_info
	bl	_BN_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_29
; %bb.1:
	mov	x0, x20
	bl	_EC_GROUP_new_by_curve_name
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_30
; %bb.2:
	mov	x0, x20
	bl	_EC_GROUP_method_of
	bl	_EC_GROUP_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_31
; %bb.3:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x23, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x22, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x27, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x28, x0
	mov	x0, x19
	bl	_BN_CTX_get
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x26, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x25, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_32
; %bb.4:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_EC_GROUP_get_curve
	bl	_TEST_true
	cbz	w0, LBB0_32
; %bb.5:
	mov	x0, x20
	bl	_EC_GROUP_get0_generator
	mov	x1, x0
	mov	x0, x20
	mov	x2, x27
	mov	x3, x28
	mov	x4, x19
	bl	_EC_POINT_get_affine_coordinates
	bl	_TEST_true
	cbz	w0, LBB0_32
; %bb.6:
	mov	x0, x20
	bl	_EC_GROUP_get0_order
	mov	x1, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_BN_copy
	bl	_TEST_true
	cbz	w0, LBB0_32
; %bb.7:
	mov	x0, x20
	mov	x1, x26
	mov	x2, x19
	bl	_EC_GROUP_get_cofactor
	bl	_TEST_true
	cbz	w0, LBB0_32
; %bb.8:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_EC_GROUP_set_curve
	bl	_TEST_true
	cbz	w0, LBB0_32
; %bb.9:
	mov	x0, x21
	bl	_EC_POINT_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_35
; %bb.10:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x27
	mov	x3, x28
	mov	x4, x19
	bl	_EC_POINT_set_affine_coordinates
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.11:
	mov	x0, x21
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, #0
	bl	_EC_GROUP_set_generator
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.12:
	mov	x0, x21
	mov	x1, x25
	mov	x2, x19
	bl	_EC_GROUP_get_cofactor
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.13:
	mov	x0, x26
	mov	x1, x25
	bl	_TEST_BN_eq
	cbz	w0, LBB0_35
; %bb.14:
	mov	x0, x25
	mov	w1, #0
	bl	_BN_set_word
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.15:
	mov	x0, x21
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x25
	bl	_EC_GROUP_set_generator
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.16:
	mov	x0, x21
	mov	x1, x25
	mov	x2, x19
	bl	_EC_GROUP_get_cofactor
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.17:
	mov	x0, x26
	mov	x1, x25
	bl	_TEST_BN_eq
	cbz	w0, LBB0_35
; %bb.18:
	mov	x0, x25
	mov	w1, #0
	bl	_BN_set_word
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.19:
	bl	_BN_value_one
	mov	x2, x0
	mov	x0, x25
	mov	x1, x25
	bl	_BN_sub
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.20:
	mov	x0, x21
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x25
	bl	_EC_GROUP_set_generator
	bl	_TEST_false
	cbz	w0, LBB0_35
; %bb.21:
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x3, #0
	bl	_EC_GROUP_set_generator
	bl	_TEST_false
	cbz	w0, LBB0_35
; %bb.22:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	w1, #0
	bl	_BN_set_word
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.23:
	mov	x0, x21
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, #0
	bl	_EC_GROUP_set_generator
	bl	_TEST_false
	cbz	w0, LBB0_35
; %bb.24:
	mov	x0, x25
	mov	w1, #0
	bl	_BN_set_word
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.25:
	bl	_BN_value_one
	mov	x2, x0
	mov	x0, x25
	mov	x1, x25
	bl	_BN_sub
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.26:
	mov	x0, x21
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, #0
	bl	_EC_GROUP_set_generator
	bl	_TEST_false
	cbz	w0, LBB0_35
; %bb.27:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x23
	mov	w2, #2
	bl	_BN_lshift
	bl	_TEST_true
	cbz	w0, LBB0_35
; %bb.28:
	mov	x0, x21
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, #0
	bl	_EC_GROUP_set_generator
	bl	_TEST_false
	cmp	w0, #0
	cset	w23, ne
	b	LBB0_33
LBB0_29:
	mov	x20, #0
LBB0_30:
	mov	x21, #0
LBB0_31:
	mov	x0, x20
	bl	_EC_GROUP_free
	mov	x0, x21
	bl	_EC_GROUP_free
	mov	w23, #0
	b	LBB0_34
LBB0_32:
	mov	w23, #0
	mov	x22, #0
LBB0_33:
	mov	x0, x22
	bl	_EC_POINT_free
	mov	x0, x20
	bl	_EC_GROUP_free
	mov	x0, x21
	bl	_EC_GROUP_free
	mov	x0, x19
	bl	_BN_CTX_end
LBB0_34:
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_35:
	mov	w23, #0
	b	LBB0_33
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_curves,8,3                     ; @curves
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Curve %s cardinality test"

	.no_dead_strip	_cardinality_test
.subsections_via_symbols
