	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StDisconnectConnection         ## -- Begin function StDisconnectConnection
	.p2align	4, 0x90
_StDisconnectConnection:                ## @StDisconnectConnection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movl	(%rsi), %edi
	callq	_IsEmptyStr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	(%rbx), %edi
	callq	_LockList
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_Zero
	movl	(%r12), %eax
	movl	%eax, -36(%rbp)
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_Search
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_AddRef
	movl	(%rbx), %edi
	callq	_UnlockList
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_StopConnection
	movq	%r15, %rdi
	callq	_ReleaseConnection
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ALog
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movl	(%rbx), %edi
	callq	_UnlockList
	movq	_ERR_OBJECT_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.comm	_SERVER_ADMIN_ONLY,4,2          ## @SERVER_ADMIN_ONLY
	.comm	_ERR_OBJECT_NOT_FOUND,4,2       ## @ERR_OBJECT_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LA_DISCONNECT_CONN"

	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StDisconnectConnection         ; -- Begin function StDisconnectConnection
	.p2align	2
_StDisconnectConnection:                ; @StDisconnectConnection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	w0, [x1]
	bl	_IsEmptyStr
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w0, [x22]
	bl	_LockList
	add	x0, sp, #8
	mov	w1, #8
	bl	_Zero
	ldr	w8, [x20]
	str	w8, [sp, #12]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_Search
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_AddRef
	ldr	w0, [x22]
	bl	_UnlockList
	mov	x0, x21
	mov	w1, #1
	bl	_StopConnection
	mov	x0, x21
	bl	_ReleaseConnection
	ldr	w3, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	bl	_ALog
Lloh4:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x22]
	bl	_UnlockList
Lloh6:
	adrp	x8, _ERR_OBJECT_NOT_FOUND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_OBJECT_NOT_FOUND@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.comm	_SERVER_ADMIN_ONLY,4,2          ; @SERVER_ADMIN_ONLY
	.comm	_ERR_OBJECT_NOT_FOUND,4,2       ; @ERR_OBJECT_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LA_DISCONNECT_CONN"

	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
.subsections_via_symbols
