	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StDeleteSession                ## -- Begin function StDeleteSession
	.p2align	4, 0x90
_StDeleteSession:                       ## @StDeleteSession
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	16(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_HUBNAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_SESSION_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%r12), %edi
	callq	_IsEmptyStr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_29
LBB0_2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_StrCpy
	movl	(%r12), %edx
	movq	%r13, %r15
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_StrCpy
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_LockHubList
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_GetHub
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_UnlockHubList
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_5
LBB0_7:
	movq	%r14, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_GetSessionByName
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:
	movq	%rax, %r14
	cmpq	$0, 24(%rax)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movq	_ERR_LINK_CANT_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_25
LBB0_3:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_29
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_ReleaseHub
	movq	_ERR_NOT_ENOUGH_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_29
LBB0_8:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	_SERVER_TYPE_FARM_CONTROLLER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_15
## %bb.9:
	movl	8(%r15), %edi
	callq	_LockList
	movl	8(%r15), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movl	8(%r15), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_SiCallDeleteSession
	jmp	LBB0_13
LBB0_18:
	cmpq	$0, 16(%r14)
	je	LBB0_20
## %bb.19:
	movq	_ERR_SNAT_CANT_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_25
LBB0_15:
	movq	_ERR_OBJECT_NOT_FOUND@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_26
LBB0_14:
	movl	8(%r15), %edi
	callq	_UnlockList
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_20:
	cmpq	$0, 8(%r14)
	je	LBB0_22
## %bb.21:
	movq	_ERR_BRIDGE_CANT_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_25
LBB0_22:
	cmpq	$0, (%r14)
	je	LBB0_24
## %bb.23:
	movq	_ERR_LAYER3_CANT_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_25
LBB0_24:
	movq	%r14, %rdi
	callq	_StopSession
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	movq	%r14, %rdi
	callq	_ReleaseSession
LBB0_26:
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_28
## %bb.27:
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ALog
LBB0_28:
	movq	%r13, %rdi
	callq	_ReleaseHub
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
	.comm	_MAX_HUBNAME_LEN,4,2            ## @MAX_HUBNAME_LEN
	.comm	_MAX_SESSION_NAME_LEN,4,2       ## @MAX_SESSION_NAME_LEN
	.comm	_ERR_INVALID_PARAMETER,8,3      ## @ERR_INVALID_PARAMETER
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,8,3          ## @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no_disconnect_session"

	.comm	_ERR_NOT_ENOUGH_RIGHT,8,3       ## @ERR_NOT_ENOUGH_RIGHT
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ## @SERVER_TYPE_FARM_CONTROLLER
	.comm	_ERR_OBJECT_NOT_FOUND,8,3       ## @ERR_OBJECT_NOT_FOUND
	.comm	_ERR_LINK_CANT_DISCONNECT,8,3   ## @ERR_LINK_CANT_DISCONNECT
	.comm	_ERR_SNAT_CANT_DISCONNECT,8,3   ## @ERR_SNAT_CANT_DISCONNECT
	.comm	_ERR_BRIDGE_CANT_DISCONNECT,8,3 ## @ERR_BRIDGE_CANT_DISCONNECT
	.comm	_ERR_LAYER3_CANT_DISCONNECT,8,3 ## @ERR_LAYER3_CANT_DISCONNECT
L_.str.1:                               ## @.str.1
	.asciz	"LA_DELETE_SESSION"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StDeleteSession                ; -- Begin function StDeleteSession
	.p2align	2
