	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_basis_type        ## -- Begin function EC_GROUP_get_basis_type
	.p2align	4, 0x90
_EC_GROUP_get_basis_type:               ## @EC_GROUP_get_basis_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_EC_GROUP_method_of
	movl	%eax, %edi
	callq	_EC_METHOD_get_field_type
	movq	_NID_X9_62_characteristic_two_field@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	(%r15), %rdi
	callq	_OSSL_NELEM
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	$0, (%rdi,%rbx,8)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_OSSL_NELEM
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	cmpl	$2, %ebx
	je	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	cmpl	$4, %ebx
	jne	LBB0_10
## %bb.7:
	movq	_NID_X9_62_ppBasis@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_NID_X9_62_tpBasis@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_X9_62_characteristic_two_field,8,3 ## @NID_X9_62_characteristic_two_field
	.comm	_NID_X9_62_ppBasis,4,2          ## @NID_X9_62_ppBasis
	.comm	_NID_X9_62_tpBasis,4,2          ## @NID_X9_62_tpBasis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_basis_type        ; -- Begin function EC_GROUP_get_basis_type
	.p2align	2
_EC_GROUP_get_basis_type:               ; @EC_GROUP_get_basis_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_EC_GROUP_method_of
	bl	_EC_METHOD_get_field_type
Lloh0:
	adrp	x8, _NID_X9_62_characteristic_two_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_X9_62_characteristic_two_field@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	ldr	x0, [x19]
	bl	_OSSL_NELEM
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	x8, [x0, x20, lsl #3]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	bl	_OSSL_NELEM
	cmp	x20, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	cmp	w20, #2
	b.eq	LBB0_9
; %bb.6:
	cmp	w20, #4
	b.ne	LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _NID_X9_62_ppBasis@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_X9_62_ppBasis@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x8, _NID_X9_62_tpBasis@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NID_X9_62_tpBasis@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_X9_62_characteristic_two_field,8,3 ; @NID_X9_62_characteristic_two_field
	.comm	_NID_X9_62_ppBasis,4,2          ; @NID_X9_62_ppBasis
	.comm	_NID_X9_62_tpBasis,4,2          ; @NID_X9_62_tpBasis
.subsections_via_symbols
