	.file	"extr_Admin.c_SiEnumSessionMain.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SiEnumSessionMain
	.type	SiEnumSessionMain, @function
SiEnumSessionMain:
.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
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX_HUBNAME_LEN[rip]
	mov	rcx, rsp
	mov	QWORD PTR -72[rbp], rsp
	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
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L22
.L4:
	mov	QWORD PTR -80[rbp], rsp
	test	r15, r15
	je	.L8
	test	rbx, rbx
	je	.L8
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, rsp
	call	StrCpy@PLT
	mov	rdi, rbx
	call	FreeRpcEnumSession@PLT
	mov	esi, 8
	mov	rdi, rbx
	call	Zero@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, rsp
	mov	esi, 8
	call	StrCpy@PLT
	mov	rdx, rbx
	mov	rsi, rsp
	mov	rdi, r15
	call	SiEnumLocalSession@PLT
	mov	rax, QWORD PTR SERVER_TYPE_FARM_CONTROLLER[rip]
	cmp	QWORD PTR [r15], rax
	je	.L23
.L8:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, QWORD PTR -72[rbp]
	jne	.L24
	lea	rsp, -40[rbp]
	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
.L22:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	xor	edi, edi
	call	NewListFast@PLT
	mov	edi, DWORD PTR 8[r15]
	mov	r12, rax
	call	LockList@PLT
	lea	rax, -64[rbp]
	mov	QWORD PTR -88[rbp], rax
.L13:
	xor	r13d, r13d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, r13
	call	LIST_DATA@PLT
	mov	rdi, r12
	mov	rsi, rax
	mov	r14, rax
	call	IsInList@PLT
	test	eax, eax
	je	.L25
	add	r13, 1
.L9:
	mov	edi, DWORD PTR 8[r15]
	call	LIST_NUM@PLT
	mov	edi, DWORD PTR 8[r15]
	cmp	r13, rax
	jl	.L12
	call	UnlockList@PLT
	mov	rdi, r12
	call	ReleaseList@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rsi, r14
	mov	rdi, r12
	call	Add@PLT
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	je	.L26
.L11:
	mov	edi, DWORD PTR 8[r15]
	call	UnlockList@PLT
	mov	edi, DWORD PTR 8[r15]
	call	LockList@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L26:
	mov	r13, QWORD PTR -88[rbp]
	mov	esi, 8
	mov	rdi, r13
	call	Zero@PLT
	mov	rdx, QWORD PTR -80[rbp]
	mov	rcx, r13
	mov	rsi, r14
	mov	rdi, r15
	call	SiCallEnumSession@PLT
	mov	rdi, rbx
	mov	rsi, r13
	call	AdjoinRpcEnumSession@PLT
	mov	rdi, r13
	call	FreeRpcEnumSession@PLT
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SiEnumSessionMain, .-SiEnumSessionMain
	.comm	SERVER_TYPE_FARM_CONTROLLER,8,8
	.comm	MAX_HUBNAME_LEN,4,4
	.comm	ERR_NO_ERROR,8,8
	.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_SiEnumSessionMain.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SiEnumSessionMain
	.syntax unified
	.arm
	.fpu softvfp
	.type	SiEnumSessionMain, %function
SiEnumSessionMain:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	clz	r5, r1
	add	fp, sp, #32
	sub	sp, sp, #12
	cmp	r0, #0
	lsr	r5, r5, #5
	moveq	r5, #1
	ldr	r3, .L16
	mov	r8, sp
	ldr	r3, [r3]
	cmp	r5, #0
	add	r2, r3, #8
	bic	r2, r2, #7
	sub	sp, sp, r2
	ldr	r2, .L16+4
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	beq	.L2
.L4:
	ldr	r3, .L16+4
	mov	sp, r8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r7, r1
	mov	r4, r0
	add	r3, r3, #1
	mov	r1, r3
	ldr	r2, [r7]
	mov	r0, sp
	bl	StrCpy
	mov	r0, r7
	bl	FreeRpcEnumSession
	mov	r1, #4
	mov	r0, r7
	bl	Zero
	mov	r2, sp
	mov	r1, #4
	ldr	r0, [r7]
	bl	StrCpy
	mov	r2, r7
	mov	r1, sp
	mov	r0, r4
	bl	SiEnumLocalSession
	ldr	r3, .L16+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	mov	r0, r5
	bl	NewListFast
	mov	r10, r0
	ldr	r0, [r4, #4]
	mov	r9, sp
	bl	LockList
.L9:
	mov	r6, #0
	b	.L5
.L8:
	mov	r1, r6
	ldr	r0, [r4, #4]
	bl	LIST_DATA
	mov	r5, r0
	mov	r0, r10
	mov	r1, r5
	bl	IsInList
	cmp	r0, #0
	beq	.L14
	add	r6, r6, #1
.L5:
	ldr	r0, [r4, #4]
	bl	LIST_NUM
	cmp	r6, r0
	blt	.L8
	ldr	r0, [r4, #4]
	bl	UnlockList
	mov	r0, r10
	bl	ReleaseList
	b	.L4
.L14:
	mov	r1, r5
	mov	r0, r10
	bl	Add
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L15
.L7:
	ldr	r0, [r4, #4]
	bl	UnlockList
	ldr	r0, [r4, #4]
	bl	LockList
	b	.L9
.L15:
	mov	r1, #4
	sub	r0, fp, #44
	bl	Zero
	mov	r2, r9
	mov	r1, r5
	sub	r3, fp, #44
	mov	r0, r4
	bl	SiCallEnumSession
	mov	r0, r7
	sub	r1, fp, #44
	bl	AdjoinRpcEnumSession
	sub	r0, fp, #44
	bl	FreeRpcEnumSession
	b	.L7
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	MAX_HUBNAME_LEN
	.word	.LC0
	.word	SERVER_TYPE_FARM_CONTROLLER
	.size	SiEnumSessionMain, .-SiEnumSessionMain
	.comm	SERVER_TYPE_FARM_CONTROLLER,4,4
	.comm	MAX_HUBNAME_LEN,4,4
	.comm	ERR_NO_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
