	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MtSync_Create2
_MtSync_Create2:                        ## @MtSync_Create2
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	addq	$56, %rdi
	callq	_CriticalSection_Init
	movl	%eax, %edi
	callq	_RINOK_THREAD
	movq	_True@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 48(%rbx)
	leaq	40(%rbx), %rdi
	callq	_AutoResetEvent_CreateNotSignaled
	movl	%eax, %edi
	callq	_RINOK_THREAD
	leaq	36(%rbx), %rdi
	callq	_AutoResetEvent_CreateNotSignaled
	movl	%eax, %edi
	callq	_RINOK_THREAD
	leaq	32(%rbx), %rdi
	callq	_AutoResetEvent_CreateNotSignaled
	movl	%eax, %edi
	callq	_RINOK_THREAD
	leaq	28(%rbx), %rdi
	movl	%r12d, %esi
	movl	%r12d, %edx
	callq	_Semaphore_Create
	movl	%eax, %edi
	callq	_RINOK_THREAD
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_Semaphore_Create
	movl	%eax, %edi
	callq	_RINOK_THREAD
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
	leaq	8(%rbx), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_Thread_Create
	movl	%eax, %edi
	callq	_RINOK_THREAD
	movq	(%r13), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.comm	_True,8,3                       ## @True
	.no_dead_strip	_MtSync_Create2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MtSync_Create2
_MtSync_Create2:                        ; @MtSync_Create2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #56
	bl	_CriticalSection_Init
	bl	_RINOK_THREAD
Lloh0:
	adrp	x23, _True@GOTPAGE
Lloh1:
	ldr	x23, [x23, _True@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x19, #48]
	add	x0, x19, #40
	bl	_AutoResetEvent_CreateNotSignaled
	bl	_RINOK_THREAD
	add	x0, x19, #36
	bl	_AutoResetEvent_CreateNotSignaled
	bl	_RINOK_THREAD
	add	x0, x19, #32
	bl	_AutoResetEvent_CreateNotSignaled
	bl	_RINOK_THREAD
	add	x0, x19, #28
	mov	x1, x22
	mov	x2, x22
	bl	_Semaphore_Create
	bl	_RINOK_THREAD
	add	x0, x19, #24
	mov	w1, #0
	mov	x2, x22
	bl	_Semaphore_Create
	bl	_RINOK_THREAD
	ldr	x8, [x23]
	str	x8, [x19, #16]
	add	x0, x19, #8
	mov	x1, x21
	mov	x2, x20
	bl	_Thread_Create
	bl	_RINOK_THREAD
	ldr	x8, [x23]
	str	x8, [x19]
LBB0_2:
Lloh2:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.comm	_True,8,3                       ; @True
	.no_dead_strip	_MtSync_Create2
.subsections_via_symbols
