	.file	"extr_lwan-thread.c_siblings_to_schedtbl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	siblings_to_schedtbl, @function
siblings_to_schedtbl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	lea	edi, 0[0+rax*4]
	call	alloca@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L2
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR [rsi+rdx*4], -1
	movsx	rax, DWORD PTR [rbx]
	add	rdx, 1
	mov	rdi, rax
	cmp	rax, rdx
	ja	.L3
	test	eax, eax
	je	.L2
	xor	edx, edx
	xor	r8d, r8d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	rax, r8d
	add	r8d, 2
	mov	QWORD PTR 8[r12+rax*8], rdx
	add	rdx, 1
	mov	QWORD PTR [r12+rax*8], rcx
	movsx	rax, edi
	cmp	rax, rdx
	jbe	.L19
.L6:
	mov	rax, QWORD PTR 0[r13+rdx*8]
	lea	rax, [rsi+rax*4]
	movsx	rcx, DWORD PTR [rax]
	test	ecx, ecx
	jns	.L4
	mov	DWORD PTR [rax], edx
	mov	edi, DWORD PTR [rbx]
	add	rdx, 1
	movsx	rax, edi
	cmp	rax, rdx
	ja	.L6
.L19:
	test	r8d, r8d
	je	.L20
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	edx, 0[0+rax*4]
.L8:
	mov	rdi, r12
	call	memcpy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	edx, edx
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	siblings_to_schedtbl, .-siblings_to_schedtbl
	.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_lwan-thread.c_siblings_to_schedtbl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	siblings_to_schedtbl, %function
siblings_to_schedtbl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	ip, [r0]
	mov	r3, r1
	lsl	r6, ip, #2
	add	r1, r6, #7
	bic	r1, r1, #7
	sub	sp, sp, r1
	mov	r1, sp
	cmp	ip, #0
	mov	r0, r2
	ldr	r2, .L18
	subne	lr, r6, #4
	ldr	r2, [r2]
	str	r2, [fp, #-24]
	mov	r2,#0
	addne	lr, r1, lr
	mvnne	r2, #0
	subne	ip, r1, #4
	beq	.L8
.L4:
	str	r2, [ip, #4]!
	cmp	ip, lr
	bne	.L4
	mov	ip, #0
	mov	r4, ip
	sub	r3, r3, #4
	add	r2, r3, r6
.L7:
	ldr	r5, [r3, #4]!
	ldr	lr, [r1, r5, lsl #2]
	cmp	lr, #0
	lslge	r5, r4, #2
	addge	r5, r0, r5
	strge	lr, [r0, r4, lsl #2]
	strlt	ip, [r1, r5, lsl #2]
	strge	ip, [r5, #4]
	addge	r4, r4, #2
	cmp	r3, r2
	add	ip, ip, #1
	bne	.L7
	cmp	r4, #0
	beq	.L8
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L8:
	mov	r2, r6
	bl	memcpy
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	siblings_to_schedtbl, .-siblings_to_schedtbl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
