	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_asn1_group2fieldid
_ec_asn1_group2fieldid:                 ## @ec_asn1_group2fieldid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_34
## %bb.2:
	movq	%rdi, %r12
	movq	24(%r13), %rdi
	callq	_ASN1_OBJECT_free
	movl	16(%r13), %edi
	callq	_ASN1_TYPE_free
	movq	%r12, %rdi
	callq	_EC_GROUP_method_of
	movl	%eax, %edi
	callq	_EC_METHOD_get_field_type
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OBJ_nid2obj
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	_NID_X9_62_prime_field@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_31
## %bb.5:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EC_GROUP_get_curve
	testl	%eax, %eax
	je	LBB0_21
## %bb.6:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_BN_to_ASN1_INTEGER
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_22
## %bb.7:
	movl	$1, %r14d
	jmp	LBB0_33
LBB0_8:
	movq	_NID_X9_62_characteristic_two_field@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_18
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_X9_62_CHARACTERISTIC_TWO_new
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_31
## %bb.10:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_EC_GROUP_get_degree
	movq	%rax, (%r15)
	movq	%r12, %rdi
	callq	_EC_GROUP_get_basis_type
	testl	%eax, %eax
	je	LBB0_24
## %bb.11:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OBJ_nid2obj
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	_NID_X9_62_tpBasis@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_25
## %bb.13:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_EC_GROUP_get_trinomial_basis
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	xorl	%eax, %eax
	callq	_ASN1_INTEGER_new
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_35
## %bb.15:
	movl	-44(%rbp), %esi
	movq	%rax, %rdi
	callq	_ASN1_INTEGER_set
	testl	%eax, %eax
	jne	LBB0_30
## %bb.16:
	movq	_ERR_R_ASN1_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_17:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_OBJ_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_UNSUPPORTED_FIELD@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	callq	_ECerr
LBB0_20:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_33
LBB0_21:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ASN1_LIB@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_33
LBB0_24:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_25:
	movq	_NID_X9_62_ppBasis@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_29
