	.file	"extr_blk-wbt.c_wbt_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wbt_init
	.type	wbt_init, @function
wbt_init:
.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	r12, rdi
	mov	edi, 72
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L11
	mov	esi, DWORD PTR wbt_data_dir[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	rbp, rax
	mov	edi, DWORD PTR wb_timer_fn[rip]
	call	blk_stat_alloc_callback@PLT
	mov	DWORD PTR 36[rbp], eax
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR WBT_NUM_RWQ[rip]
	xor	ebx, ebx
	test	eax, eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 64[rbp]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	rq_wait_init@PLT
	cmp	DWORD PTR WBT_NUM_RWQ[rip], ebx
	jg	.L5
.L6:
	mov	eax, DWORD PTR RQ_QOS_WBT[rip]
	mov	QWORD PTR 8[rbp], r12
	lea	r13, 8[rbp]
	mov	rdi, rbp
	mov	DWORD PTR 24[rbp], eax
	lea	rax, wbt_rqos_ops[rip]
	mov	QWORD PTR 16[rbp], rax
	mov	eax, DWORD PTR jiffies[rip]
	mov	DWORD PTR 52[rbp], eax
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR RWB_WINDOW_NSEC[rip]
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR WBT_STATE_ON_DEFAULT[rip]
	mov	DWORD PTR 0[rbp], 1
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR RWB_DEF_DEPTH[rip]
	mov	DWORD PTR 40[rbp], eax
	call	__wbt_update_limits@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	rq_qos_add@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	rdi, r12
	call	blk_stat_add_callback@PLT
	mov	rdi, r12
	call	wbt_default_latency_nsec@PLT
	mov	rdi, r13
	mov	DWORD PTR 32[rbp], eax
	call	wbt_queue_depth_changed@PLT
	mov	edi, DWORD PTR QUEUE_FLAG_WC[rip]
	mov	rsi, r12
	call	test_bit@PLT
	mov	rdi, r12
	mov	esi, eax
	call	wbt_set_write_cache@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	kfree@PLT
.L11:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wbt_init, .-wbt_init
	.comm	wbt_rqos_ops,4,4
	.comm	wbt_data_dir,4,4
	.comm	wb_timer_fn,4,4
	.comm	jiffies,4,4
	.comm	WBT_STATE_ON_DEFAULT,4,4
	.comm	WBT_NUM_RWQ,4,4
	.comm	RWB_WINDOW_NSEC,4,4
	.comm	RWB_DEF_DEPTH,4,4
	.comm	RQ_QOS_WBT,4,4
	.comm	QUEUE_FLAG_WC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_blk-wbt.c_wbt_init.c"
	.text
	.align	2
	.global	wbt_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	wbt_init, %function
wbt_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	mov	r6, r0
	mov	r0, #48
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L10
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #2
	mov	r3, r5
	bl	blk_stat_alloc_callback
	cmp	r0, #0
	str	r0, [r5, #20]
	beq	.L4
	ldr	r7, .L12+12
	ldr	r3, [r7]
	cmp	r3, #0
	movgt	r4, #0
	ble	.L6
.L5:
	ldr	r0, [r5, #44]
	add	r0, r0, r4, lsl #2
	bl	rq_wait_init
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L6:
	mov	r2, #1
	ldr	ip, .L12+16
	ldr	r0, .L12+20
	ldr	r1, .L12+24
	ldr	r3, .L12+28
	ldr	lr, [ip]
	ldr	r3, [r3]
	ldr	ip, [r0]
	ldr	r0, [r1]
	ldr	r1, .L12+32
	str	r3, [r5, #36]
	ldr	r1, [r1]
	str	r3, [r5, #40]
	ldr	r3, .L12+36
	str	lr, [r5, #12]
	str	ip, [r5, #32]
	str	r2, [r5]
	str	r3, [r5, #8]
	str	r0, [r5, #28]
	str	r1, [r5, #24]
	add	r4, r5, #4
	mov	r0, r5
	str	r6, [r5, #4]
	bl	__wbt_update_limits
	mov	r1, r4
	mov	r0, r6
	bl	rq_qos_add
	ldr	r1, [r5, #20]
	mov	r0, r6
	bl	blk_stat_add_callback
	mov	r0, r6
	bl	wbt_default_latency_nsec
	mov	r3, r0
	mov	r0, r4
	str	r3, [r5, #16]
	bl	wbt_queue_depth_changed
	ldr	r3, .L12+40
	mov	r1, r6
	ldr	r0, [r3]
	bl	test_bit
	mov	r1, r0
	mov	r0, r6
	bl	wbt_set_write_cache
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r5
	bl	kfree
.L10:
	ldr	r3, .L12+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	wbt_data_dir
	.word	wb_timer_fn
	.word	WBT_NUM_RWQ
	.word	RQ_QOS_WBT
	.word	RWB_WINDOW_NSEC
	.word	WBT_STATE_ON_DEFAULT
	.word	jiffies
	.word	RWB_DEF_DEPTH
	.word	wbt_rqos_ops
	.word	QUEUE_FLAG_WC
	.word	ENOMEM
	.size	wbt_init, .-wbt_init
	.comm	wbt_rqos_ops,4,4
	.comm	wbt_data_dir,4,4
	.comm	wb_timer_fn,4,4
	.comm	jiffies,4,4
	.comm	WBT_STATE_ON_DEFAULT,4,4
	.comm	WBT_NUM_RWQ,4,4
	.comm	RWB_WINDOW_NSEC,4,4
	.comm	RWB_DEF_DEPTH,4,4
	.comm	RQ_QOS_WBT,4,4
	.comm	QUEUE_FLAG_WC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
