	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckThread1                   ## -- Begin function CheckThread1
	.p2align	4, 0x90
_CheckThread1:                          ## @CheckThread1
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_CHECK_THREAD_INCREMENT_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	16(%rsi), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	testq	%rbx, %rbx
	jle	LBB0_3
## %bb.1:
	movq	_check_thread_global_1@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_Lock
	movq	8(%r14), %rdi
	movq	%rdi, (%r15)
	callq	_InputToNull
	movq	(%r15), %r12
	xorl	%eax, %eax
	callq	_RetZero
	addq	%r12, %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	%rax, 8(%r14)
	movl	(%r14), %edi
	callq	_Unlock
	decq	%rbx
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECK_THREAD_INCREMENT_COUNT,8,3 ## @CHECK_THREAD_INCREMENT_COUNT
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_check_thread_global_1,8,3      ## @check_thread_global_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckThread1                   ; -- Begin function CheckThread1
	.p2align	2
_CheckThread1:                          ; @CheckThread1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
Lloh0:
	adrp	x8, _CHECK_THREAD_INCREMENT_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECK_THREAD_INCREMENT_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	w0, [x1, #16]
Lloh3:
	adrp	x8, _INFINITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_WaitThread
	cmp	x20, #1
	b.lt	LBB0_3
; %bb.1:
Lloh6:
	adrp	x21, _check_thread_global_1@GOTPAGE
Lloh7:
	ldr	x21, [x21, _check_thread_global_1@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_Lock
	ldr	x0, [x19, #8]
	str	x0, [x21]
	bl	_InputToNull
	ldr	x22, [x21]
	bl	_RetZero
	add	x8, x22, x0
	add	x8, x8, #1
	str	x8, [x21]
	str	x8, [x19, #8]
	ldr	w0, [x19]
	bl	_Unlock
	subs	x20, x20, #1
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECK_THREAD_INCREMENT_COUNT,8,3 ; @CHECK_THREAD_INCREMENT_COUNT
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_check_thread_global_1,8,3      ; @check_thread_global_1
.subsections_via_symbols
