	.file	"extr_fair.c_enqueue_entity.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	enqueue_entity, @function
enqueue_entity:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 16[rdi]
	test	DWORD PTR ENQUEUE_WAKEUP[rip], edx
	je	.L2
	test	DWORD PTR ENQUEUE_MIGRATED[rip], edx
	je	.L3
.L2:
	cmp	rbx, r13
	jne	.L4
	mov	rax, QWORD PTR 8[rbp]
	add	DWORD PTR 4[rbx], eax
	mov	rdi, rbp
	call	update_curr@PLT
	mov	rsi, rbx
	mov	edx, DWORD PTR DO_ATTACH[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR UPDATE_TG[rip]
	call	update_load_avg@PLT
	mov	rdi, rbx
	call	update_cfs_group@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	enqueue_runnable_load_avg@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	account_entity_enqueue@PLT
	test	DWORD PTR ENQUEUE_WAKEUP[rip], r12d
	jne	.L9
	xor	eax, eax
	call	check_schedstat_required@PLT
	mov	edx, r12d
	mov	rsi, rbx
	mov	rdi, rbp
	call	update_stats_enqueue@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	check_spread@PLT
	cmp	DWORD PTR 0[rbp], 1
	mov	DWORD PTR [rbx], 1
	jne	.L1
.L18:
	mov	rdi, rbp
	call	list_add_leaf_cfs_rq@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	check_enqueue_throttle@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	update_curr@PLT
	mov	rax, QWORD PTR 8[rbp]
	add	DWORD PTR 4[rbx], eax
	mov	rsi, rbx
	mov	edx, DWORD PTR UPDATE_TG[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR DO_ATTACH[rip]
	call	update_load_avg@PLT
	mov	rdi, rbx
	call	update_cfs_group@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	enqueue_runnable_load_avg@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	account_entity_enqueue@PLT
	test	DWORD PTR ENQUEUE_WAKEUP[rip], r12d
	jne	.L9
	xor	eax, eax
	call	check_schedstat_required@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, r12d
	call	update_stats_enqueue@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	check_spread@PLT
.L8:
	mov	rsi, rbx
	mov	rdi, rbp
	call	__enqueue_entity@PLT
.L6:
	cmp	DWORD PTR 0[rbp], 1
	mov	DWORD PTR [rbx], 1
	je	.L18
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	update_curr@PLT
	mov	rsi, rbx
	mov	edx, DWORD PTR UPDATE_TG[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR DO_ATTACH[rip]
	call	update_load_avg@PLT
	mov	rdi, rbx
	call	update_cfs_group@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	enqueue_runnable_load_avg@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	account_entity_enqueue@PLT
	test	DWORD PTR ENQUEUE_WAKEUP[rip], r12d
	jne	.L9
.L10:
	xor	eax, eax
	call	check_schedstat_required@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, r12d
	call	update_stats_enqueue@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	check_spread@PLT
	cmp	rbx, r13
	jne	.L8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	xor	edx, edx
	mov	rsi, rbx
	mov	rdi, rbp
	call	place_entity@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	enqueue_entity, .-enqueue_entity
	.comm	UPDATE_TG,4,4
	.comm	ENQUEUE_WAKEUP,4,4
	.comm	ENQUEUE_MIGRATED,4,4
	.comm	DO_ATTACH,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_fair.c_enqueue_entity.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue_entity, %function
enqueue_entity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L18
	mov	r6, r2
	ldr	r3, [r7]
	mov	r5, r0
	tst	r2, r3
	mov	r4, r1
	ldr	r8, [r0, #8]
	beq	.L2
	ldr	r3, .L18+4
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L3
.L2:
	cmp	r4, r8
	bne	.L4
	ldr	r2, [r5, #4]
	ldr	r3, [r4, #4]
	mov	r0, r5
	add	r3, r3, r2
	str	r3, [r4, #4]
	bl	update_curr
	ldr	r2, .L18+8
	ldr	r3, .L18+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r4
	orr	r2, r2, r3
	mov	r0, r5
	bl	update_load_avg
	mov	r0, r4
	bl	update_cfs_group
	mov	r1, r4
	mov	r0, r5
	bl	enqueue_runnable_load_avg
	mov	r1, r4
	mov	r0, r5
	bl	account_entity_enqueue
	ldr	r3, [r7]
	tst	r6, r3
	bne	.L9
	bl	check_schedstat_required
	mov	r1, r4
	mov	r2, r6
	mov	r0, r5
	bl	update_stats_enqueue
	mov	r1, r4
	mov	r0, r5
	bl	check_spread
	b	.L6
.L4:
	mov	r0, r5
	bl	update_curr
	ldr	r1, .L18+12
	ldr	r2, .L18+8
	ldr	r0, [r5, #4]
	ldr	r3, [r4, #4]
	ldr	r1, [r1]
	ldr	r2, [r2]
	add	r3, r3, r0
	orr	r2, r1, r2
	str	r3, [r4, #4]
	mov	r1, r4
	mov	r0, r5
	bl	update_load_avg
	mov	r0, r4
	bl	update_cfs_group
	mov	r1, r4
	mov	r0, r5
	bl	enqueue_runnable_load_avg
	mov	r1, r4
	mov	r0, r5
	bl	account_entity_enqueue
	ldr	r3, [r7]
	tst	r6, r3
	bne	.L9
	bl	check_schedstat_required
	mov	r1, r4
	mov	r2, r6
	mov	r0, r5
	bl	update_stats_enqueue
	mov	r1, r4
	mov	r0, r5
	bl	check_spread
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	__enqueue_entity
.L6:
	mov	r2, #1
	ldr	r3, [r5]
	str	r2, [r4]
	cmp	r3, r2
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	bl	list_add_leaf_cfs_rq
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	check_enqueue_throttle
.L3:
	bl	update_curr
	ldr	r2, .L18+12
	ldr	r3, .L18+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r4
	orr	r2, r2, r3
	mov	r0, r5
	bl	update_load_avg
	mov	r0, r4
	bl	update_cfs_group
	mov	r1, r4
	mov	r0, r5
	bl	enqueue_runnable_load_avg
	mov	r1, r4
	mov	r0, r5
	bl	account_entity_enqueue
	ldr	r3, [r7]
	tst	r6, r3
	bne	.L9
.L10:
	bl	check_schedstat_required
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	update_stats_enqueue
	mov	r1, r4
	mov	r0, r5
	bl	check_spread
	cmp	r4, r8
	bne	.L8
	b	.L6
.L9:
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	place_entity
	b	.L10
.L19:
	.align	2
.L18:
	.word	ENQUEUE_WAKEUP
	.word	ENQUEUE_MIGRATED
	.word	DO_ATTACH
	.word	UPDATE_TG
	.size	enqueue_entity, .-enqueue_entity
	.comm	UPDATE_TG,4,4
	.comm	ENQUEUE_WAKEUP,4,4
	.comm	ENQUEUE_MIGRATED,4,4
	.comm	DO_ATTACH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
