	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGSharedMemoryIsInUse          ## -- Begin function PGSharedMemoryIsInUse
	.p2align	4, 0x90
_PGSharedMemoryIsInUse:                 ## @PGSharedMemoryIsInUse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rdi
	leaq	-16(%rbp), %rdx
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_PGSharedMemoryAttach
	movl	%eax, %ebx
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_shmdt
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-16(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_3:
	addl	$-128, %ebx
	movl	$1, %eax
	cmpl	$4, %ebx
	ja	LBB0_5
## %bb.4:
	movslq	%ebx, %rax
	leaq	l_switch.table.PGSharedMemoryIsInUse(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shmdt(%p) failed: %m"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.PGSharedMemoryIsInUse
l_switch.table.PGSharedMemoryIsInUse:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGSharedMemoryIsInUse          ; -- Begin function PGSharedMemoryIsInUse
	.p2align	2
_PGSharedMemoryIsInUse:                 ; @PGSharedMemoryIsInUse
	.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
	mov	x0, x1
	add	x2, sp, #8
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, #0
	bl	_PGSharedMemoryAttach
	mov	x19, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_shmdt
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _LOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x2, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_3:
	sub	w8, w19, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.4:
Lloh5:
	adrp	x9, l_switch.table.PGSharedMemoryIsInUse@PAGE
Lloh6:
	add	x9, x9, l_switch.table.PGSharedMemoryIsInUse@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_6
LBB0_5:
	mov	w0, #1
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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shmdt(%p) failed: %m"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.PGSharedMemoryIsInUse
l_switch.table.PGSharedMemoryIsInUse:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
