	.file	"extr_heartbeat.c_o2hb_setup_one_bio.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not alloc slots BIO!\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"page %d, vec_len = %u, vec_start = %u\n"
	.text
	.p2align 4
	.type	o2hb_setup_one_bio, @function
o2hb_setup_one_bio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	mov	esi, 16
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r15d, DWORD PTR [rdi]
	mov	ebp, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR GFP_ATOMIC[rip]
	mov	ebx, DWORD PTR [rdx]
	mov	QWORD PTR 24[rsp], rdx
	mov	DWORD PTR 16[rsp], ecx
	call	bio_alloc@PLT
	test	rax, rax
	je	.L8
	mov	r14, rax
	mov	eax, DWORD PTR 8[r13]
	lea	ecx, -9[r15]
	xor	edx, edx
	mov	edi, DWORD PTR PAGE_CACHE_SIZE[rip]
	add	eax, ebx
	sal	eax, cl
	mov	ecx, r15d
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR 24[r13]
	mov	QWORD PTR 8[r14], r12
	mov	DWORD PTR 16[r14], eax
	mov	eax, DWORD PTR o2hb_bio_end_io[rip]
	mov	DWORD PTR 4[r14], eax
	mov	eax, ebx
	sal	eax, cl
	div	edi
	mov	r15d, edx
	cmp	ebx, DWORD PTR 16[rsp]
	jb	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR PAGE_CACHE_SIZE[rip]
	xor	edx, edx
	xor	r15d, r15d
	mov	eax, edi
	div	ebp
	xor	edx, edx
	mov	esi, eax
	mov	eax, ecx
	div	esi
	add	ebx, eax
	cmp	DWORD PTR 16[rsp], ebx
	jbe	.L3
.L4:
	mov	eax, ebx
	xor	edx, edx
	mov	esi, DWORD PTR 16[rsp]
	div	ebp
	sub	esi, ebx
	movsx	rdx, eax
	mov	rax, QWORD PTR 16[r13]
	mov	DWORD PTR 20[rsp], edx
	mov	r11, QWORD PTR [rax+rdx*8]
	mov	eax, edi
	xor	edx, edx
	sub	edi, r15d
	div	ebp
	mov	QWORD PTR 8[rsp], r11
	imul	esi, eax
	call	min@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	r8d, r15d
	mov	edi, DWORD PTR ML_HB_BIO[rip]
	mov	ecx, eax
	mov	r12d, eax
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	edx, r9d
	call	mlog@PLT
	mov	r11, QWORD PTR 8[rsp]
	mov	ecx, r15d
	mov	edx, r12d
	mov	rdi, r14
	mov	rsi, r11
	call	bio_add_page@PLT
	mov	ecx, eax
	cmp	eax, r12d
	je	.L9
.L3:
	mov	rax, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax], ebx
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR ML_ERROR[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	mlog@PLT
	mov	edi, DWORD PTR ENOMEM[rip]
	neg	edi
	call	ERR_PTR@PLT
	mov	r14, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	o2hb_setup_one_bio, .-o2hb_setup_one_bio
	.comm	o2hb_bio_end_io,4,4
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	ML_HB_BIO,4,4
	.comm	ML_ERROR,4,4
	.comm	GFP_ATOMIC,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_heartbeat.c_o2hb_setup_one_bio.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not alloc slots BIO!\012\000"
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
.LC1:
	.ascii	"page %d, vec_len = %u, vec_start = %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	o2hb_setup_one_bio, %function
o2hb_setup_one_bio:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, r2
	mov	fp, r0
	sub	sp, sp, #20
	str	r2, [sp, #12]
	ldr	r2, .L11
	mov	r6, r1
	ldm	fp, {r4, r7}
	mov	r1, #16
	ldr	r0, [r2]
	mov	r8, r3
	ldr	r5, [ip]
	bl	bio_alloc
	subs	r9, r0, #0
	beq	.L9
	ldr	r3, [fp, #8]
	ldr	r2, .L11+4
	sub	r1, r4, #9
	ldr	r2, [r2]
	add	r3, r5, r3
	lsl	r3, r3, r1
	str	r3, [r9]
	ldr	r3, [fp, #16]
	str	r2, [r9, #4]
	ldr	r2, .L11+8
	lsl	r0, r5, r4
	ldr	r4, [r2]
	str	r6, [r9, #8]
	mov	r1, r4
	str	r3, [r9, #12]
	bl	__aeabi_uidivmod
	cmp	r5, r8
	mov	r6, r1
	bcc	.L4
	b	.L3
.L10:
	ldr	r3, .L11+8
	mov	r1, r7
	ldr	r4, [r3]
	mov	r0, r4
	bl	__aeabi_uidiv
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_uidiv
	add	r5, r5, r0
	cmp	r8, r5
	mov	r6, #0
	bls	.L3
.L4:
	mov	r1, r7
	mov	r0, r5
	bl	__aeabi_uidiv
	mov	r2, r0
	ldr	r3, [fp, #12]
	mov	r1, r7
	mov	r0, r4
	ldr	r10, [r3, r2, lsl #2]
	str	r2, [sp, #8]
	bl	__aeabi_uidiv
	mov	r3, r0
	sub	r1, r8, r5
	mul	r1, r3, r1
	sub	r0, r4, r6
	bl	min
	mov	r4, r0
	mov	r3, r0
	ldr	r0, .L11+12
	str	r6, [sp]
	ldr	r2, [sp, #8]
	ldr	r1, .L11+16
	ldr	r0, [r0]
	bl	mlog
	mov	r3, r6
	mov	r2, r4
	mov	r1, r10
	mov	r0, r9
	bl	bio_add_page
	cmp	r0, r4
	mov	r6, r0
	beq	.L10
.L3:
	mov	r0, r9
	ldr	r3, [sp, #12]
	str	r5, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, .L11+20
	ldr	r1, .L11+24
	ldr	r0, [r3]
	bl	mlog
	ldr	r3, .L11+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	mov	r9, r0
	b	.L3
.L12:
	.align	2
.L11:
	.word	GFP_ATOMIC
	.word	o2hb_bio_end_io
	.word	PAGE_CACHE_SIZE
	.word	ML_HB_BIO
	.word	.LC1
	.word	ML_ERROR
	.word	.LC0
	.word	ENOMEM
	.size	o2hb_setup_one_bio, .-o2hb_setup_one_bio
	.comm	o2hb_bio_end_io,4,4
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	ML_HB_BIO,4,4
	.comm	ML_ERROR,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
