	.file	"extr_ip_vs_sync.c_sb_queue_tail.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sb_queue_tail, @function
sb_queue_tail:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, 8[rdi]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	r13, QWORD PTR 24[rsi]
	call	spin_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IP_VS_STATE_MASTER[rip], eax
	je	.L2
	mov	r14, QWORD PTR [rbx]
	mov	rdi, rbp
	call	sysctl_sync_qlen_max@PLT
	cmp	r14, rax
	jl	.L10
.L2:
	mov	rdi, r13
	call	ip_vs_sync_buff_release@PLT
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L11
.L3:
	add	rax, 1
	lea	rsi, 16[rbx]
	mov	rdi, r13
	mov	QWORD PTR [rbx], rax
	call	list_add_tail@PLT
	mov	rax, QWORD PTR 8[rbx]
	add	rax, 1
	cmp	rax, QWORD PTR IPVS_SYNC_WAKEUP_RATE[rip]
	mov	QWORD PTR 8[rbx], rax
	jne	.L4
	movsx	rax, DWORD PTR 4[rbp]
	sal	rax, 5
	sub	rbx, rax
	mov	rax, QWORD PTR 16[rbp]
	movsx	rbx, ebx
	mov	edi, DWORD PTR [rax+rbx*4]
	call	wake_up_process@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR IPVS_SYNC_SEND_DELAY[rip]
	mov	esi, 1
	call	max@PLT
	lea	rdi, 20[rbx]
	mov	esi, eax
	call	schedule_delayed_work@PLT
	mov	rax, QWORD PTR [rbx]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sb_queue_tail, .-sb_queue_tail
	.comm	IP_VS_STATE_MASTER,4,4
	.comm	IPVS_SYNC_WAKEUP_RATE,8,8
	.comm	IPVS_SYNC_SEND_DELAY,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_ip_vs_sync.c_sb_queue_tail.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sb_queue_tail, %function
sb_queue_tail:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	add	r6, r0, #8
	mov	r0, r6
	mov	r4, r1
	ldr	r7, [r1, #16]
	bl	spin_lock
	ldr	r3, .L12
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	mov	r0, r5
	ldr	r8, [r4]
	bl	sysctl_sync_qlen_max
	cmp	r8, r0
	blt	.L10
.L2:
	mov	r0, r7
	bl	ip_vs_sync_buff_release
.L4:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock
.L10:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L11
.L3:
	mov	r1, r4
	add	r3, r3, #1
	str	r3, [r1], #8
	mov	r0, r7
	bl	list_add_tail
	ldr	r2, .L12+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	add	r3, r3, #1
	cmp	r3, r2
	str	r3, [r4, #4]
	bne	.L4
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #12]
	add	r3, r3, r3, lsl #2
	sub	r4, r4, r3, lsl #2
	ldr	r0, [r2, r4, lsl #2]
	bl	wake_up_process
	b	.L4
.L11:
	ldr	r3, .L12+8
	mov	r1, #1
	ldr	r0, [r3]
	bl	max
	mov	r1, r0
	add	r0, r4, #12
	bl	schedule_delayed_work
	ldr	r3, [r4]
	b	.L3
.L13:
	.align	2
.L12:
	.word	IP_VS_STATE_MASTER
	.word	IPVS_SYNC_WAKEUP_RATE
	.word	IPVS_SYNC_SEND_DELAY
	.size	sb_queue_tail, .-sb_queue_tail
	.comm	IP_VS_STATE_MASTER,4,4
	.comm	IPVS_SYNC_WAKEUP_RATE,4,4
	.comm	IPVS_SYNC_SEND_DELAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
