	.file	"extr_ustorage_fs.c_ustorage_fs_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ustorage_fs_write, @function
ustorage_fs_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 16[rdi]
	cmp	QWORD PTR 24[r12], 0
	jne	.L14
	mov	rax, QWORD PTR 24[rdi]
	mov	rbx, rdi
	mov	esi, DWORD PTR SC_WRITE_6[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdi, 8[rax]
	cmp	DWORD PTR [rax], esi
	je	.L15
	call	get_be32@PLT
	mov	rdx, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR [rdx]
	test	DWORD PTR 4[rdx], -25
	jne	.L16
	mov	edx, DWORD PTR [rbx]
	sar	edx, 9
	add	edx, eax
	cmp	eax, edx
	jg	.L6
.L17:
	mov	ecx, DWORD PTR [r12]
	cmp	ecx, edx
	jl	.L6
	cmp	ecx, eax
	jle	.L6
	sal	eax, 9
	cdqe
	add	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rax]
	sal	eax, 16
	mov	ebp, eax
	call	get_be16@PLT
	mov	edx, DWORD PTR [rbx]
	or	eax, ebp
	sar	edx, 9
	add	edx, eax
	cmp	eax, edx
	jle	.L17
.L6:
	mov	eax, DWORD PTR SS_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE[rip]
	mov	DWORD PTR 16[r12], eax
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR SS_WRITE_PROTECTED[rip]
	mov	DWORD PTR 16[r12], eax
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR SS_INVALID_FIELD_IN_CDB[rip]
	mov	DWORD PTR 16[r12], eax
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ustorage_fs_write, .-ustorage_fs_write
	.comm	SS_WRITE_PROTECTED,4,4
	.comm	SS_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE,4,4
	.comm	SS_INVALID_FIELD_IN_CDB,4,4
	.comm	SC_WRITE_6,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_ustorage_fs.c_ustorage_fs_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ustorage_fs_write, %function
ustorage_fs_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0, #8]
	ldr	r6, [r7, #12]
	cmp	r6, #0
	bne	.L13
	ldr	r3, [r0, #12]
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r2, .L16
	mov	r0, r3
	ldr	r2, [r2]
	ldr	r1, [r0], #8
	cmp	r1, r2
	beq	.L14
	bl	get_be32
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	bics	r3, r3, #24
	bne	.L15
.L5:
	ldr	r3, [r4]
	add	r3, r0, r3, asr #9
	cmp	r0, r3
	bgt	.L6
	ldr	r2, [r7]
	cmp	r2, r3
	cmpge	r2, r0
	bgt	.L7
.L6:
	mov	r6, #1
	ldr	r3, .L16+4
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [r7, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r5, [r3, #4]
	bl	get_be16
	lsl	r5, r5, #16
	orr	r0, r5, r0
	b	.L5
.L13:
	mov	r6, #1
	ldr	r3, .L16+8
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [r7, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, [r7, #4]
	add	r0, r3, r0, lsl #9
	str	r0, [r4, #4]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r6, #1
	ldr	r3, .L16+12
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [r7, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	SC_WRITE_6
	.word	SS_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE
	.word	SS_WRITE_PROTECTED
	.word	SS_INVALID_FIELD_IN_CDB
	.size	ustorage_fs_write, .-ustorage_fs_write
	.comm	SS_WRITE_PROTECTED,4,4
	.comm	SS_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE,4,4
	.comm	SS_INVALID_FIELD_IN_CDB,4,4
	.comm	SC_WRITE_6,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
