	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_get_builtin_curves          ## -- Begin function EC_get_builtin_curves
	.p2align	4, 0x90
_EC_get_builtin_curves:                 ## @EC_get_builtin_curves
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_curve_list_length@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	cmpq	%rsi, %rax
	cmovbq	%rax, %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.3:
	movq	_curve_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	cmpq	$4, %rsi
	jae	LBB0_6
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_6:
	movq	%rsi, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rcx
	movq	%rcx, %r10
	shrq	$2, %r10
	incq	%r10
	movl	%r10d, %r8d
	andl	$3, %r8d
	cmpq	$12, %rcx
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %r10
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r9,%rcx,8), %xmm0
	movups	16(%r9,%rcx,8), %xmm1
	movups	%xmm0, (%rdi,%rcx,8)
	movups	%xmm1, 16(%rdi,%rcx,8)
	movups	32(%r9,%rcx,8), %xmm0
	movups	48(%r9,%rcx,8), %xmm1
	movups	%xmm0, 32(%rdi,%rcx,8)
	movups	%xmm1, 48(%rdi,%rcx,8)
	movups	64(%r9,%rcx,8), %xmm0
	movups	80(%r9,%rcx,8), %xmm1
	movups	%xmm0, 64(%rdi,%rcx,8)
	movups	%xmm1, 80(%rdi,%rcx,8)
	movups	96(%r9,%rcx,8), %xmm0
	movups	112(%r9,%rcx,8), %xmm1
	movups	%xmm0, 96(%rdi,%rcx,8)
	movups	%xmm1, 112(%rdi,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %r10
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rcx,8), %r10
	orq	$16, %r10
	movups	(%r9,%rcx,8), %xmm0
	movups	(%r9,%r10), %xmm1
	movups	%xmm0, (%rdi,%rcx,8)
	movups	%xmm1, (%rdi,%r10)
	addq	$4, %rcx
	decq	%r8
	jne	LBB0_11
	jmp	LBB0_12
LBB0_5:
	movl	4(%r9,%rdx,8), %ecx
	movl	%ecx, 4(%rdi,%rdx,8)
	movl	(%r9,%rdx,8), %ecx
	movl	%ecx, (%rdi,%rdx,8)
	incq	%rdx
LBB0_12:
	cmpq	%rdx, %rsi
	jne	LBB0_5
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curve_list_length,8,3          ## @curve_list_length
	.comm	_curve_list,8,3                 ## @curve_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_get_builtin_curves          ; -- Begin function EC_get_builtin_curves
	.p2align	2
_EC_get_builtin_curves:                 ; @EC_get_builtin_curves
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _curve_list_length@GOTPAGE
Lloh1:
	ldr	x9, [x9, _curve_list_length@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	cbz	x8, LBB0_10
; %bb.1:
	cbz	x1, LBB0_10
; %bb.2:
	cmp	x0, x1
	csel	x9, x0, x1, lo
	cbz	x9, LBB0_10
; %bb.3:
Lloh3:
	adrp	x10, _curve_list@GOTPAGE
Lloh4:
	ldr	x10, [x10, _curve_list@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, #8
	b.hs	LBB0_5
; %bb.4:
	mov	x11, #0
	b	LBB0_8
LBB0_5:
	and	x11, x9, #0xfffffffffffffff8
	add	x12, x10, #32
	add	x13, x8, #32
	mov	x14, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x12, #-32]
	ldp	q3, q2, [x12], #64
	stp	q1, q0, [x13, #-32]
	stp	q3, q2, [x13], #64
	subs	x14, x14, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x11
	b.eq	LBB0_10
LBB0_8:
	sub	x9, x9, x11
	lsl	x11, x11, #3
	add	x10, x10, x11
	add	x8, x8, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x10], #8
	str	d0, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_curve_list_length,8,3          ; @curve_list_length
	.comm	_curve_list,8,3                 ; @curve_list
.subsections_via_symbols
