	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_named_curve_lookup_test
_check_named_curve_lookup_test:         ## @check_named_curve_lookup_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
	pushq	%rax
	.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), %r14d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%r14d, %edi
	callq	_EC_GROUP_new_by_curve_name
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EC_GROUP_get_ecparameters
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	%rbx, %rdi
	callq	_EC_GROUP_free
	movq	%r15, %rdi
	callq	_EC_GROUP_new_from_ecparameters
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_EC_GROUP_check_named_curve
	movl	%eax, %r13d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	xorl	%r12d, %r12d
	cmpl	%r14d, %r13d
	jne	LBB0_13
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
LBB0_7:
	movl	$1, %r12d
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%rbx, %rdi
	callq	_EC_GROUP_free
	movq	%r13, %rdi
	callq	_EC_GROUP_free
	movq	%r15, %rdi
	callq	_ECPARAMETERS_free
	movq	%r14, %rdi
	callq	_ECPARAMETERS_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_free
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%r13d, %edi
	callq	_EC_GROUP_new_by_curve_name
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_EC_GROUP_get_ecparameters
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	movq	%r13, %rdi
	callq	_EC_GROUP_free
	movq	%r14, %rdi
	callq	_EC_GROUP_new_from_ecparameters
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.16:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_EC_GROUP_cmp
	xorl	%r12d, %r12d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_curves,8,3                     ## @curves
	.no_dead_strip	_check_named_curve_lookup_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_named_curve_lookup_test
_check_named_curve_lookup_test:         ; @check_named_curve_lookup_test
	.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
Lloh0:
	adrp	x8, _curves@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curves@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w22, [x8, w0, sxtw #2]
	bl	_BN_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x22
	bl	_EC_GROUP_new_by_curve_name
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_10
; %bb.2:
	mov	x0, x20
	mov	x1, #0
	bl	_EC_GROUP_get_ecparameters
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_EC_GROUP_free
	mov	x0, x21
	bl	_EC_GROUP_new_from_ecparameters
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_EC_GROUP_check_named_curve
	mov	x23, x0
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_9
; %bb.5:
	cmp	w23, w22
	b.ne	LBB0_14
; %bb.6:
	mov	x22, #0
	mov	x23, #0
LBB0_7:
	mov	w24, #1
	b	LBB0_13
LBB0_8:
	mov	w24, #0
	mov	x20, #0
	b	LBB0_11
LBB0_9:
	mov	w24, #0
	mov	x22, #0
	b	LBB0_12
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	x22, #0
	mov	x21, #0
LBB0_12:
	mov	x23, #0
LBB0_13:
	mov	x0, x20
	bl	_EC_GROUP_free
	mov	x0, x22
	bl	_EC_GROUP_free
	mov	x0, x21
	bl	_ECPARAMETERS_free
	mov	x0, x23
	bl	_ECPARAMETERS_free
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x24
	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
LBB0_14:
	mov	x0, x23
	bl	_EC_GROUP_new_by_curve_name
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_19
; %bb.15:
	mov	x0, x22
	mov	x1, #0
	bl	_EC_GROUP_get_ecparameters
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.16:
	mov	x0, x22
	bl	_EC_GROUP_free
	mov	x0, x23
	bl	_EC_GROUP_new_from_ecparameters
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_EC_GROUP_cmp
	mov	w1, #0
	bl	_TEST_int_eq
	cbnz	w0, LBB0_7
LBB0_18:
	mov	w24, #0
	b	LBB0_13
LBB0_19:
	mov	w24, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_curves,8,3                     ; @curves
	.no_dead_strip	_check_named_curve_lookup_test
.subsections_via_symbols
