	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TerminateBackgroundWorker      ## -- Begin function TerminateBackgroundWorker
	.p2align	4, 0x90
_TerminateBackgroundWorker:             ## @TerminateBackgroundWorker
	.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	%rdi, %r12
	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), %r15
	movq	(%r12), %rbx
	movq	_BackgroundWorkerLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	8(%r12), %rax
	shlq	$4, %rbx
	cmpq	(%r15,%rbx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$1, 8(%r15,%rbx)
	movl	(%r14), %edi
	callq	_LWLockRelease
	movq	_PMSIGNAL_BACKGROUND_WORKER_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendPostmasterSignal           ## TAILCALL
LBB0_2:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.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_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_PMSIGNAL_BACKGROUND_WORKER_CHANGE,4,2 ## @PMSIGNAL_BACKGROUND_WORKER_CHANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TerminateBackgroundWorker      ; -- Begin function TerminateBackgroundWorker
	.p2align	2
_TerminateBackgroundWorker:             ; @TerminateBackgroundWorker
	.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, 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	x21, [x8]
	ldr	x22, [x19]
Lloh6:
	adrp	x20, _BackgroundWorkerLock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _BackgroundWorkerLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x19, #8]
	lsl	x9, x22, #4
	ldr	x9, [x21, x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x8, x21, x22, lsl #4
	mov	w9, #1
	str	w9, [x8, #8]
	ldr	w0, [x20]
	bl	_LWLockRelease
Lloh11:
	adrp	x8, _PMSIGNAL_BACKGROUND_WORKER_CHANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PMSIGNAL_BACKGROUND_WORKER_CHANGE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	b	_SendPostmasterSignal
LBB0_2:
	ldr	w0, [x20]
	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
	b	_LWLockRelease
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_PMSIGNAL_BACKGROUND_WORKER_CHANGE,4,2 ; @PMSIGNAL_BACKGROUND_WORKER_CHANGE
.subsections_via_symbols
