	.file	"extr_pblk-init.c_pblk_set_provision.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"OP too small to create a sane instance\n"
	.align 8
.LC1:
	.string	"Default OP insufficient, adjusting OP to %d\n"
	.text
	.p2align 4
	.type	pblk_set_provision, @function
pblk_set_provision:
.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
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR 64[rdi]
	mov	rax, QWORD PTR [r14]
	cmp	rax, QWORD PTR NVM_TARGET_DEFAULT_OP[rip]
	jne	.L2
	mov	rax, QWORD PTR PBLK_DEFAULT_OP[rip]
.L2:
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rbp
	mov	ebx, 100
	call	pblk_get_min_chks@PLT
	sub	rbx, QWORD PTR 0[rbp]
	mov	esi, 100
	imul	ebx, r12d
	mov	r13d, eax
	mov	edi, ebx
	call	sector_div@PLT
	mov	eax, r12d
	sub	eax, ebx
	cmp	eax, r13d
	jge	.L3
	mov	rax, QWORD PTR NVM_TARGET_DEFAULT_OP[rip]
	cmp	QWORD PTR [r14], rax
	je	.L4
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	pblk_err@PLT
	mov	eax, DWORD PTR EINTR[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	imul	eax, r13d, 100
	mov	ebx, r12d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	sub	ebx, r13d
	cdq
	idiv	r12d
	movsx	rdx, eax
	mov	QWORD PTR 0[rbp], rdx
	mov	edx, eax
	call	pblk_info@PLT
	mov	eax, r13d
.L3:
	mov	edi, DWORD PTR 40[rbp]
	mov	esi, DWORD PTR 8[r14]
	mov	DWORD PTR 8[rbp], eax
	mov	rax, QWORD PTR 48[rbp]
	mov	DWORD PTR 24[rbp], r12d
	add	edi, DWORD PTR [rax]
	imul	edi, DWORD PTR 56[rbp]
	call	DIV_ROUND_UP@PLT
	lea	rdi, 32[rbp]
	mov	esi, r12d
	mov	r8d, eax
	mov	eax, DWORD PTR 8[r14]
	sub	ebx, r8d
	cdq
	idiv	DWORD PTR 12[rbp]
	imul	eax, DWORD PTR 16[rbp]
	imul	eax, ebx
	mov	DWORD PTR 20[rbp], eax
	call	atomic_set@PLT
	lea	rdi, 28[rbp]
	mov	esi, r12d
	call	atomic_set@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	pblk_set_provision, .-pblk_set_provision
	.comm	PBLK_DEFAULT_OP,8,8
	.comm	NVM_TARGET_DEFAULT_OP,8,8
	.comm	EINTR,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_pblk-init.c_pblk_set_provision.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"OP too small to create a sane instance\012\000"
	.global	__aeabi_idiv
	.align	2
.LC1:
	.ascii	"Default OP insufficient, adjusting OP to %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pblk_set_provision, %function
pblk_set_provision:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [r0, #44]
	ldr	r9, .L8
	ldr	r3, [r8]
	ldr	r2, [r9]
	mov	r7, r1
	cmp	r3, r2
	ldreq	r3, .L8+4
	mov	r4, r0
	ldreq	r3, [r3]
	str	r3, [r0]
	bl	pblk_get_min_chks
	mov	r1, #100
	mov	r6, r0
	ldr	r5, [r4]
	sub	r5, r1, r5
	mul	r5, r7, r5
	mov	r0, r5
	bl	sector_div
	sub	r3, r7, r5
	cmp	r3, r6
	bge	.L3
	ldr	r3, [r9]
	ldr	r2, [r8]
	cmp	r2, r3
	beq	.L4
	mov	r0, r4
	ldr	r1, .L8+8
	bl	pblk_err
	ldr	r3, .L8+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	add	r0, r6, r6, lsl #2
	add	r0, r0, r0, lsl #2
	mov	r1, r7
	lsl	r0, r0, #2
	bl	__aeabi_idiv
	ldr	r1, .L8+16
	mov	r2, r0
	str	r0, [r4]
	mov	r0, r4
	bl	pblk_info
	mov	r3, r6
	sub	r5, r7, r6
.L3:
	ldr	r2, [r4, #36]
	str	r3, [r4, #4]
	str	r7, [r4, #20]
	ldr	r3, [r2]
	ldr	r2, [r4, #32]
	ldr	r0, [r4, #40]
	add	r3, r3, r2
	mul	r0, r3, r0
	ldr	r1, [r8, #4]
	bl	DIV_ROUND_UP
	ldr	r1, [r4, #8]
	mov	r6, r0
	ldr	r0, [r8, #4]
	bl	__aeabi_idiv
	ldr	r3, [r4, #12]
	sub	r5, r5, r6
	mul	r0, r3, r0
	mul	r5, r0, r5
	mov	r1, r7
	str	r5, [r4, #16]
	add	r0, r4, #28
	bl	atomic_set
	mov	r1, r7
	add	r0, r4, #24
	bl	atomic_set
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	NVM_TARGET_DEFAULT_OP
	.word	PBLK_DEFAULT_OP
	.word	.LC0
	.word	EINTR
	.word	.LC1
	.size	pblk_set_provision, .-pblk_set_provision
	.comm	PBLK_DEFAULT_OP,4,4
	.comm	NVM_TARGET_DEFAULT_OP,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
