	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ENGINE_new                     ## -- Begin function ENGINE_new
	.p2align	4, 0x90
_ENGINE_new:                            ## @ENGINE_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_do_engine_lock_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_engine_lock_init@GOTPCREL(%rip), %rdi
	callq	_RUN_ONCE
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	$8, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_engine_ref_debug
	movq	_CRYPTO_EX_INDEX_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rdx
	addq	$4, %rdx
	movq	%rbx, %rsi
	callq	_CRYPTO_new_ex_data
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_5
LBB0_2:
	movq	_ENGINE_F_ENGINE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ENGINEerr
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_engine_lock_init,4,2           ## @engine_lock_init
	.comm	_do_engine_lock_init,4,2        ## @do_engine_lock_init
	.comm	_ENGINE_F_ENGINE_NEW,4,2        ## @ENGINE_F_ENGINE_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CRYPTO_EX_INDEX_ENGINE,4,2     ## @CRYPTO_EX_INDEX_ENGINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ENGINE_new                     ; -- Begin function ENGINE_new
	.p2align	2
_ENGINE_new:                            ; @ENGINE_new
	.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
Lloh0:
	adrp	x8, _do_engine_lock_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _do_engine_lock_init@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _engine_lock_init@GOTPAGE
Lloh4:
	ldr	x0, [x0, _engine_lock_init@GOTPAGEOFF]
	bl	_RUN_ONCE
	cbz	w0, LBB0_4
; %bb.1:
	mov	w0, #8
	bl	_OPENSSL_zalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	mov	w8, #1
	mov	x20, x0
	str	w8, [x20], #4
	mov	w1, #0
	mov	w2, #1
	bl	_engine_ref_debug
Lloh5:
	adrp	x8, _CRYPTO_EX_INDEX_ENGINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRYPTO_EX_INDEX_ENGINE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_CRYPTO_new_ex_data
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_OPENSSL_free
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ENGINE_F_ENGINE_NEW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENGINE_F_ENGINE_NEW@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_ENGINEerr
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_engine_lock_init,4,2           ; @engine_lock_init
	.comm	_do_engine_lock_init,4,2        ; @do_engine_lock_init
	.comm	_ENGINE_F_ENGINE_NEW,4,2        ; @ENGINE_F_ENGINE_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CRYPTO_EX_INDEX_ENGINE,4,2     ; @CRYPTO_EX_INDEX_ENGINE
.subsections_via_symbols
