	.file	"extr_io.c_ubifs_wbuf_write_nolock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%d bytes (%s) to jhead %s wbuf at LEB %d:%d"
	.align 8
.LC1:
	.string	"flush jhead %s wbuf to LEB %d:%d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"write %d bytes to LEB %d:%d"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"cannot write %d bytes to LEB %d:%d, error %d"
	.text
	.p2align 4
	.globl	ubifs_wbuf_write_nolock
	.type	ubifs_wbuf_write_nolock, @function
ubifs_wbuf_write_nolock:
.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
	mov	r14, rsi
	mov	esi, 8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 72[rdi]
	mov	edi, edx
	call	ALIGN@PLT
	mov	r8, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 60[rbp]
	mov	r9d, DWORD PTR 12[rbp]
	add	r9d, DWORD PTR 8[rbp]
	mov	ebx, eax
	mov	DWORD PTR 8[rsp], r9d
	mov	QWORD PTR [rsp], r8
	call	dbg_jhead@PLT
	mov	edi, DWORD PTR [r14]
	mov	r15d, eax
	call	dbg_ntype@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	ecx, r15d
	mov	esi, r13d
	mov	r8, QWORD PTR [rsp]
	movsx	rdx, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	dbg_io@PLT
	xor	edi, edi
	test	r13d, r13d
	jle	.L2
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	js	.L2
	xor	edi, edi
	cmp	rax, QWORD PTR [r12]
	setl	dil
.L2:
	call	ubifs_assert@PLT
	mov	eax, DWORD PTR 8[rbp]
	xor	edi, edi
	test	eax, eax
	js	.L3
	cdq
	xor	edi, edi
	idiv	DWORD PTR 8[r12]
	test	edx, edx
	sete	dil
.L3:
	call	ubifs_assert@PLT
	mov	eax, DWORD PTR 8[rbp]
	xor	edi, edi
	test	al, 7
	jne	.L4
	xor	edi, edi
	cmp	eax, DWORD PTR 12[r12]
	setle	dil
.L4:
	call	ubifs_assert@PLT
	mov	eax, DWORD PTR 16[rbp]
	xor	edi, edi
	test	eax, eax
	jle	.L5
	xor	edi, edi
	cmp	eax, DWORD PTR 8[r12]
	setle	dil
.L5:
	call	ubifs_assert@PLT
	lea	rdi, 64[rbp]
	call	mutex_is_locked@PLT
	mov	edi, eax
	call	ubifs_assert@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	eax, DWORD PTR 12[r12]
	sub	eax, ecx
	sub	eax, DWORD PTR 12[rbp]
	cmp	eax, ebx
	jge	.L6
	mov	r15d, DWORD PTR ENOSPC[rip]
	neg	r15d
.L7:
	mov	rdx, QWORD PTR 0[rbp]
	mov	r8d, r15d
	mov	esi, r13d
	lea	rdi, .LC3[rip]
	call	ubifs_err@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	dbg_dump_node@PLT
	xor	eax, eax
	call	dbg_dump_stack@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	call	dbg_dump_leb@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	cancel_wbuf_timer_nolock@PLT
	mov	r15d, DWORD PTR EROFS[rip]
	neg	r15d
	cmp	QWORD PTR 24[r12], 0
	jne	.L1
	cmp	DWORD PTR 16[rbp], ebx
	jl	.L10
	movsx	rdi, DWORD PTR 12[rbp]
	mov	edx, r13d
	add	rdi, QWORD PTR 24[rbp]
	mov	rsi, r14
	call	memcpy@PLT
	cmp	DWORD PTR 16[rbp], ebx
	jne	.L11
	mov	edi, DWORD PTR 60[rbp]
	mov	r15, QWORD PTR 0[rbp]
	mov	ebx, DWORD PTR 8[rbp]
	call	dbg_jhead@PLT
	mov	rdx, r15
	lea	rdi, .LC1[rip]
	mov	esi, eax
	mov	ecx, ebx
	xor	eax, eax
	call	dbg_io@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 20[r12]
	mov	r9d, DWORD PTR 56[rbp]
	mov	r8d, DWORD PTR 8[r12]
	mov	rsi, QWORD PTR 0[rbp]
	call	ubi_leb_write@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L39
