	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_disconnect
_send_disconnect:                       ## @send_disconnect
	.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	$160, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_PIDFILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$127, %esi
	callq	_snprintf
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	leaq	-164(%rbp), %rdx
	movq	%rax, %rdi
	callq	_fscanf
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fclose
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.4:
	movl	-164(%rbp), %edi
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	leaq	-160(%rbp), %rsi
	callq	_warn
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
	callq	_warnx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$160, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PIDFILE,8,3                    ## @PIDFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot open %s"

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

L_.str.3:                               ## @.str.3
	.asciz	"unable to read daemon pid"

	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_send_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_disconnect
_send_disconnect:                       ; @send_disconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _PIDFILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIDFILE@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	add	x0, sp, #8
	mov	w1, #127
	bl	_snprintf
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #4
	bl	_fscanf
	mov	x20, x0
	mov	x0, x19
	bl	_fclose
	cmp	w20, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [sp, #4]
Lloh10:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kill
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_warn
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PIDFILE,8,3                    ; @PIDFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot open %s"

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

l_.str.3:                               ; @.str.3
	.asciz	"unable to read daemon pid"

	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_send_disconnect
.subsections_via_symbols
