	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shm_mq_wait_for_attach         ## -- Begin function shm_mq_wait_for_attach
	.p2align	4, 0x90
_shm_mq_wait_for_attach:                ## @shm_mq_wait_for_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_shm_mq_get_receiver
	movq	_MyProc@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_shm_mq_get_sender
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_Assert
	movq	%rbx, %rsi
LBB0_3:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_shm_mq_wait_internal
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_SHM_MQ_DETACHED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_SHM_MQ_SUCCESS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_SHM_MQ_SUCCESS,4,2             ## @SHM_MQ_SUCCESS
	.comm	_SHM_MQ_DETACHED,4,2            ## @SHM_MQ_DETACHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shm_mq_wait_for_attach         ; -- Begin function shm_mq_wait_for_attach
	.p2align	2
_shm_mq_wait_for_attach:                ; @shm_mq_wait_for_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	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_shm_mq_get_receiver
Lloh0:
	adrp	x21, _MyProc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MyProc@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	add	x1, x19, #8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_shm_mq_get_sender
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	mov	x1, x19
LBB0_3:
	ldr	w2, [x20]
	mov	x0, x19
	bl	_shm_mq_wait_internal
Lloh2:
	adrp	x8, _SHM_MQ_DETACHED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SHM_MQ_DETACHED@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SHM_MQ_SUCCESS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SHM_MQ_SUCCESS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_SHM_MQ_SUCCESS,4,2             ; @SHM_MQ_SUCCESS
	.comm	_SHM_MQ_DETACHED,4,2            ; @SHM_MQ_DETACHED
.subsections_via_symbols
