	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MtThread_Process
_MtThread_Process:                      ## @MtThread_Process
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_True@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, (%rsi)
	addq	$48, %rdi
	callq	_Event_Wait
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_SZ_ERROR_THREAD@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_GET_NEXT_THREAD
	movq	%rax, %r14
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.4:
	movl	(%r12), %eax
	movl	%eax, (%r14)
	addq	$48, %r14
LBB0_12:
	movq	%r14, %rdi
	callq	_Event_Set
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movq	8(%rbx), %rcx
	movq	%rcx, -40(%rbp)
	movl	32(%rax), %edi
	movl	44(%rbx), %esi
	leaq	-48(%rbp), %rdx
	callq	_FullRead
	movl	%eax, %edi
	callq	_RINOK
	movq	-48(%rbp), %rax
	movq	24(%rbx), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	%edx, (%r15)
	movl	%edx, (%r14)
	leaq	48(%r14), %rdi
	callq	_Event_Set
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:
	movq	24(%rbx), %rax
	movq	24(%rax), %rdi
	movl	40(%rbx), %esi
	movl	20(%rbx), %edx
	movl	44(%rbx), %r8d
	movq	-48(%rbp), %r9
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	leaq	-40(%rbp), %rcx
	callq	*(%rdi)
	movl	%eax, %edi
	callq	_RINOK
	movq	24(%rbx), %rdi
	addq	$16, %rdi
	movl	40(%rbx), %esi
	callq	_MtProgress_Reinit
	leaq	16(%rbx), %rdi
	callq	_Event_Wait
	testq	%rax, %rax
	jne	LBB0_1
## %bb.8:
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	24(%rbx), %rax
	movq	8(%rax), %rdi
	movl	20(%rbx), %esi
	movq	-40(%rbp), %rdx
	callq	*(%rdi)
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	addq	$16, %r14
	jmp	LBB0_12
LBB0_13:
	movq	_SZ_ERROR_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_True,8,3                       ## @True
	.comm	_SZ_ERROR_THREAD,4,2            ## @SZ_ERROR_THREAD
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.comm	_SZ_ERROR_FAIL,4,2              ## @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_WRITE,4,2             ## @SZ_ERROR_WRITE
	.no_dead_strip	_MtThread_Process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MtThread_Process
_MtThread_Process:                      ; @MtThread_Process
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _True@GOTPAGE
Lloh1:
	ldr	x22, [x22, _True@GOTPAGEOFF]
	ldr	x8, [x22]
	str	w8, [x1]
	add	x0, x0, #48
	bl	_Event_Wait
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _SZ_ERROR_THREAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_ERROR_THREAD@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_GET_NEXT_THREAD
	mov	x19, x0
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x22]
	str	w8, [x19], #48
	mov	x0, x19
LBB0_4:
	bl	_Event_Set
Lloh4:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh6:
	adrp	x9, _SZ_ERROR_THREAD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SZ_ERROR_THREAD@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x8, [x20, #24]
	ldr	x10, [x8]
	ldr	x9, [x20, #8]
	stp	x9, x10, [sp]
	ldr	w0, [x8, #32]
	ldr	w1, [x20, #44]
	add	x2, sp, #8
	bl	_FullRead
	bl	_RINOK
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #24]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	str	w8, [x21]
	mov	x0, x19
	str	w8, [x0], #48
	bl	_Event_Set
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	x8, [x20, #24]
	ldr	x0, [x8, #24]
	ldr	x8, [x0]
	ldr	w2, [x20, #20]
	ldp	w1, w4, [x20, #40]
	ldr	x5, [sp, #8]
	ldr	w6, [x21]
	mov	x3, sp
	blr	x8
	bl	_RINOK
	ldr	x8, [x20, #24]
	add	x0, x8, #16
	ldr	w1, [x20, #40]
	bl	_MtProgress_Reinit
	add	x0, x20, #16
	bl	_Event_Wait
	cbnz	x0, LBB0_1
; %bb.8:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _SZ_ERROR_FAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SZ_ERROR_FAIL@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	ldr	x8, [x20, #24]
	ldr	x0, [x8, #8]
	ldr	x8, [x0]
	ldr	w1, [x20, #20]
	ldr	x2, [sp]
	blr	x8
	ldr	x8, [sp]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
	add	x0, x19, #16
	b	LBB0_4
LBB0_12:
Lloh10:
	adrp	x8, _SZ_ERROR_WRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SZ_ERROR_WRITE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_True,8,3                       ; @True
	.comm	_SZ_ERROR_THREAD,4,2            ; @SZ_ERROR_THREAD
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.comm	_SZ_ERROR_FAIL,4,2              ; @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_WRITE,4,2             ; @SZ_ERROR_WRITE
	.no_dead_strip	_MtThread_Process
.subsections_via_symbols
