	.file	"extr_Admin.c_StDeleteSession.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no_disconnect_session"
.LC1:
	.string	"LA_DELETE_SESSION"
	.text
	.p2align 4
	.globl	StDeleteSession
	.type	StDeleteSession, @function
StDeleteSession:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 72
	mov	QWORD PTR -72[rbp], rdi
	mov	r15, QWORD PTR 8[rdi]
	mov	rcx, rsp
	mov	r13, QWORD PTR ERR_NO_ERROR[rip]
	mov	r12, QWORD PTR 16[r15]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX_HUBNAME_LEN[rip]
	lea	esi, 1[rax]
	movsx	rax, esi
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L36:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L36
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L37
.L4:
	mov	eax, DWORD PTR MAX_SESSION_NAME_LEN[rip]
	mov	rcx, rsp
	mov	r9, rsp
	lea	r14d, 1[rax]
	movsx	rax, r14d
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L38:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L38
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L39
.L7:
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR -104[rbp], r9
	mov	DWORD PTR -92[rbp], esi
	mov	QWORD PTR -88[rbp], rsp
	call	IsEmptyStr@PLT
	mov	esi, DWORD PTR -92[rbp]
	mov	r9, QWORD PTR -104[rbp]
	test	rax, rax
	mov	QWORD PTR -80[rbp], rax
	je	.L8
	mov	r13, QWORD PTR ERR_INVALID_PARAMETER[rip]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	lea	rsp, -40[rbp]
	mov	rax, r13
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, r9
	call	StrCpy@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, r14d
	mov	rdi, rsp
	call	StrCpy@PLT
	mov	rdi, r12
	call	LockHubList@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r12
	call	GetHub@PLT
	mov	rdi, r12
	mov	r14, rax
	call	UnlockHubList@PLT
	test	r14, r14
	je	.L41
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jne	.L11
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	GetHubAdminOption@PLT
	test	rax, rax
	jne	.L42
.L11:
	mov	rsi, QWORD PTR -88[rbp]
	mov	rdi, r14
	call	GetSessionByName@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L43
	cmp	QWORD PTR 24[rax], 0
	je	.L18
	mov	r13, QWORD PTR ERR_LINK_CANT_DISCONNECT[rip]
.L19:
	call	ReleaseSession@PLT