## %bb.26:
	leaq	-44(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	callq	_EC_GROUP_get_pentanomial_basis
	testl	%eax, %eax
	je	LBB0_20
## %bb.27:
	xorl	%eax, %eax
	callq	_X9_62_PENTANOMIAL_new
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_37
## %bb.28:
	movl	-44(%rbp), %ecx
	movq	%rcx, (%rax)
	movl	-52(%rbp), %ecx
	movq	%rcx, 8(%rax)
	movl	-48(%rbp), %ecx
	movq	%rcx, 16(%rax)
	jmp	LBB0_30
LBB0_29:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASN1_NULL_new
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_31
LBB0_30:
	movl	$1, %r14d
	jmp	LBB0_32
LBB0_31:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_32:
	xorl	%r15d, %r15d
LBB0_33:
	movq	%r15, %rdi
	callq	_BN_free
LBB0_34:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_36:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	jmp	LBB0_19
LBB0_37:
	movq	_EC_F_EC_ASN1_GROUP2FIELDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_ASN1_GROUP2FIELDID,4,2 ## @EC_F_EC_ASN1_GROUP2FIELDID
	.comm	_ERR_R_OBJ_LIB,4,2              ## @ERR_R_OBJ_LIB
	.comm	_NID_X9_62_prime_field,4,2      ## @NID_X9_62_prime_field
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.comm	_ERR_R_ASN1_LIB,4,2             ## @ERR_R_ASN1_LIB
	.comm	_NID_X9_62_characteristic_two_field,4,2 ## @NID_X9_62_characteristic_two_field
	.comm	_NID_X9_62_tpBasis,4,2          ## @NID_X9_62_tpBasis
	.comm	_NID_X9_62_ppBasis,4,2          ## @NID_X9_62_ppBasis
	.comm	_EC_R_UNSUPPORTED_FIELD,4,2     ## @EC_R_UNSUPPORTED_FIELD
	.comm	_EC_R_GF2M_NOT_SUPPORTED,4,2    ## @EC_R_GF2M_NOT_SUPPORTED
	.no_dead_strip	_ec_asn1_group2fieldid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_asn1_group2fieldid
_ec_asn1_group2fieldid:                 ; @ec_asn1_group2fieldid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	w22, #0
	cbz	x0, LBB0_27
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_27
; %bb.2:
	mov	x20, x0
	ldr	x0, [x21, #24]
	bl	_ASN1_OBJECT_free
	ldr	w0, [x21, #16]
	bl	_ASN1_TYPE_free
	mov	x0, x20
	bl	_EC_GROUP_method_of
	bl	_EC_METHOD_get_field_type
	mov	x19, x0
	bl	_OBJ_nid2obj
	str	x0, [x21, #24]
	cbz	x0, LBB0_17
; %bb.3:
Lloh0:
	adrp	x8, _NID_X9_62_prime_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_X9_62_prime_field@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_8
; %bb.4:
	bl	_BN_new
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EC_GROUP_get_curve
	cbz	w0, LBB0_22
; %bb.6:
	mov	x0, x19
	mov	x1, #0
	bl	_BN_to_ASN1_INTEGER
	str	x0, [x21, #8]
	cbz	x0, LBB0_23
; %bb.7:
	mov	w22, #1
	b	LBB0_26
LBB0_8:
Lloh3:
	adrp	x8, _NID_X9_62_characteristic_two_field@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_X9_62_characteristic_two_field@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_19
; %bb.9:
	bl	_X9_62_CHARACTERISTIC_TWO_new
	mov	x19, x0
	str	x0, [x21]
	cbz	x0, LBB0_18
; %bb.10:
	mov	x0, x20
	bl	_EC_GROUP_get_degree
	str	x0, [x19]
	mov	x0, x20
	bl	_EC_GROUP_get_basis_type
	cbz	w0, LBB0_28
; %bb.11:
	mov	x21, x0
	bl	_OBJ_nid2obj
	str	x0, [x19, #32]
	cbz	x0, LBB0_17
; %bb.12:
Lloh6:
	adrp	x8, _NID_X9_62_tpBasis@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_X9_62_tpBasis@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_29
; %bb.13:
	add	x1, sp, #12
	mov	x0, x20
	bl	_EC_GROUP_get_trinomial_basis
	cbz	w0, LBB0_21
; %bb.14:
	bl	_ASN1_INTEGER_new
	str	x0, [x19, #24]
	cbz	x0, LBB0_36
; %bb.15:
	ldr	w1, [sp, #12]
	bl	_ASN1_INTEGER_set
	cbnz	w0, LBB0_34
; %bb.16:
Lloh9:
	adrp	x8, _ERR_R_ASN1_LIB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_ASN1_LIB@GOTPAGEOFF]
	b	LBB0_37
LBB0_17:
Lloh11:
	adrp	x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ERR_R_OBJ_LIB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_OBJ_LIB@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
Lloh16:
	adrp	x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_24
LBB0_19:
Lloh21:
	adrp	x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _EC_R_UNSUPPORTED_FIELD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EC_R_UNSUPPORTED_FIELD@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_21:
	mov	x19, #0
	b	LBB0_25
LBB0_22:
Lloh26:
	adrp	x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh31:
	adrp	x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _ERR_R_ASN1_LIB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERR_R_ASN1_LIB@GOTPAGEOFF]
LBB0_24:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_25:
	mov	w22, #0
LBB0_26:
	mov	x0, x19
	bl	_BN_free
LBB0_27:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_28:
Lloh36:
	adrp	x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_20
LBB0_29:
Lloh41:
	adrp	x8, _NID_X9_62_ppBasis@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NID_X9_62_ppBasis@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_33
; %bb.30:
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	bl	_EC_GROUP_get_pentanomial_basis
	cbz	w0, LBB0_21
; %bb.31:
	bl	_X9_62_PENTANOMIAL_new
	str	x0, [x19, #16]
	cbz	x0, LBB0_35
; %bb.32:
	mov	x19, #0
	ldp	w9, w8, [sp, #8]
	stp	x8, x9, [x0]
	ldr	w8, [sp, #4]
	str	x8, [x0, #16]
	mov	w22, #1
	b	LBB0_26
LBB0_33:
	bl	_ASN1_NULL_new
	str	x0, [x19, #8]
	cbz	x0, LBB0_35
LBB0_34:
	mov	x19, #0
	mov	w22, #1
	b	LBB0_26
LBB0_35:
Lloh44:
	adrp	x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_20
LBB0_36:
Lloh49:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_37:
Lloh51:
	adrp	x9, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGE
Lloh52:
	ldr	x9, [x9, _EC_F_EC_ASN1_GROUP2FIELDID@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x9]
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_ASN1_GROUP2FIELDID,4,2 ; @EC_F_EC_ASN1_GROUP2FIELDID
	.comm	_ERR_R_OBJ_LIB,4,2              ; @ERR_R_OBJ_LIB
	.comm	_NID_X9_62_prime_field,4,2      ; @NID_X9_62_prime_field
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.comm	_ERR_R_ASN1_LIB,4,2             ; @ERR_R_ASN1_LIB
	.comm	_NID_X9_62_characteristic_two_field,4,2 ; @NID_X9_62_characteristic_two_field
	.comm	_NID_X9_62_tpBasis,4,2          ; @NID_X9_62_tpBasis
	.comm	_NID_X9_62_ppBasis,4,2          ; @NID_X9_62_ppBasis
	.comm	_EC_R_UNSUPPORTED_FIELD,4,2     ; @EC_R_UNSUPPORTED_FIELD
	.comm	_EC_R_GF2M_NOT_SUPPORTED,4,2    ; @EC_R_GF2M_NOT_SUPPORTED
	.no_dead_strip	_ec_asn1_group2fieldid
.subsections_via_symbols
