	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_engine_table_register          ## -- Begin function engine_table_register
	.p2align	4, 0x90
_engine_table_register:                 ## @engine_table_register
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_global_engine_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRYPTO_THREAD_write_lock
	movq	(%r12), %r15
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_int_table_check
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_20
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_3:
	movq	%r13, %rdi
	callq	_engine_cleanup_add_first
	testl	%r14d, %r14d
	je	LBB0_20
LBB0_5:
	movl	%r14d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, 8(%r14)
	movl	$1, 4(%r14)
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpl	%r15d, -64(%rbp)                ## 4-byte Folded Reload
	je	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %eax
	movl	%eax, -88(%rbp)
	movq	(%r12), %rdi
	leaq	-88(%rbp), %rsi
	callq	_lh_ENGINE_PILE_retrieve
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$24, %edi
	callq	_OPENSSL_malloc
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	movl	$1, 4(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_sk_ENGINE_new_null
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, 8(%r14)
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_lh_ENGINE_PILE_insert
	movq	(%r12), %rdi
	leaq	-88(%rbp), %rsi
	callq	_lh_ENGINE_PILE_retrieve
	cmpq	%r14, %rax
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	_sk_ENGINE_delete_ptr
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	_sk_ENGINE_push
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, 4(%r14)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_engine_unlocked_init
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%esi, %esi
	callq	_engine_unlocked_finish
	jmp	LBB0_18
LBB0_20:
	movl	$1, %r13d
LBB0_21:
	movq	_global_engine_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRYPTO_THREAD_unlock
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENGINE_F_ENGINE_TABLE_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENGINE_R_INIT_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ENGINEerr
	jmp	LBB0_21
LBB0_11:
	movl	16(%r14), %edi
	callq	_sk_ENGINE_free
LBB0_9:
	movq	%r14, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_global_engine_lock,4,2         ## @global_engine_lock
	.comm	_ENGINE_F_ENGINE_TABLE_REGISTER,4,2 ## @ENGINE_F_ENGINE_TABLE_REGISTER
	.comm	_ENGINE_R_INIT_FAILED,4,2       ## @ENGINE_R_INIT_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_engine_table_register          ; -- Begin function engine_table_register
	.p2align	2
_engine_table_register:                 ; @engine_table_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x26, _global_engine_lock@GOTPAGE
Lloh1:
	ldr	x26, [x26, _global_engine_lock@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_CRYPTO_THREAD_write_lock
	ldr	x25, [x24]
	mov	x0, x24
	mov	w1, #1
	bl	_int_table_check
	cbz	w0, LBB0_19
; %bb.1:
	cbnz	x25, LBB0_3
; %bb.2:
	mov	x0, x23
	bl	_engine_cleanup_add_first
LBB0_3:
	mov	w23, #1
	cbnz	w20, LBB0_6
	b	LBB0_20
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x22, [x25, #8]
	str	w23, [x25, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #4
	sub	w20, w20, #1
	cbz	w20, LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	str	w8, [sp, #8]
	ldr	x0, [x24]
	add	x1, sp, #8
	bl	_lh_ENGINE_PILE_retrieve
	mov	x25, x0
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #24
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	str	w23, [x0, #4]
	ldr	w8, [x21]
	str	w8, [x0]
	bl	_sk_ENGINE_new_null
	str	w0, [x25, #16]
	cbz	w0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x25, #8]
	ldr	x0, [x24]
	mov	x1, x25
	bl	_lh_ENGINE_PILE_insert
	ldr	x0, [x24]
	add	x1, sp, #8
	bl	_lh_ENGINE_PILE_retrieve
	cmp	x0, x25
	b.ne	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x25, #16]
	mov	x1, x22
	bl	_sk_ENGINE_delete_ptr
	ldr	w0, [x25, #16]
	mov	x1, x22
	bl	_sk_ENGINE_push
	cbz	w0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x25, #4]
	cbz	w19, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_engine_unlocked_init
	cbz	w0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x25, #8]
	cbz	x0, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #0
	bl	_engine_unlocked_finish
	b	LBB0_4
LBB0_15:
	mov	w23, #1
	b	LBB0_20
LBB0_16:
Lloh2:
	adrp	x8, _ENGINE_F_ENGINE_TABLE_REGISTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENGINE_F_ENGINE_TABLE_REGISTER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ENGINE_R_INIT_FAILED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENGINE_R_INIT_FAILED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ENGINEerr
	b	LBB0_19
LBB0_17:
	ldr	w0, [x25, #16]
	bl	_sk_ENGINE_free
LBB0_18:
	mov	x0, x25
	bl	_OPENSSL_free
LBB0_19:
	mov	w23, #0
LBB0_20:
	ldr	w0, [x26]
	bl	_CRYPTO_THREAD_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_global_engine_lock,4,2         ; @global_engine_lock
	.comm	_ENGINE_F_ENGINE_TABLE_REGISTER,4,2 ; @ENGINE_F_ENGINE_TABLE_REGISTER
	.comm	_ENGINE_R_INIT_FAILED,4,2       ; @ENGINE_R_INIT_FAILED
.subsections_via_symbols