.L17:
	cmp	r13, QWORD PTR ERR_NO_ERROR[rip]
	je	.L23
	mov	ecx, DWORD PTR [rbx]
	mov	rdi, QWORD PTR -72[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, r14
	call	ALog@PLT
.L23:
	mov	rdi, r14
	call	ReleaseHub@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	QWORD PTR 16[rax], 0
	je	.L20
	mov	r13, QWORD PTR ERR_SNAT_CANT_DISCONNECT[rip]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rax, QWORD PTR SERVER_TYPE_FARM_CONTROLLER[rip]
	cmp	QWORD PTR [r15], rax
	je	.L44
	mov	r13, QWORD PTR ERR_OBJECT_NOT_FOUND[rip]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L41:
	mov	r13, QWORD PTR ERR_HUB_NOT_FOUND[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	QWORD PTR 8[rax], 0
	jne	.L45
	cmp	QWORD PTR [rax], 0
	je	.L22
	mov	r13, QWORD PTR ERR_LAYER3_CANT_DISCONNECT[rip]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L39:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L45:
	mov	r13, QWORD PTR ERR_BRIDGE_CANT_DISCONNECT[rip]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, r14
	call	ReleaseHub@PLT
	mov	r13, QWORD PTR ERR_NOT_ENOUGH_RIGHT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR 8[r15]
	call	LockList@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	add	QWORD PTR -80[rbp], 1
.L14:
	mov	edi, DWORD PTR 8[r15]
	call	LIST_NUM@PLT
	mov	edi, DWORD PTR 8[r15]
	cmp	QWORD PTR -80[rbp], rax
	jge	.L46
	mov	rsi, QWORD PTR -80[rbp]
	call	LIST_DATA@PLT
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jne	.L15
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	rsi, rax
	mov	rdi, r15
	call	SiCallDeleteSession@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L46:
	call	UnlockList@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L22:
	mov	QWORD PTR -80[rbp], rax
	call	StopSession@PLT
	mov	rdi, QWORD PTR -80[rbp]
	jmp	.L19
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	StDeleteSession, .-StDeleteSession
	.comm	SERVER_TYPE_FARM_CONTROLLER,8,8
	.comm	MAX_SESSION_NAME_LEN,4,4
	.comm	MAX_HUBNAME_LEN,4,4
	.comm	ERR_SNAT_CANT_DISCONNECT,8,8
	.comm	ERR_OBJECT_NOT_FOUND,8,8
	.comm	ERR_NO_ERROR,8,8
	.comm	ERR_NOT_ENOUGH_RIGHT,8,8
	.comm	ERR_LINK_CANT_DISCONNECT,8,8
	.comm	ERR_LAYER3_CANT_DISCONNECT,8,8
	.comm	ERR_INVALID_PARAMETER,8,8
	.comm	ERR_HUB_NOT_FOUND,8,8
	.comm	ERR_BRIDGE_CANT_DISCONNECT,8,8
	.comm	CHECK_RIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_Admin.c_StDeleteSession.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no_disconnect_session\000"
	.align	2
.LC1:
	.ascii	"LA_DELETE_SESSION\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	StDeleteSession
	.syntax unified
	.arm
	.fpu softvfp
	.type	StDeleteSession, %function
StDeleteSession:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r2, .L32
	mov	r4, r1
	ldr	r1, [r2]
	ldr	r3, .L32+4
	add	r2, r1, #8
	bic	r2, r2, #7
	sub	sp, sp, r2
	mov	r2, sp
	ldr	r6, [r3]
	ldr	r8, [r0, #4]
	add	r3, r6, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r10, .L32+8
	ldr	r3, .L32+12
	str	r2, [fp, #-52]
	add	r1, r1, #1
	mov	r5, r0
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r9, [r8, #8]
	str	r1, [fp, #-48]
	ldr	r7, [r10]
	bl	IsEmptyStr
	subs	r3, r0, #0
	ldr	r1, [fp, #-48]
	ldr	r2, [fp, #-52]
	str	r3, [fp, #-56]
	beq	.L2
	ldr	r3, .L32+16
	ldr	r7, [r3]
.L1:
	ldr	r3, .L32+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r3, sp
	mov	r0, r2
	add	r6, r6, #1
	ldr	r2, [r4, #4]
	str	r3, [fp, #-48]
	bl	StrCpy
	mov	r1, r6
	ldr	r2, [r4]
	mov	r0, sp
	bl	StrCpy
	mov	r0, r9
	bl	LockHubList
	ldr	r1, [r4, #4]
	mov	r0, r9
	bl	GetHub
	mov	r6, r0
	mov	r0, r9
	bl	UnlockHubList
	cmp	r6, #0
	ldr	r3, [fp, #-48]
	beq	.L25
	ldr	r2, [r5]
	cmp	r2, #0
	bne	.L5
	mov	r0, r6
	ldr	r1, .L32+20
	str	r3, [fp, #-48]
	bl	GetHubAdminOption
	cmp	r0, #0
	ldr	r3, [fp, #-48]
	bne	.L26
.L5:
	mov	r1, r3
	mov	r0, r6
	bl	GetSessionByName
	subs	r9, r0, #0
	beq	.L27
	ldr	r3, [r9, #12]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [r9, #8]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L32+24
	ldr	r7, [r3]
.L13:
	mov	r0, r9
	bl	ReleaseSession
.L11:
	ldr	r3, [r10]
	cmp	r7, r3
	beq	.L17
	mov	r0, r5
	mov	r1, r6
	ldr	r3, [r4]
	ldr	r2, .L32+28
	bl	ALog
.L17:
	mov	r0, r6
	bl	ReleaseHub
	b	.L1
.L28:
	ldr	r3, .L32+32
	ldr	r7, [r3]
	b	.L13
.L27:
	ldr	r3, .L32+36
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L29
	ldr	r3, .L32+40
	ldr	r7, [r3]
	b	.L11
.L25:
	ldr	r3, .L32+44
	ldr	r7, [r3]
	b	.L1
.L14:
	ldr	r3, [r9, #4]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [r9]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L32+48
	ldr	r7, [r3]
	b	.L13
.L26:
	mov	r0, r6
	bl	ReleaseHub
	ldr	r3, .L32+52
	ldr	r7, [r3]
	b	.L1
.L30:
	ldr	r3, .L32+56
	ldr	r7, [r3]
	b	.L13
.L29:
	ldr	r0, [r8, #4]
	bl	LockList
	b	.L8
.L9:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L8:
	ldr	r0, [r8, #4]
	bl	LIST_NUM
	ldr	r3, [fp, #-56]
	cmp	r3, r0
	bge	.L31
	ldr	r1, [fp, #-56]
	ldr	r0, [r8, #4]
	bl	LIST_DATA
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L9
	mov	r1, r0
	ldr	r3, [r4]
	mov	r0, r8
	ldr	r2, [r4, #4]
	bl	SiCallDeleteSession
	b	.L9
.L31:
	ldr	r0, [r8, #4]
	bl	UnlockList
	b	.L11
.L16:
	bl	StopSession
	b	.L13
.L24:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	MAX_HUBNAME_LEN
	.word	MAX_SESSION_NAME_LEN
	.word	ERR_NO_ERROR
	.word	.LC2
	.word	ERR_INVALID_PARAMETER
	.word	.LC0
	.word	ERR_SNAT_CANT_DISCONNECT
	.word	.LC1
	.word	ERR_LINK_CANT_DISCONNECT
	.word	SERVER_TYPE_FARM_CONTROLLER
	.word	ERR_OBJECT_NOT_FOUND
	.word	ERR_HUB_NOT_FOUND
	.word	ERR_LAYER3_CANT_DISCONNECT
	.word	ERR_NOT_ENOUGH_RIGHT
	.word	ERR_BRIDGE_CANT_DISCONNECT
	.size	StDeleteSession, .-StDeleteSession
	.comm	SERVER_TYPE_FARM_CONTROLLER,4,4
	.comm	MAX_SESSION_NAME_LEN,4,4
	.comm	MAX_HUBNAME_LEN,4,4
	.comm	ERR_SNAT_CANT_DISCONNECT,4,4
	.comm	ERR_OBJECT_NOT_FOUND,4,4
	.comm	ERR_NO_ERROR,4,4
	.comm	ERR_NOT_ENOUGH_RIGHT,4,4
	.comm	ERR_LINK_CANT_DISCONNECT,4,4
	.comm	ERR_LAYER3_CANT_DISCONNECT,4,4
	.comm	ERR_INVALID_PARAMETER,4,4
	.comm	ERR_HUB_NOT_FOUND,4,4
	.comm	ERR_BRIDGE_CANT_DISCONNECT,4,4
	.comm	CHECK_RIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
