	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup                        ## -- Begin function cleanup
	.p2align	4, 0x90
_cleanup:                               ## @cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_child_pid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_sender_msqid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.2:
	movq	_IPC_RMID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_msgctl
	cmpl	$-1, %eax
	je	LBB0_4
LBB0_3:
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_warn                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_child_pid,8,3                  ## @child_pid
	.comm	_sender_msqid,4,2               ## @sender_msqid
	.comm	_IPC_RMID,4,2                   ## @IPC_RMID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msgctl IPC_RMID"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup                        ; -- Begin function cleanup
	.p2align	2
_cleanup:                               ; @cleanup
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _child_pid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _child_pid@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _sender_msqid@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sender_msqid@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	cmp	x8, #0
	ccmn	w0, #1, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _IPC_RMID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPC_RMID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_msgctl
	cmn	w0, #1
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_warn
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_child_pid,8,3                  ; @child_pid
	.comm	_sender_msqid,4,2               ; @sender_msqid
	.comm	_IPC_RMID,4,2                   ; @IPC_RMID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msgctl IPC_RMID"

.subsections_via_symbols
