	.file	"extr_csr.c_write_fcp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	write_fcp, @function
write_fcp:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	r9, 512
	ja	.L11
	mov	eax, r8d
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	sub	eax, DWORD PTR CSR_REGISTER_BASE[rip]
	mov	r8, r9
	cmp	eax, 128
	je	.L4
	mov	r9d, DWORD PTR RCODE_TYPE_ERROR[rip]
	cmp	eax, 129
	jne	.L1
	xor	edx, edx
	call	highlevel_fcp_request@PLT
.L6:
	mov	r9d, DWORD PTR RCODE_COMPLETE[rip]
.L1:
	mov	eax, r9d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, 1
	call	highlevel_fcp_request@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 8
	mov	r9d, DWORD PTR RCODE_TYPE_ERROR[rip]
	mov	eax, r9d
	ret
	.cfi_endproc
.LFE0:
	.size	write_fcp, .-write_fcp
	.comm	RCODE_TYPE_ERROR,4,4
	.comm	RCODE_COMPLETE,4,4
	.comm	CSR_REGISTER_BASE,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_csr.c_write_fcp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_fcp, %function
write_fcp:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	sub	sp, sp, #12
	ldr	ip, [sp, #20]
	cmp	ip, #512
	bhi	.L5
	ldr	r2, .L10
	ldr	lr, [sp, #16]
	ldr	r2, [r2]
	sub	r2, lr, r2
	cmp	r2, #128
	beq	.L4
	cmp	r2, #129
	beq	.L9
.L5:
	ldr	r3, .L10+4
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L9:
	mov	r2, #0
	str	ip, [sp]
	bl	highlevel_fcp_request
.L6:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L4:
	mov	r2, #1
	str	ip, [sp]
	bl	highlevel_fcp_request
	b	.L6
.L11:
	.align	2
.L10:
	.word	CSR_REGISTER_BASE
	.word	RCODE_TYPE_ERROR
	.word	RCODE_COMPLETE
	.size	write_fcp, .-write_fcp
	.comm	RCODE_TYPE_ERROR,4,4
	.comm	RCODE_COMPLETE,4,4
	.comm	CSR_REGISTER_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
