	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup
_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
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pidfile@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rax, %rdi
	callq	_fscanf
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movl	-20(%rbp), %edi
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	movl	-20(%rbp), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
LBB0_3:
	movq	%rbx, %rdi
	callq	_fclose
	movl	(%r14), %edi
	callq	_unlink
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pidfile,4,2                    ## @pidfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.no_dead_strip	_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup
_cleanup:                               ; @cleanup
	.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
Lloh0:
	adrp	x20, _pidfile@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pidfile@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_fscanf
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kill
	ldr	w0, [sp, #12]
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
LBB0_3:
	mov	x0, x19
	bl	_fclose
	ldr	w0, [x20]
	bl	_unlink
LBB0_4:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pidfile,4,2                    ; @pidfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.no_dead_strip	_cleanup
.subsections_via_symbols
