	.file	"extr_intel_uc_fw.c_uc_fw_xfer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DMA for %s fw failed, DMA_CTRL=%u\n"
	.text
	.p2align 4
	.type	uc_fw_xfer, @function
uc_fw_xfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 16[rsi]
	mov	esi, DWORD PTR ETIMEDOUT[rip]
	mov	rdi, QWORD PTR [rbx]
	neg	esi
	call	i915_inject_load_error@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR FORCEWAKE_ALL[rip]
	mov	rdi, rbp
	call	intel_uncore_forcewake_get@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r13
	call	uc_fw_ggtt_offset@PLT
	mov	edi, eax
	mov	r12d, eax
	call	upper_32_bits@PLT
	xor	ax, ax
	mov	edi, eax
	call	GEM_BUG_ON@PLT
	mov	edi, r12d
	call	lower_32_bits@PLT
	mov	esi, DWORD PTR DMA_ADDR_0_LOW[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	intel_uncore_write_fw@PLT
	mov	edi, r12d
	call	upper_32_bits@PLT
	mov	esi, DWORD PTR DMA_ADDR_0_HIGH[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	intel_uncore_write_fw@PLT
	mov	esi, DWORD PTR DMA_ADDR_1_LOW[rip]
	mov	edx, r15d
	mov	rdi, rbp
	call	intel_uncore_write_fw@PLT
	mov	edx, DWORD PTR DMA_ADDRESS_SPACE_WOPCM[rip]
	mov	esi, DWORD PTR DMA_ADDR_1_HIGH[rip]
	mov	rdi, rbp
	call	intel_uncore_write_fw@PLT
	mov	eax, DWORD PTR 0[r13]
	mov	esi, DWORD PTR DMA_COPY_SIZE[rip]
	mov	rdi, rbp
	lea	edx, 4[rax]
	call	intel_uncore_write_fw@PLT
	mov	edi, DWORD PTR START_DMA[rip]
	or	edi, r14d
	call	_MASKED_BIT_ENABLE@PLT
	mov	esi, DWORD PTR DMA_CTRL[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	intel_uncore_write_fw@PLT
	mov	edx, DWORD PTR START_DMA[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	esi, DWORD PTR DMA_CTRL[rip]
	mov	r8d, 100
	call	intel_wait_for_register_fw@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
.L3:
	mov	edi, r14d
	call	_MASKED_BIT_DISABLE@PLT
	mov	esi, DWORD PTR DMA_CTRL[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	intel_uncore_write_fw@PLT
	mov	esi, DWORD PTR FORCEWAKE_ALL[rip]
	mov	rdi, rbp
	call	intel_uncore_forcewake_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR DMA_CTRL[rip]
	mov	rdi, rbp
	call	intel_uncore_read_fw@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	r15d, eax
	call	intel_uc_fw_type_repr@PLT
	mov	ecx, r15d
	lea	rsi, .LC0[rip]
	mov	edx, eax
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	uc_fw_xfer, .-uc_fw_xfer
	.comm	START_DMA,4,4
	.comm	FORCEWAKE_ALL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	DMA_CTRL,4,4
	.comm	DMA_COPY_SIZE,4,4
	.comm	DMA_ADDR_1_LOW,4,4
	.comm	DMA_ADDR_1_HIGH,4,4
	.comm	DMA_ADDR_0_LOW,4,4
	.comm	DMA_ADDR_0_HIGH,4,4
	.comm	DMA_ADDRESS_SPACE_WOPCM,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_intel_uc_fw.c_uc_fw_xfer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMA for %s fw failed, DMA_CTRL=%u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uc_fw_xfer, %function
uc_fw_xfer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	ldr	r1, .L11
	mov	r7, r0
	ldr	r1, [r1]
	ldr	r0, [r6]
	sub	sp, sp, #20
	rsb	r1, r1, #0
	mov	r9, r2
	mov	r8, r3
	ldr	r5, [r6, #8]
	bl	i915_inject_load_error
	subs	r4, r0, #0
	beq	.L9
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	fp, .L11+4
	mov	r0, r5
	ldr	r1, [fp]
	bl	intel_uncore_forcewake_get
	ldr	r1, [r6, #4]
	mov	r0, r7
	bl	uc_fw_ggtt_offset
	mov	r10, r0
	bl	upper_32_bits
	lsr	r0, r0, #16
	lsl	r0, r0, #16
	bl	GEM_BUG_ON
	ldr	r3, .L11+8
	mov	r0, r10
	ldr	r1, [r3]
	str	r1, [sp, #12]
	bl	lower_32_bits
	ldr	r1, [sp, #12]
	mov	r2, r0
	mov	r0, r5
	bl	intel_uncore_write_fw
	ldr	r3, .L11+12
	mov	r0, r10
	ldr	r10, [r3]
	bl	upper_32_bits
	mov	r1, r10
	mov	r2, r0
	mov	r0, r5
	bl	intel_uncore_write_fw
	ldr	r3, .L11+16
	mov	r2, r9
	ldr	r1, [r3]
	mov	r0, r5
	bl	intel_uncore_write_fw
	ldr	r3, .L11+20
	ldr	r2, .L11+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r5
	bl	intel_uncore_write_fw
	ldr	r3, .L11+28
	ldr	r2, [r7]
	ldr	r10, .L11+32
	ldr	r1, [r3]
	add	r2, r2, #4
	ldr	r9, .L11+36
	mov	r0, r5
	bl	intel_uncore_write_fw
	ldr	r0, [r10]
	ldr	r1, [r9]
	orr	r0, r8, r0
	str	r1, [sp, #12]
	bl	_MASKED_BIT_ENABLE
	ldr	r1, [sp, #12]
	mov	r2, r0
	mov	r0, r5
	bl	intel_uncore_write_fw
	mov	r0, #100
	mov	r3, r4
	ldr	r2, [r10]
	ldr	r1, [r9]
	str	r0, [sp]
	mov	r0, r5
	bl	intel_wait_for_register_fw
	subs	r4, r0, #0
	bne	.L10
.L3:
	mov	r0, r8
	ldr	r6, [r9]
	bl	_MASKED_BIT_DISABLE
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	intel_uncore_write_fw
	mov	r0, r5
	ldr	r1, [fp]
	bl	intel_uncore_forcewake_put
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, [r6]
	ldr	r0, [r7, #4]
	ldr	r7, [r3]
	bl	intel_uc_fw_type_repr
	ldr	r1, [r9]
	mov	r6, r0
	mov	r0, r5
	bl	intel_uncore_read_fw
	mov	r2, r6
	mov	r3, r0
	ldr	r1, .L11+40
	mov	r0, r7
	bl	dev_err
	b	.L3
.L12:
	.align	2
.L11:
	.word	ETIMEDOUT
	.word	FORCEWAKE_ALL
	.word	DMA_ADDR_0_LOW
	.word	DMA_ADDR_0_HIGH
	.word	DMA_ADDR_1_LOW
	.word	DMA_ADDR_1_HIGH
	.word	DMA_ADDRESS_SPACE_WOPCM
	.word	DMA_COPY_SIZE
	.word	START_DMA
	.word	DMA_CTRL
	.word	.LC0
	.size	uc_fw_xfer, .-uc_fw_xfer
	.comm	START_DMA,4,4
	.comm	FORCEWAKE_ALL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	DMA_CTRL,4,4
	.comm	DMA_COPY_SIZE,4,4
	.comm	DMA_ADDR_1_LOW,4,4
	.comm	DMA_ADDR_1_HIGH,4,4
	.comm	DMA_ADDR_0_LOW,4,4
	.comm	DMA_ADDR_0_HIGH,4,4
	.comm	DMA_ADDRESS_SPACE_WOPCM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
