	.file	"extr_pasemi_nand.c_pasemi_write_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pasemi_write_buf, @function
pasemi_write_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	cmp	edx, 2048
	jle	.L4
	lea	r13d, -2049[rdx]
	shr	r13d, 11
	mov	ebp, r13d
	add	rbp, 1
	sal	rbp, 13
	add	rbp, rsi
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbx
	mov	edx, 2048
	add	rbx, 8192
	call	memcpy_toio@PLT
	cmp	rbx, rbp
	jne	.L3
	neg	r13d
	sal	r13d, 11
	lea	r14d, -2048[r14+r13]
.L2:
	mov	edi, DWORD PTR [r12]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	mov	rsi, rbp
	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
	jmp	memcpy_toio@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rbp, rsi
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pasemi_write_buf, .-pasemi_write_buf
	.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_pasemi_nand.c_pasemi_write_buf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pasemi_write_buf, %function
pasemi_write_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #2048
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r6, r0
	mov	r8, r1
	ble	.L2
	mov	r5, r2
	mov	r4, r1
.L3:
	mov	r1, r4
	mov	r2, #2048
	ldr	r0, [r6]
	sub	r5, r5, #2048
	bl	memcpy_toio
	cmp	r5, #2048
	add	r4, r4, #8192
	bgt	.L3
	sub	r3, r7, #2048
	sub	r3, r3, #1
	lsr	r3, r3, #11
	rsb	r2, r3, r3, lsl #21
	sub	r7, r7, #2048
	add	r3, r3, #1
	add	r7, r7, r2, lsl #11
	add	r8, r8, r3, lsl #13
.L2:
	mov	r2, r7
	mov	r1, r8
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, lr}
	b	memcpy_toio
	.size	pasemi_write_buf, .-pasemi_write_buf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