.L12:
	mov	ecx, DWORD PTR 8[rbp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 60[rbp]
	mov	r15, QWORD PTR 0[rbp]
	mov	DWORD PTR [rsp], ecx
	call	dbg_jhead@PLT
	mov	ecx, DWORD PTR [rsp]
	mov	rdx, r15
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	dbg_io@PLT
	mov	edx, DWORD PTR 16[rbp]
	movsx	rdi, DWORD PTR 12[rbp]
	mov	rsi, r14
	add	rdi, QWORD PTR 24[rbp]
	call	memcpy@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 20[r12]
	mov	r9d, DWORD PTR 56[rbp]
	mov	r8d, DWORD PTR 8[r12]
	mov	rsi, QWORD PTR 0[rbp]
	call	ubi_leb_write@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L12
	mov	r10d, DWORD PTR 16[rbp]
	mov	ecx, DWORD PTR 16[r12]
	mov	r15d, DWORD PTR 8[r12]
	add	r15d, DWORD PTR 8[rbp]
	sub	ebx, r10d
	mov	DWORD PTR [rsp], r15d
	sub	r13d, r10d
	mov	r11d, ebx
	sar	r11d, cl
	test	r11d, r11d
	je	.L15
	sal	r11d, cl
	mov	rdx, QWORD PTR 0[rbp]
	mov	ecx, r15d
	xor	eax, eax
	mov	esi, r11d
	lea	rdi, .LC2[rip]
	mov	DWORD PTR 12[rsp], r10d
	mov	DWORD PTR 8[rsp], r11d
	call	dbg_io@PLT
	mov	r9d, DWORD PTR 56[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	ecx, r15d
	mov	r11d, DWORD PTR 8[rsp]
	movsx	rdx, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR 20[r12]
	add	rdx, r14
	mov	r8d, r11d
	call	ubi_leb_write@PLT
	mov	r11d, DWORD PTR 8[rsp]
	mov	r10d, DWORD PTR 12[rsp]
	test	eax, eax
	mov	r15d, eax
	jne	.L12
	add	DWORD PTR [rsp], r11d
	sub	ebx, r11d
	sub	r13d, r11d
	add	r10d, r11d
.L15:
	lea	r15, 40[rbp]
	mov	DWORD PTR 8[rsp], r10d
	mov	rdi, r15
	call	spin_lock@PLT
	test	ebx, ebx
	mov	r10d, DWORD PTR 8[rsp]
	jne	.L40
.L17:
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR 12[rbp], ebx
	mov	rdi, r15
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR 8[r12]
	mov	QWORD PTR 48[rbp], 0
	sub	eax, ebx
	mov	DWORD PTR 16[rbp], eax
	call	spin_unlock@PLT
.L13:
	mov	rax, QWORD PTR 32[rbp]
	mov	r15d, DWORD PTR 12[rbp]
	test	rax, rax
	je	.L18
	mov	edx, DWORD PTR 12[r12]
	sub	edx, DWORD PTR 8[rbp]
	xor	ecx, ecx
	mov	rdi, r12
	sub	edx, r15d
	mov	rsi, QWORD PTR 0[rbp]
	call	rax
	mov	r15d, eax
	test	eax, eax
	jne	.L12
	mov	r15d, DWORD PTR 12[rbp]
.L18:
	test	r15d, r15d
	je	.L1
	mov	rdi, rbp
	xor	r15d, r15d
	call	new_wbuf_timer_nolock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	r15, 40[rbp]
	mov	rdi, r15
	call	spin_lock@PLT
	sub	DWORD PTR 16[rbp], ebx
	mov	rdi, r15
	add	DWORD PTR 12[rbp], ebx
	call	spin_unlock@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L40:
	movsx	rsi, r10d
	mov	rdi, QWORD PTR 24[rbp]
	mov	edx, r13d
	add	rsi, r14
	call	memcpy@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L39:
	lea	r15, 40[rbp]
	mov	rdi, r15
	call	spin_lock@PLT
	mov	eax, DWORD PTR 8[r12]
	add	DWORD PTR 8[rbp], eax
	mov	rdi, r15
	mov	DWORD PTR 12[rbp], 0
	mov	DWORD PTR 16[rbp], eax
	mov	QWORD PTR 48[rbp], 0
	call	spin_unlock@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	ubifs_wbuf_write_nolock, .-ubifs_wbuf_write_nolock
	.comm	EROFS,4,4
	.comm	ENOSPC,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_io.c_ubifs_wbuf_write_nolock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d bytes (%s) to jhead %s wbuf at LEB %d:%d\000"
	.global	__aeabi_idivmod
	.align	2
.LC1:
	.ascii	"flush jhead %s wbuf to LEB %d:%d\000"
	.align	2
.LC2:
	.ascii	"write %d bytes to LEB %d:%d\000"
	.align	2
.LC3:
	.ascii	"cannot write %d bytes to LEB %d:%d, error %d\000"
	.text
	.align	2
	.global	ubifs_wbuf_write_nolock
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubifs_wbuf_write_nolock, %function
ubifs_wbuf_write_nolock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #20
	mov	r0, r2
	mov	r9, r1
	mov	r1, #8
	mov	r5, r2
	ldr	r6, [r4, #44]
	bl	ALIGN
	mov	r8, r0
	ldr	r0, [r9]
	bl	dbg_ntype
	mov	r7, r0
	ldr	r0, [r4, #36]
	bl	dbg_jhead
	ldmib	r4, {r1, r2}
	ldr	ip, [r4]
	add	r1, r1, r2
	mov	r3, r0
	str	r1, [sp, #4]
	mov	r2, r7
	mov	r1, r5
	ldr	r0, .L42
	str	ip, [sp]
	bl	dbg_io
	cmp	r5, #0
	ble	.L21
	ldr	r0, [r4]
	cmp	r0, #0
	blt	.L21
	ldr	r3, [r6]
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	b	.L2
.L21:
	mov	r0, #0
.L2:
	bl	ubifs_assert
	ldr	r0, [r4, #4]
	cmp	r0, #0
	movlt	r0, #0
	blt	.L3
	ldr	r1, [r6, #4]
	bl	__aeabi_idivmod
	clz	r0, r1
	lsr	r0, r0, #5
.L3:
	bl	ubifs_assert
	ldr	r0, [r4, #4]
	tst	r0, #7
	movne	r0, #0
	bne	.L4
	ldr	r3, [r6, #8]
	cmp	r0, r3
	movgt	r0, #0
	movle	r0, #1
.L4:
	bl	ubifs_assert
	ldr	r0, [r4, #12]
	cmp	r0, #0
	movle	r0, #0
	ble	.L5
	ldr	r3, [r6, #4]
	cmp	r0, r3
	movgt	r0, #0
	movle	r0, #1
.L5:
	bl	ubifs_assert
	add	r0, r4, #40
	bl	mutex_is_locked
	bl	ubifs_assert
	ldr	r3, [r4, #4]
	ldr	r2, [r6, #8]
	ldr	r1, [r4, #8]
	sub	r2, r2, r3
	sub	r2, r2, r1
	cmp	r2, r8
	bge	.L6
	ldr	r2, .L42+4
	ldr	r0, [r2]
	rsb	r7, r0, #0
.L7:
	str	r7, [sp]
	ldr	r2, [r4]
	mov	r1, r5
	ldr	r0, .L42+8
	bl	ubifs_err
	mov	r1, r9
	mov	r0, r6
	bl	dbg_dump_node
	bl	dbg_dump_stack
	mov	r0, r6
	ldr	r1, [r4]
	bl	dbg_dump_leb
.L1:
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r4
	bl	cancel_wbuf_timer_nolock
	ldr	r3, [r6, #20]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [r4, #12]
	cmp	r3, r8
	blt	.L10
	ldr	r3, [r4, #8]
	ldr	r0, [r4, #16]
	mov	r2, r5
	add	r0, r0, r3
	mov	r1, r9
	bl	memcpy
	ldr	r3, [r4, #12]
	cmp	r3, r8
	bne	.L11
	ldr	r0, [r4, #36]
	bl	dbg_jhead
	ldm	r4, {r2, r3}
	mov	r1, r0
	ldr	r0, .L42+12
	bl	dbg_io
	ldr	r3, [r4, #32]
	ldr	r0, [r6, #16]
	str	r3, [sp, #4]
	ldr	r3, [r6, #4]
	str	r3, [sp]
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #16]
	ldr	r1, [r4]
	bl	ubi_leb_write
	subs	r7, r0, #0
	beq	.L40
.L12:
	ldr	r3, [r4, #4]
	b	.L7
.L10:
	ldr	r0, [r4, #36]
	bl	dbg_jhead
	ldm	r4, {r2, r3}
	mov	r1, r0
	ldr	r0, .L42+12
	bl	dbg_io
	ldr	r3, [r4, #8]
	ldr	r0, [r4, #16]
	mov	r1, r9
	ldr	r2, [r4, #12]
	add	r0, r0, r3
	bl	memcpy
	ldr	r3, [r4, #32]
	ldr	r0, [r6, #16]
	str	r3, [sp, #4]
	ldr	r3, [r6, #4]
	str	r3, [sp]
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #16]
	ldr	r1, [r4]
	bl	ubi_leb_write
	subs	r7, r0, #0
	bne	.L12
	ldr	r10, [r4, #12]
	ldr	r2, [r6, #12]
	ldr	r1, [r4, #4]
	ldr	r3, [r6, #4]
	sub	r8, r8, r10
	asrs	fp, r8, r2
	sub	r5, r5, r10
	add	r3, r1, r3
	beq	.L15
	lsl	fp, fp, r2
	mov	r1, fp
	ldr	r2, [r4]
	ldr	r0, .L42+16
	str	r3, [sp, #12]
	bl	dbg_io
	ldr	r2, [r4, #32]
	ldr	r0, [r6, #16]
	str	r2, [sp, #4]
	str	fp, [sp]
	ldr	r3, [sp, #12]
	ldr	r1, [r4]
	add	r2, r9, r10
	bl	ubi_leb_write
	subs	r7, r0, #0
	ldr	r3, [sp, #12]
	bne	.L12
	add	r3, r3, fp
	sub	r8, r8, fp
	sub	r5, r5, fp
	add	r10, r10, fp
.L15:
	add	r7, r4, #24
	mov	r0, r7
	str	r3, [sp, #12]
	bl	spin_lock
	cmp	r8, #0
	ldr	r3, [sp, #12]
	bne	.L41
.L17:
	mov	r1, #0
	ldr	r2, [r6, #4]
	str	r3, [r4, #4]
	sub	r3, r2, r8
	mov	r0, r7
	str	r8, [r4, #8]
	str	r3, [r4, #12]
	str	r1, [r4, #28]
	bl	spin_unlock
.L13:
	ldr	r8, [r4, #20]
	ldr	r7, [r4, #8]
	cmp	r8, #0
	beq	.L18
	ldr	r1, [r4, #4]
	ldr	r2, [r6, #8]
	mov	r3, #0
	sub	r2, r2, r1
	sub	r2, r2, r7
	mov	r0, r6
	ldr	r1, [r4]
	blx	r8
	subs	r7, r0, #0
	ldreq	r7, [r4, #8]
	bne	.L12
.L18:
	cmp	r7, #0
	beq	.L1
	mov	r0, r4
	bl	new_wbuf_timer_nolock
	mov	r7, #0
	b	.L1
.L39:
	ldr	r3, .L42+20
	ldr	r0, [r3]
	rsb	r7, r0, #0
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	add	r7, r4, #24
	mov	r0, r7
	bl	spin_lock
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	sub	r2, r2, r8
	add	r8, r3, r8
	mov	r0, r7
	str	r2, [r4, #12]
	str	r8, [r4, #8]
	bl	spin_unlock
	b	.L13
.L41:
	mov	r2, r5
	ldr	r0, [r4, #16]
	add	r1, r9, r10
	bl	memcpy
	ldr	r3, [sp, #12]
	b	.L17
.L40:
	add	r8, r4, #24
	mov	r0, r8
	bl	spin_lock
	ldr	r2, [r6, #4]
	ldr	r3, [r4, #4]
	mov	r0, r8
	add	r3, r3, r2
	str	r2, [r4, #12]
	str	r7, [r4, #8]
	str	r7, [r4, #28]
	str	r3, [r4, #4]
	bl	spin_unlock
	b	.L13
.L43:
	.align	2
.L42:
	.word	.LC0
	.word	ENOSPC
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	EROFS
	.size	ubifs_wbuf_write_nolock, .-ubifs_wbuf_write_nolock
	.comm	EROFS,4,4
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
