	.file	"extr_Server.c_SiWriteHubAccessLists.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SiWriteHubAccessLists
	.type	SiWriteHubAccessLists, @function
SiWriteHubAccessLists:
.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
	sub	rsp, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rbx, rsi
	test	rsi, rsi
	je	.L1
	mov	r13, rdi
	mov	edi, DWORD PTR [rsi]
	xor	r12d, r12d
	call	LockList@PLT
	mov	edi, DWORD PTR [rbx]
	call	LIST_NUM@PLT
	cmp	r12, rax
	jge	.L14
.L7:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r12
	mov	r14, rsp
	call	LIST_DATA@PLT
	mov	rcx, rsp
	mov	r15, rax
	movsx	rax, DWORD PTR MAX_SIZE[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L5
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L5:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L6
	or	QWORD PTR -8[rsp+rdx], 0
.L6:
	mov	esi, DWORD PTR [r15]
	mov	rdi, rsp
	add	r12, 1
	call	ToStr@PLT
	mov	rsi, rsp
	mov	rdi, r13
	call	CfgCreateFolder@PLT
	mov	rsi, r15
	mov	edi, eax
	call	SiWriteHubAccessCfg@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsp, r14
	call	LIST_NUM@PLT
	cmp	r12, rax
	jl	.L7
.L14:
	mov	edi, DWORD PTR [rbx]
	call	UnlockList@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SiWriteHubAccessLists, .-SiWriteHubAccessLists
	.comm	MAX_SIZE,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_Server.c_SiWriteHubAccessLists.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SiWriteHubAccessLists
	.syntax unified
	.arm
	.fpu softvfp
	.type	SiWriteHubAccessLists, %function
SiWriteHubAccessLists:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	clz	r4, r1
	cmp	r0, #0
	add	fp, sp, #28
	lsr	r4, r4, #5
	sub	sp, sp, #8
	moveq	r4, #1
	ldr	r3, .L10
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	beq	.L8
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L8:
	mov	r6, r0
	ldr	r0, [r1]
	mov	r5, r1
	ldr	r7, .L10+4
	bl	LockList
	b	.L3
.L4:
	mov	r1, r4
	ldr	r0, [r5]
	bl	LIST_DATA
	mov	r8, r0
	mov	r9, sp
	ldr	r3, [r7]
	ldr	r1, [r0]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r0, sp
	bl	ToStr
	mov	r1, sp
	mov	r0, r6
	bl	CfgCreateFolder
	mov	r1, r8
	bl	SiWriteHubAccessCfg
	mov	sp, r9
	add	r4, r4, #1
.L3:
	ldr	r0, [r5]
	bl	LIST_NUM
	cmp	r4, r0
	blt	.L4
	ldr	r0, [r5]
	bl	UnlockList
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	MAX_SIZE
	.size	SiWriteHubAccessLists, .-SiWriteHubAccessLists
	.comm	MAX_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
