	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sender_disconnect
_sender_disconnect:                     ## @sender_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_adist_remote_lock@GOTPCREL(%rip), %rdi
	callq	_rw_wlock
	movq	_adhost@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_1
## %bb.2:
	movl	16(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_pjdlog_debug
	movq	(%rbx), %rax
	movq	32(%rax), %rdi
	callq	_proto_close
	movq	_adist_remote_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	(%rbx), %rax
	movq	$0, 32(%rax)
	movl	$1, (%rax)
	movq	8(%rax), %rax
	movb	$0, (%rax)
	movq	(%rbx), %rax
	movq	$0, 24(%rax)
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	_adist_remote_lock@GOTPCREL(%rip), %rdi
	callq	_rw_unlock
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pjdlog_warning
	movq	_adist_free_list@GOTPCREL(%rip), %rdi
	movq	_adist_send_list@GOTPCREL(%rip), %rsi
	movq	_adist_recv_list@GOTPCREL(%rip), %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_QUEUE_CONCAT2                  ## TAILCALL
LBB0_1:
	movq	_adist_remote_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rw_unlock                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_adist_remote_lock,4,2          ## @adist_remote_lock
	.comm	_adhost,8,3                     ## @adhost
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Closing connection to %s."

	.comm	_adist_remote_mtx,4,2           ## @adist_remote_mtx
L_.str.1:                               ## @.str.1
	.asciz	"Disconnected from %s."

	.comm	_adist_free_list,4,2            ## @adist_free_list
	.comm	_adist_send_list,4,2            ## @adist_send_list
	.comm	_adist_recv_list,4,2            ## @adist_recv_list
	.no_dead_strip	_sender_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sender_disconnect
_sender_disconnect:                     ; @sender_disconnect
	.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
Lloh0:
	adrp	x0, _adist_remote_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _adist_remote_lock@GOTPAGEOFF]
	bl	_rw_wlock
Lloh2:
	adrp	x20, _adhost@GOTPAGE
Lloh3:
	ldr	x20, [x20, _adhost@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w2, [x8, #16]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_pjdlog_debug
	ldr	x8, [x20]
	ldr	x0, [x8, #32]
	bl	_proto_close
Lloh6:
	adrp	x19, _adist_remote_mtx@GOTPAGE
Lloh7:
	ldr	x19, [x19, _adist_remote_mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_lock
	ldr	x8, [x20]
	str	xzr, [x8, #32]
	mov	w9, #1
	str	w9, [x8]
	ldr	x8, [x8, #8]
	strb	wzr, [x8]
	ldr	x8, [x20]
	str	xzr, [x8, #24]
	mov	x0, x19
	bl	_mtx_unlock
Lloh8:
	adrp	x0, _adist_remote_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _adist_remote_lock@GOTPAGEOFF]
	bl	_rw_unlock
	ldr	x8, [x20]
	ldr	w1, [x8, #16]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pjdlog_warning
Lloh12:
	adrp	x0, _adist_free_list@GOTPAGE
Lloh13:
	ldr	x0, [x0, _adist_free_list@GOTPAGEOFF]
Lloh14:
	adrp	x1, _adist_send_list@GOTPAGE
Lloh15:
	ldr	x1, [x1, _adist_send_list@GOTPAGEOFF]
Lloh16:
	adrp	x2, _adist_recv_list@GOTPAGE
Lloh17:
	ldr	x2, [x2, _adist_recv_list@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_QUEUE_CONCAT2
LBB0_2:
Lloh18:
	adrp	x0, _adist_remote_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _adist_remote_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rw_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_adist_remote_lock,4,2          ; @adist_remote_lock
	.comm	_adhost,8,3                     ; @adhost
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Closing connection to %s."

	.comm	_adist_remote_mtx,4,2           ; @adist_remote_mtx
l_.str.1:                               ; @.str.1
	.asciz	"Disconnected from %s."

	.comm	_adist_free_list,4,2            ; @adist_free_list
	.comm	_adist_send_list,4,2            ; @adist_send_list
	.comm	_adist_recv_list,4,2            ; @adist_recv_list
	.no_dead_strip	_sender_disconnect
.subsections_via_symbols
