	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disconnect_helper
_disconnect_helper:                     ## @disconnect_helper
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_3:
	cmpl	$0, 12(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_SIGPIPE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sigchain_push
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_xwrite
	movl	(%r14), %edi
	callq	_sigchain_pop
LBB0_5:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_close
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_close
	movl	8(%rbx), %edi
	callq	_fclose
	movq	(%rbx), %rdi
	callq	_finish_command
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_FREE_AND_NULL
	movl	%r14d, %eax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,8,3                      ## @debug
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Debug: Disconnecting.\n"

	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.no_dead_strip	_disconnect_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disconnect_helper
_disconnect_helper:                     ; @disconnect_helper
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_3:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x19, _SIGPIPE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _SIGPIPE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_sigchain_push
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_xwrite
	ldr	w0, [x19]
	bl	_sigchain_pop
LBB0_5:
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_close
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_close
	ldr	w0, [x20, #8]
	bl	_fclose
	ldr	x0, [x20]
	bl	_finish_command
	mov	x19, x0
	ldr	x0, [x20]
	bl	_FREE_AND_NULL
	mov	x0, x19
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,8,3                      ; @debug
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Debug: Disconnecting.\n"

	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.no_dead_strip	_disconnect_helper
.subsections_via_symbols
