	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dynamic_get_data_ctx
_dynamic_get_data_ctx:                  ## @dynamic_get_data_ctx
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_dynamic_ex_data_idx@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%esi, %esi
	jns	LBB0_5
## %bb.1:
	movq	_dynamic_data_ctx_free_func@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ENGINE_get_ex_new_index
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.2:
	movl	%eax, %r14d
	movq	_global_engine_lock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_CRYPTO_THREAD_write_lock
	cmpl	$0, (%r15)
	jns	LBB0_4
## %bb.3:
	movl	%r14d, (%r15)
LBB0_4:
	movl	(%r12), %edi
	callq	_CRYPTO_THREAD_unlock
	movl	(%r15), %esi
LBB0_5:
	movq	%rbx, %rdi
	callq	_ENGINE_get_ex_data
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dynamic_set_data_ctx
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	-40(%rbp), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_ENGINE_F_DYNAMIC_GET_DATA_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENGINE_R_NO_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ENGINEerr
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dynamic_ex_data_idx,4,2        ## @dynamic_ex_data_idx
	.comm	_dynamic_data_ctx_free_func,4,2 ## @dynamic_data_ctx_free_func
	.comm	_ENGINE_F_DYNAMIC_GET_DATA_CTX,4,2 ## @ENGINE_F_DYNAMIC_GET_DATA_CTX
	.comm	_ENGINE_R_NO_INDEX,4,2          ## @ENGINE_R_NO_INDEX
	.comm	_global_engine_lock,4,2         ## @global_engine_lock
	.no_dead_strip	_dynamic_get_data_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dynamic_get_data_ctx
_dynamic_get_data_ctx:                  ; @dynamic_get_data_ctx
	.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	x19, x0
Lloh0:
	adrp	x21, _dynamic_ex_data_idx@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dynamic_ex_data_idx@GOTPAGEOFF]
	ldr	w1, [x21]
	tbz	w1, #31, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _dynamic_data_ctx_free_func@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dynamic_data_ctx_free_func@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	w0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_ENGINE_get_ex_new_index
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x22, _global_engine_lock@GOTPAGE
Lloh6:
	ldr	x22, [x22, _global_engine_lock@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_CRYPTO_THREAD_write_lock
	ldr	w8, [x21]
	tbz	w8, #31, LBB0_4
; %bb.3:
	str	w20, [x21]
LBB0_4:
	ldr	w0, [x22]
	bl	_CRYPTO_THREAD_unlock
	ldr	w1, [x21]
LBB0_5:
	mov	x0, x19
	bl	_ENGINE_get_ex_data
	str	x0, [sp, #8]
	cbnz	x0, LBB0_8
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_dynamic_set_data_ctx
	ldr	x8, [sp, #8]
	cmp	w0, #0
	csel	x0, xzr, x8, eq
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ENGINE_F_DYNAMIC_GET_DATA_CTX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENGINE_F_DYNAMIC_GET_DATA_CTX@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _ENGINE_R_NO_INDEX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENGINE_R_NO_INDEX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_ENGINEerr
	mov	x0, #0
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dynamic_ex_data_idx,4,2        ; @dynamic_ex_data_idx
	.comm	_dynamic_data_ctx_free_func,4,2 ; @dynamic_data_ctx_free_func
	.comm	_ENGINE_F_DYNAMIC_GET_DATA_CTX,4,2 ; @ENGINE_F_DYNAMIC_GET_DATA_CTX
	.comm	_ENGINE_R_NO_INDEX,4,2          ; @ENGINE_R_NO_INDEX
	.comm	_global_engine_lock,4,2         ; @global_engine_lock
	.no_dead_strip	_dynamic_get_data_ctx
.subsections_via_symbols
