	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MtCoder_Code                   ## -- Begin function MtCoder_Code
	.p2align	4, 0x90
_MtCoder_Code:                          ## @MtCoder_Code
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %r14d
	movl	24(%rdi), %esi
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, 8(%rdi)
	addq	$28, %rdi
	callq	_MtProgress_Init
	testq	%r14, %r14
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	shlq	$5, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	callq	_CMtThread_Prepare
	movl	%eax, %edi
	callq	_RINOK
	addq	$32, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	movq	_ThreadFunc@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %r14
	cmpq	%r14, %r15
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rbx
	leaq	(%rbx,%r14), %rdi
	addq	$12, %rdi
	callq	_Thread_WasCreated
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r14), %rdi
	movl	(%r12), %eax
	movl	%eax, 8(%rbx,%r14)
	movq	%rdi, (%rbx,%r14)
	callq	_LoopThread_Create
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_SZ_ERROR_THREAD@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_9
LBB0_8:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_22
## %bb.11:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.13:
	shlq	$5, %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	callq	_LoopThread_StartSubThread
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%r12d
	addq	$32, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_14
## %bb.17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %r12d
	jmp	LBB0_18
LBB0_12:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_15:
	movq	_SZ_ERROR_THREAD@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_True@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rcx
	movl	%eax, 24(%rcx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_18:
	movq	16(%r13), %rdi
	addq	$20, %rdi
	callq	_Event_Set
	movq	16(%r13), %rdi
	addq	$16, %rdi
	callq	_Event_Set
	testl	%r12d, %r12d
	je	LBB0_22
## %bb.19:
	movl	%r12d, %r14d
	shlq	$5, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	callq	_LoopThread_WaitSubThread
	addq	$32, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_20
## %bb.21:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_22:
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.23:
	shlq	$5, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	callq	_CMtThread_CloseEvents
	addq	$32, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_24
LBB0_25:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_27
## %bb.26:
	movq	8(%r13), %r15
LBB0_27:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_ThreadFunc,4,2                 ## @ThreadFunc
	.comm	_SZ_ERROR_THREAD,8,3            ## @SZ_ERROR_THREAD
	.comm	_True,4,2                       ## @True
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MtCoder_Code                   ; -- Begin function MtCoder_Code
	.p2align	2
_MtCoder_Code:                          ; @MtCoder_Code
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w23, [x0]
Lloh0:
	adrp	x22, _SZ_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SZ_OK@GOTPAGEOFF]
	ldr	x20, [x22]
	str	x20, [x0, #8]
	add	x0, x0, #28
	ldr	w1, [x19, #24]
	bl	_MtProgress_Init
	cbz	w23, LBB0_8
; %bb.1:
	mov	x21, #0
	lsl	x24, x23, #5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_CMtThread_Prepare
	bl	_RINOK
	add	x21, x21, #32
	cmp	x24, x21
	b.ne	LBB0_2
; %bb.3:
	mov	x25, #0
Lloh2:
	adrp	x27, _ThreadFunc@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ThreadFunc@GOTPAGEOFF]
Lloh4:
	adrp	x26, _SZ_ERROR_THREAD@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SZ_ERROR_THREAD@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #32
	cmp	x24, x25
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x21, x8, x25
	add	x0, x21, #12
	bl	_Thread_WasCreated
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	str	w8, [x21, #8]
	str	x21, [x21]
	mov	x0, x21
	bl	_LoopThread_Create
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.7:
	ldr	x20, [x26]
LBB0_8:
	ldr	x8, [x22]
	cmp	x20, x8
	b.ne	LBB0_19
; %bb.9:
	cbz	w23, LBB0_14
; %bb.10:
	mov	x24, #0
	mov	w21, #0
	lsl	x25, x23, #5
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x24
	bl	_LoopThread_StartSubThread
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w21, w21, #1
	add	x24, x24, #32
	cmp	x25, x24
	b.ne	LBB0_11
; %bb.13:
	mov	x21, x23
	b	LBB0_16
LBB0_14:
	mov	w21, #0
	b	LBB0_16
LBB0_15:
Lloh6:
	adrp	x8, _SZ_ERROR_THREAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_ERROR_THREAD@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
Lloh9:
	adrp	x8, _True@GOTPAGE
Lloh10:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9, #24]
LBB0_16:
	ldr	x8, [x19, #16]
	add	x0, x8, #20
	bl	_Event_Set
	ldr	x8, [x19, #16]
	add	x0, x8, #16
	bl	_Event_Set
	cbz	w21, LBB0_19
; %bb.17:
	mov	x24, #0
	mov	w8, w21
	lsl	x21, x8, #5
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x24
	bl	_LoopThread_WaitSubThread
	add	x24, x24, #32
	cmp	x21, x24
	b.ne	LBB0_18
LBB0_19:
	cbz	w23, LBB0_22
; %bb.20:
	mov	x21, #0
	lsl	x23, x23, #5
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_CMtThread_CloseEvents
	add	x21, x21, #32
	cmp	x23, x21
	b.ne	LBB0_21
LBB0_22:
	ldr	x8, [x22]
	cmp	x20, x8
	b.ne	LBB0_24
; %bb.23:
	ldr	x20, [x19, #8]
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_ThreadFunc,4,2                 ; @ThreadFunc
	.comm	_SZ_ERROR_THREAD,8,3            ; @SZ_ERROR_THREAD
	.comm	_True,4,2                       ; @True
.subsections_via_symbols
