	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shm_mq_attach                  ## -- Begin function shm_mq_attach
	.p2align	4, 0x90
_shm_mq_attach:                         ## @shm_mq_attach
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$80, %edi
	callq	_palloc
	movq	%rax, %rbx
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %edi
	cmpq	%rax, (%r15)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	%rax, 8(%r15)
	sete	%dil
LBB0_2:
	callq	_Assert
	movq	%r15, 72(%rbx)
	movq	%r14, 64(%rbx)
	movq	%r12, 56(%rbx)
	movq	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, 32(%rbx)
	movq	$0, 48(%rbx)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	_shm_mq_detach_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_PointerGetDatum
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_on_dsm_detach
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	_shm_mq_detach_callback,4,2     ## @shm_mq_detach_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shm_mq_attach                  ; -- Begin function shm_mq_attach
	.p2align	2
_shm_mq_attach:                         ; @shm_mq_attach
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	w0, #80
	bl	_palloc
	mov	x20, x0
	ldr	x9, [x21]
Lloh0:
	adrp	x8, _MyProc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyProc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x9, [x21, #8]
	cmp	x9, x8
	cset	w0, eq
LBB0_3:
	bl	_Assert
	stp	x19, x21, [x20, #64]
	str	xzr, [x20]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20, #16]
	stp	xzr, x22, [x20, #48]
Lloh3:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	cbz	x19, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _shm_mq_detach_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _shm_mq_detach_callback@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_PointerGetDatum
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_on_dsm_detach
LBB0_5:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_shm_mq_detach_callback,4,2     ; @shm_mq_detach_callback
.subsections_via_symbols
