	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_KEY_new_method              ## -- Begin function EC_KEY_new_method
	.p2align	4, 0x90
_EC_KEY_new_method:                     ## @EC_KEY_new_method
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$40, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_CRYPTO_THREAD_lock_new
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_EC_KEY_get_default_method
	movq	%rax, 8(%rbx)
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_ENGINE_init
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movq	%r14, 24(%rbx)
	jmp	LBB0_8
LBB0_5:
	movq	_EC_F_EC_KEY_NEW_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_17
LBB0_6:
	movq	_EC_F_EC_KEY_NEW_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_17
LBB0_7:
	xorl	%eax, %eax
	callq	_ENGINE_get_default_EC
	movq	%rax, %r14
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_ENGINE_get_EC
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_14
LBB0_9:
	movl	$1, 4(%rbx)
	movq	_POINT_CONVERSION_UNCOMPRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_CRYPTO_EX_INDEX_EC_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rdx
	addq	$16, %rdx
	movq	%rbx, %rsi
	callq	_CRYPTO_new_ex_data
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.11:
	movq	%rbx, %rdi
	callq	*%rcx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	movq	_ERR_R_INIT_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_ERR_R_ENGINE_LIB@GOTPCREL(%rip), %rax
LBB0_15:
	movq	_EC_F_EC_KEY_NEW_METHOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_ECerr
LBB0_16:
	movq	%rbx, %rdi
	callq	_EC_KEY_free
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_KEY_NEW_METHOD,4,2     ## @EC_F_EC_KEY_NEW_METHOD
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_ENGINE_LIB,4,2           ## @ERR_R_ENGINE_LIB
	.comm	_POINT_CONVERSION_UNCOMPRESSED,4,2 ## @POINT_CONVERSION_UNCOMPRESSED
	.comm	_CRYPTO_EX_INDEX_EC_KEY,4,2     ## @CRYPTO_EX_INDEX_EC_KEY
	.comm	_ERR_R_INIT_FAIL,4,2            ## @ERR_R_INIT_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_KEY_new_method              ; -- Begin function EC_KEY_new_method
	.p2align	2
_EC_KEY_new_method:                     ; @EC_KEY_new_method
	.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	x20, x0
	mov	w0, #40
	bl	_OPENSSL_zalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	bl	_CRYPTO_THREAD_lock_new
	str	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.2:
	bl	_EC_KEY_get_default_method
	str	x0, [x19, #8]
	cbz	x20, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_ENGINE_init
	cbz	w0, LBB0_13
; %bb.4:
	str	x20, [x19, #24]
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _EC_F_EC_KEY_NEW_METHOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_EC_KEY_NEW_METHOD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ECerr
	b	LBB0_17
LBB0_6:
Lloh6:
	adrp	x8, _EC_F_EC_KEY_NEW_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_F_EC_KEY_NEW_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ECerr
	mov	x0, x19
	bl	_OPENSSL_free
	b	LBB0_16
LBB0_7:
	bl	_ENGINE_get_default_EC
	mov	x20, x0
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_ENGINE_get_EC
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
LBB0_9:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh12:
	adrp	x8, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh15:
	adrp	x8, _CRYPTO_EX_INDEX_EC_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CRYPTO_EX_INDEX_EC_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x2, x19, #16
	mov	x1, x19
	bl	_CRYPTO_new_ex_data
	cbz	w0, LBB0_15
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.11:
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_17
; %bb.12:
Lloh18:
	adrp	x8, _ERR_R_INIT_FAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_R_INIT_FAIL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh20:
	adrp	x8, _ERR_R_ENGINE_LIB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_R_ENGINE_LIB@GOTPAGEOFF]
LBB0_14:
Lloh22:
	adrp	x9, _EC_F_EC_KEY_NEW_METHOD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EC_F_EC_KEY_NEW_METHOD@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_ECerr
LBB0_15:
	mov	x0, x19
	bl	_EC_KEY_free
LBB0_16:
	mov	x19, #0
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_KEY_NEW_METHOD,4,2     ; @EC_F_EC_KEY_NEW_METHOD
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_ENGINE_LIB,4,2           ; @ERR_R_ENGINE_LIB
	.comm	_POINT_CONVERSION_UNCOMPRESSED,4,2 ; @POINT_CONVERSION_UNCOMPRESSED
	.comm	_CRYPTO_EX_INDEX_EC_KEY,4,2     ; @CRYPTO_EX_INDEX_EC_KEY
	.comm	_ERR_R_INIT_FAIL,4,2            ; @ERR_R_INIT_FAIL
.subsections_via_symbols
