	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_worker_status
_check_worker_status:                   ## @check_worker_status
	.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
	movl	$1, %eax
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r15
	movq	_BGWH_STOPPED@GOTPCREL(%rip), %r13
	movq	_BGWH_POSTMASTER_DIED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	_GetBackgroundWorkerPid
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r14), %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGWH_STOPPED,8,3               ## @BGWH_STOPPED
	.comm	_BGWH_POSTMASTER_DIED,8,3       ## @BGWH_POSTMASTER_DIED
	.no_dead_strip	_check_worker_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_worker_status
_check_worker_status:                   ; @check_worker_status
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x21, _BGWH_STOPPED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BGWH_STOPPED@GOTPAGEOFF]
Lloh2:
	adrp	x22, _BGWH_POSTMASTER_DIED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BGWH_POSTMASTER_DIED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	add	x1, sp, #12
	bl	_GetBackgroundWorkerPid
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BGWH_STOPPED,8,3               ; @BGWH_STOPPED
	.comm	_BGWH_POSTMASTER_DIED,8,3       ; @BGWH_POSTMASTER_DIED
	.no_dead_strip	_check_worker_status
.subsections_via_symbols
