	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shm_mq_counterparty_gone
_shm_mq_counterparty_gone:              ## @shm_mq_counterparty_gone
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$1, %ebx
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rdi, %r14
	leaq	-20(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_GetBackgroundWorkerPid
	movq	_BGWH_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_BGWH_NOT_YET_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movl	$1, (%r14)
	movl	$1, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_BGWH_STARTED,8,3               ## @BGWH_STARTED
	.comm	_BGWH_NOT_YET_STARTED,8,3       ## @BGWH_NOT_YET_STARTED
	.no_dead_strip	_shm_mq_counterparty_gone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shm_mq_counterparty_gone
_shm_mq_counterparty_gone:              ; @shm_mq_counterparty_gone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w9, [x0]
	cbz	w9, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	mov	x8, x1
	cbz	x1, LBB0_4
; %bb.3:
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x8
	bl	_GetBackgroundWorkerPid
Lloh0:
	adrp	x8, _BGWH_STARTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BGWH_STARTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BGWH_NOT_YET_STARTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BGWH_NOT_YET_STARTED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	str	w0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BGWH_STARTED,8,3               ; @BGWH_STARTED
	.comm	_BGWH_NOT_YET_STARTED,8,3       ; @BGWH_NOT_YET_STARTED
	.no_dead_strip	_shm_mq_counterparty_gone
.subsections_via_symbols