_StDeleteSession:                       ; @StDeleteSession
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x23, [x0, #8]
Lloh3:
	adrp	x28, _ERR_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x28, [x28, _ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x24, [x23, #16]
	ldr	x19, [x28]
Lloh5:
	adrp	x8, _MAX_HUBNAME_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_HUBNAME_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w22, w8, #1
	mov	x9, x22
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x27, x8, x9
	mov	sp, x27
Lloh10:
	adrp	x8, _MAX_SESSION_NAME_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_SESSION_NAME_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w26, w8, #1
	mov	x9, x26
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	ldr	w0, [x1]
	bl	_IsEmptyStr
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
	b	LBB0_29
LBB0_2:
	ldr	w2, [x21, #4]
	mov	x0, x27
	mov	x1, x22
	bl	_StrCpy
	ldr	w2, [x21]
	mov	x0, x25
	mov	x1, x26
	bl	_StrCpy
	mov	x0, x24
	bl	_LockHubList
	ldr	w1, [x21, #4]
	mov	x0, x24
	bl	_GetHub
	mov	x22, x0
	mov	x0, x24
	bl	_UnlockHubList
	cbz	x22, LBB0_7
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_8
LBB0_4:
	mov	x0, x22
	mov	x1, x25
	bl	_GetSessionByName
	cbz	x0, LBB0_10
; %bb.5:
	mov	x24, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_16
; %bb.6:
Lloh18:
	adrp	x8, _ERR_LINK_CANT_DISCONNECT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_LINK_CANT_DISCONNECT@GOTPAGEOFF]
Lloh20:
	ldr	x19, [x8]
	b	LBB0_25
LBB0_7:
Lloh21:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
Lloh23:
	ldr	x19, [x8]
	b	LBB0_29
LBB0_8:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_GetHubAdminOption
	cbz	x0, LBB0_4
; %bb.9:
	mov	x0, x22
	bl	_ReleaseHub
Lloh26:
	adrp	x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGEOFF]
Lloh28:
	ldr	x19, [x8]
	b	LBB0_29
LBB0_10:
	ldr	x8, [x23]
Lloh29:
	adrp	x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.11:
	ldr	w0, [x23, #8]
	bl	_LockList
	ldr	w0, [x23, #8]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x24, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	ldr	w0, [x23, #8]
	bl	_LIST_NUM
	cmp	x24, x0
	b.ge	LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #8]
	mov	x1, x24
	bl	_LIST_DATA
	ldr	w8, [x0]
	cbnz	w8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	ldp	w3, w2, [x21]
	mov	x0, x23
	bl	_SiCallDeleteSession
	b	LBB0_13
LBB0_16:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_20
; %bb.17:
Lloh32:
	adrp	x8, _ERR_SNAT_CANT_DISCONNECT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERR_SNAT_CANT_DISCONNECT@GOTPAGEOFF]
Lloh34:
	ldr	x19, [x8]
	b	LBB0_25
LBB0_18:
Lloh35:
	adrp	x8, _ERR_OBJECT_NOT_FOUND@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERR_OBJECT_NOT_FOUND@GOTPAGEOFF]
Lloh37:
	ldr	x19, [x8]
	b	LBB0_26
LBB0_19:
	ldr	w0, [x23, #8]
	bl	_UnlockList
	b	LBB0_26
LBB0_20:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_22
; %bb.21:
Lloh38:
	adrp	x8, _ERR_BRIDGE_CANT_DISCONNECT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERR_BRIDGE_CANT_DISCONNECT@GOTPAGEOFF]
Lloh40:
	ldr	x19, [x8]
	b	LBB0_25
LBB0_22:
	ldr	x8, [x24]
	cbz	x8, LBB0_24
; %bb.23:
Lloh41:
	adrp	x8, _ERR_LAYER3_CANT_DISCONNECT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERR_LAYER3_CANT_DISCONNECT@GOTPAGEOFF]
Lloh43:
	ldr	x19, [x8]
	b	LBB0_25
LBB0_24:
	mov	x0, x24
	bl	_StopSession
LBB0_25:
	mov	x0, x24
	bl	_ReleaseSession
LBB0_26:
	ldr	x8, [x28]
	cmp	x19, x8
	b.eq	LBB0_28
; %bb.27:
	ldr	w3, [x21]
Lloh44:
	adrp	x2, l_.str.1@PAGE
Lloh45:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_ALog
LBB0_28:
	mov	x0, x22
	bl	_ReleaseHub
LBB0_29:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
	.comm	_MAX_HUBNAME_LEN,4,2            ; @MAX_HUBNAME_LEN
	.comm	_MAX_SESSION_NAME_LEN,4,2       ; @MAX_SESSION_NAME_LEN
	.comm	_ERR_INVALID_PARAMETER,8,3      ; @ERR_INVALID_PARAMETER
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,8,3          ; @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no_disconnect_session"

	.comm	_ERR_NOT_ENOUGH_RIGHT,8,3       ; @ERR_NOT_ENOUGH_RIGHT
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ; @SERVER_TYPE_FARM_CONTROLLER
	.comm	_ERR_OBJECT_NOT_FOUND,8,3       ; @ERR_OBJECT_NOT_FOUND
	.comm	_ERR_LINK_CANT_DISCONNECT,8,3   ; @ERR_LINK_CANT_DISCONNECT
	.comm	_ERR_SNAT_CANT_DISCONNECT,8,3   ; @ERR_SNAT_CANT_DISCONNECT
	.comm	_ERR_BRIDGE_CANT_DISCONNECT,8,3 ; @ERR_BRIDGE_CANT_DISCONNECT
	.comm	_ERR_LAYER3_CANT_DISCONNECT,8,3 ; @ERR_LAYER3_CANT_DISCONNECT
l_.str.1:                               ; @.str.1
	.asciz	"LA_DELETE_SESSION"

.subsections_via_symbols
