	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_asn1_group2curve
_ec_asn1_group2curve:                   ## @ec_asn1_group2curve
	.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	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.2:
	cmpl	$0, 12(%r12)
	je	LBB0_28
## %bb.3:
	cmpl	$0, 8(%r12)
	je	LBB0_28
## %bb.4:
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_EC_GROUP_get_curve
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movq	%r15, %rdi
	callq	_EC_GROUP_get_degree
	movq	%rax, %rbx
	addq	$7, %rbx
	shrq	$3, %rbx
	movq	%rbx, %rdi
	callq	_OPENSSL_malloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_OPENSSL_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_BN_bn2binpad
	testq	%rax, %rax
	js	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_BN_bn2binpad
	testq	%rax, %rax
	js	LBB0_15
## %bb.17:
	movl	12(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_ASN1_OCTET_STRING_set
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	8(%r12), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_ASN1_OCTET_STRING_set
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movq	8(%r15), %rsi
	movq	(%r12), %rdi
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.21:
	testq	%rdi, %rdi
	jne	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ASN1_BIT_STRING_new
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_29
## %bb.23:
	movq	%rax, %rdi
	movq	8(%r15), %rsi
LBB0_24:
	movq	_ASN1_STRING_FLAG_BITS_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	(%rdi), %ecx
	andl	$-8, %ecx
	movl	%ecx, (%rdi)
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movl	(%r15), %edx
	callq	_ASN1_BIT_STRING_set
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_26
LBB0_19:
	movq	_EC_F_EC_ASN1_GROUP2CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ASN1_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movq	_EC_F_EC_ASN1_GROUP2CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%r13d, %r13d
LBB0_9:
	xorl	%edi, %edi
	xorl	%r15d, %r15d
LBB0_27:
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_OPENSSL_free
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_free
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EC_F_EC_ASN1_GROUP2CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_8:
	movq	_EC_F_EC_ASN1_GROUP2CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_9
LBB0_15:
	movq	_EC_F_EC_ASN1_GROUP2CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%ebx, %ebx
LBB0_26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_25:
	callq	_ASN1_BIT_STRING_free
	movq	$0, (%r12)
	movl	$1, %ebx
	jmp	LBB0_26
LBB0_29:
	movq	_EC_F_EC_ASN1_GROUP2CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_ASN1_GROUP2CURVE,4,2   ## @EC_F_EC_ASN1_GROUP2CURVE
	.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_BN_LIB,4,2               ## @ERR_R_BN_LIB
	.comm	_ERR_R_ASN1_LIB,4,2             ## @ERR_R_ASN1_LIB
	.comm	_ASN1_STRING_FLAG_BITS_LEFT,4,2 ## @ASN1_STRING_FLAG_BITS_LEFT
	.no_dead_strip	_ec_asn1_group2curve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_asn1_group2curve
_ec_asn1_group2curve:                   ; @ec_asn1_group2curve
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w25, #0
	cbz	x0, LBB0_24
; %bb.1:
	mov	x24, x1
	cbz	x1, LBB0_24
; %bb.2:
	ldr	w8, [x24, #12]
	cbz	w8, LBB0_19
; %bb.3:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_19
; %bb.4:
	mov	x23, x0
	bl	_BN_new
	mov	x19, x0
	cbz	x0, LBB0_20
; %bb.5:
	bl	_BN_new
	cbz	x0, LBB0_20
; %bb.6:
	mov	x20, x0
	mov	x0, x23
	mov	x1, #0
	mov	x2, x19
	mov	x3, x20
	mov	x4, #0
	bl	_EC_GROUP_get_curve
	cbz	w0, LBB0_26
; %bb.7:
	mov	x0, x23
	bl	_EC_GROUP_get_degree
	add	x8, x0, #7
	lsr	x25, x8, #3
	mov	x0, x25
	bl	_OPENSSL_malloc
	mov	x21, x0
	cbz	x0, LBB0_25
; %bb.8:
	mov	x0, x25
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_25
; %bb.9:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	bl	_BN_bn2binpad
	tbnz	x0, #63, LBB0_27
; %bb.10:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x25
	bl	_BN_bn2binpad
	tbnz	x0, #63, LBB0_27
; %bb.11:
	ldr	w0, [x24, #12]
	mov	x1, x21
	mov	x2, x25
	bl	_ASN1_OCTET_STRING_set
	cbz	w0, LBB0_18
; %bb.12:
	ldr	w0, [x24, #8]
	mov	x1, x22
	mov	x2, x25
	bl	_ASN1_OCTET_STRING_set
	cbz	w0, LBB0_18
; %bb.13:
	ldr	x1, [x23, #8]
	ldr	x0, [x24]
	cbz	x1, LBB0_29
; %bb.14:
	cbnz	x0, LBB0_17
; %bb.15:
	bl	_ASN1_BIT_STRING_new
	str	x0, [x24]
	cbz	x0, LBB0_31
; %bb.16:
	ldr	x1, [x23, #8]
LBB0_17:
Lloh0:
	adrp	x8, _ASN1_STRING_FLAG_BITS_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_STRING_FLAG_BITS_LEFT@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x0]
	bic	w9, w10, w9
	and	w9, w9, #0xfffffff8
	str	w9, [x0]
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x0]
	ldr	w2, [x23]
	bl	_ASN1_BIT_STRING_set
	cbnz	w0, LBB0_30
LBB0_18:
Lloh2:
	adrp	x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_ASN1_LIB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_ASN1_LIB@GOTPAGEOFF]
	b	LBB0_28
LBB0_19:
	mov	w25, #0
	b	LBB0_24
LBB0_20:
Lloh7:
	adrp	x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w25, #0
	mov	x20, #0
LBB0_21:
	mov	x21, #0
LBB0_22:
	mov	x22, #0
LBB0_23:
	mov	x0, x21
	bl	_OPENSSL_free
	mov	x0, x22
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
LBB0_24:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
Lloh13:
	adrp	x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w25, #0
	b	LBB0_22
LBB0_26:
Lloh19:
	adrp	x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w25, #0
	b	LBB0_21
LBB0_27:
Lloh25:
	adrp	x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
LBB0_28:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w25, #0
	b	LBB0_23
LBB0_29:
	bl	_ASN1_BIT_STRING_free
	str	xzr, [x24]
LBB0_30:
	mov	w25, #1
	b	LBB0_23
LBB0_31:
Lloh30:
	adrp	x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EC_F_EC_ASN1_GROUP2CURVE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_ASN1_GROUP2CURVE,4,2   ; @EC_F_EC_ASN1_GROUP2CURVE
	.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_BN_LIB,4,2               ; @ERR_R_BN_LIB
	.comm	_ERR_R_ASN1_LIB,4,2             ; @ERR_R_ASN1_LIB
	.comm	_ASN1_STRING_FLAG_BITS_LEFT,4,2 ; @ASN1_STRING_FLAG_BITS_LEFT
	.no_dead_strip	_ec_asn1_group2curve
.subsections_via_symbols
