	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBackgroundWorkerPid         ## -- Begin function GetBackgroundWorkerPid
	.p2align	4, 0x90
_GetBackgroundWorkerPid:                ## @GetBackgroundWorkerPid
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_max_worker_processes@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setb	%dil
	callq	_Assert
	movq	_BackgroundWorkerData@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	(%rbx), %r13
	movq	_BackgroundWorkerLock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	8(%rbx), %rcx
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	cmpq	(%r12,%rax,8), %rcx
	jne	LBB0_5
## %bb.1:
	cmpl	$0, 16(%r12,%rax,8)
	je	LBB0_5
## %bb.2:
	movq	8(%r12,%rax,8), %rbx
	movl	(%r15), %edi
	callq	_LWLockRelease
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	movq	_InvalidPid@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_9
## %bb.4:
	movq	_BGWH_NOT_YET_STARTED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movl	(%r15), %edi
	callq	_LWLockRelease
LBB0_6:
	movq	_BGWH_STOPPED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, (%r14)
	movq	_BGWH_STARTED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_max_worker_processes,8,3       ## @max_worker_processes
	.comm	_BackgroundWorkerData,8,3       ## @BackgroundWorkerData
	.comm	_BackgroundWorkerLock,4,2       ## @BackgroundWorkerLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_BGWH_STOPPED,4,2               ## @BGWH_STOPPED
	.comm	_InvalidPid,8,3                 ## @InvalidPid
	.comm	_BGWH_NOT_YET_STARTED,4,2       ## @BGWH_NOT_YET_STARTED
	.comm	_BGWH_STARTED,4,2               ## @BGWH_STARTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBackgroundWorkerPid         ; -- Begin function GetBackgroundWorkerPid
	.p2align	2
_GetBackgroundWorkerPid:                ; @GetBackgroundWorkerPid
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _max_worker_processes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _max_worker_processes@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lo
	bl	_Assert
Lloh3:
	adrp	x8, _BackgroundWorkerData@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BackgroundWorkerData@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	x23, [x20]
Lloh6:
	adrp	x21, _BackgroundWorkerLock@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BackgroundWorkerLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x20, #8]
	mov	w9, #24
	mul	x9, x23, x9
	ldr	x9, [x22, x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	w8, #24
	madd	x8, x23, x8, x22
	ldr	w8, [x8, #16]
	cbz	w8, LBB0_5
; %bb.2:
	mov	w8, #24
	madd	x8, x23, x8, x22
	ldr	x20, [x8, #8]
	ldr	w0, [x21]
	bl	_LWLockRelease
	cbz	x20, LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _InvalidPid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InvalidPid@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_8
; %bb.4:
Lloh14:
	adrp	x8, _BGWH_NOT_YET_STARTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BGWH_NOT_YET_STARTED@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x21]
	bl	_LWLockRelease
LBB0_6:
Lloh16:
	adrp	x8, _BGWH_STOPPED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BGWH_STOPPED@GOTPAGEOFF]
LBB0_7:
	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
LBB0_8:
	str	x20, [x19]
Lloh18:
	adrp	x8, _BGWH_STARTED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BGWH_STARTED@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_max_worker_processes,8,3       ; @max_worker_processes
	.comm	_BackgroundWorkerData,8,3       ; @BackgroundWorkerData
	.comm	_BackgroundWorkerLock,4,2       ; @BackgroundWorkerLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_BGWH_STOPPED,4,2               ; @BGWH_STOPPED
	.comm	_InvalidPid,8,3                 ; @InvalidPid
	.comm	_BGWH_NOT_YET_STARTED,4,2       ; @BGWH_NOT_YET_STARTED
	.comm	_BGWH_STARTED,4,2               ; @BGWH_STARTED
.subsections_via_symbols
