	.file	"extr_zynqmp-fpga.c_zynqmp_fpga_ops_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zynqmp_fpga_ops_write, @function
zynqmp_fpga_ops_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	zynqmp_pm_get_eemi_ops@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	IS_ERR_OR_NULL@PLT
	test	rax, rax
	jne	.L2
	cmp	QWORD PTR [rbx], 0
	je	.L2
	mov	r14, QWORD PTR 0[r13]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 4[rsp]
	mov	rsi, rbp
	mov	edi, DWORD PTR 4[r14]
	call	dma_alloc_coherent@PLT
	mov	r13, rax
	test	rax, rax
	je	.L12
	mov	rdx, rbp
	mov	rsi, r12
	mov	rdi, rax
	call	memcpy@PLT
	xor	eax, eax
	call	wmb@PLT
	mov	edx, DWORD PTR [r14]
	mov	edi, DWORD PTR 4[rsp]
	mov	rsi, rbp
	and	edx, DWORD PTR FPGA_MGR_PARTIAL_RECONFIG[rip]
	cmovne	edx, DWORD PTR XILINX_ZYNQMP_PM_FPGA_PARTIAL[rip]
	call	[QWORD PTR [rbx]]
	mov	edi, DWORD PTR 4[r14]
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdx, r13
	mov	rsi, rbp
	mov	r12d, eax
	call	dma_free_coherent@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zynqmp_fpga_ops_write, .-zynqmp_fpga_ops_write
	.comm	XILINX_ZYNQMP_PM_FPGA_PARTIAL,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FPGA_MGR_PARTIAL_RECONFIG,4,4
	.comm	ENXIO,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_zynqmp-fpga.c_zynqmp_fpga_ops_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zynqmp_fpga_ops_write, %function
zynqmp_fpga_ops_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L15
	sub	sp, sp, #8
	mov	r7, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	zynqmp_pm_get_eemi_ops
	mov	r5, r0
	bl	IS_ERR_OR_NULL
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	ldr	r6, [r6]
	ldr	r3, .L15+4
	mov	r2, sp
	mov	r1, r4
	ldr	r0, [r6, #4]
	ldr	r3, [r3]
	bl	dma_alloc_coherent
	subs	r8, r0, #0
	beq	.L13
	mov	r1, r7
	mov	r2, r4
	bl	memcpy
	bl	wmb
	ldr	r3, .L15+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	mov	r1, r4
	ands	r2, r2, r3
	ldrne	r3, .L15+12
	ldr	r0, [sp]
	ldrne	r2, [r3]
	ldr	r3, [r5]
	blx	r3
	mov	ip, r0
	mov	r1, r4
	mov	r2, r8
	ldr	r0, [r6, #4]
	ldr	r3, [sp]
	mov	r4, ip
	bl	dma_free_coherent
	b	.L1
.L2:
	ldr	r3, .L15+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, .L15+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	GFP_KERNEL
	.word	FPGA_MGR_PARTIAL_RECONFIG
	.word	XILINX_ZYNQMP_PM_FPGA_PARTIAL
	.word	ENXIO
	.word	ENOMEM
	.size	zynqmp_fpga_ops_write, .-zynqmp_fpga_ops_write
	.comm	XILINX_ZYNQMP_PM_FPGA_PARTIAL,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FPGA_MGR_PARTIAL_RECONFIG,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
