	.file	"extr_intel_guc.c_intel_guc_init_send_regs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	intel_guc_init_send_regs
	.type	intel_guc_init_send_regs, @function
intel_guc_init_send_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	guc_to_gt@PLT
	mov	edi, DWORD PTR 4[rax]
	mov	r13, rax
	call	INTEL_GEN@PLT
	xor	edi, edi
	cmp	eax, 10
	jle	.L2
	call	GEN11_SOFT_SCRATCH@PLT
	mov	edi, eax
	call	i915_mmio_reg_offset@PLT
	mov	QWORD PTR 8[r14], rax
	mov	eax, DWORD PTR GEN11_SOFT_SCRATCH_COUNT[rip]
	mov	DWORD PTR [r14], eax
.L5:
	xor	ebx, ebx
	xor	ebp, ebp
	test	eax, eax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, ebx
	mov	rdi, r14
	mov	r12d, DWORD PTR FW_REG_READ[rip]
	add	ebx, 1
	or	r12d, DWORD PTR FW_REG_WRITE[rip]
	call	guc_send_reg@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	edx, r12d
	mov	esi, eax
	call	intel_uncore_forcewake_for_reg@PLT
	or	ebp, eax
	cmp	DWORD PTR [r14], ebx
	ja	.L3
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	DWORD PTR 4[r14], ebp
	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
.L2:
	.cfi_restore_state
	call	SOFT_SCRATCH@PLT
	mov	edi, eax
	call	i915_mmio_reg_offset@PLT
	xor	edi, edi
	mov	QWORD PTR 8[r14], rax
	mov	rax, QWORD PTR GUC_MAX_MMIO_MSG_LEN[rip]
	cmp	rax, QWORD PTR SOFT_SCRATCH_COUNT[rip]
	mov	DWORD PTR [r14], eax
	setg	dil
	call	BUILD_BUG_ON@PLT
	mov	eax, DWORD PTR [r14]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	intel_guc_init_send_regs, .-intel_guc_init_send_regs
	.comm	SOFT_SCRATCH_COUNT,8,8
	.comm	GUC_MAX_MMIO_MSG_LEN,8,8
	.comm	GEN11_SOFT_SCRATCH_COUNT,4,4
	.comm	FW_REG_WRITE,4,4
	.comm	FW_REG_READ,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_guc.c_intel_guc_init_send_regs.c"
	.text
	.align	2
	.global	intel_guc_init_send_regs
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_guc_init_send_regs, %function
intel_guc_init_send_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	bl	guc_to_gt
	mov	r7, r0
	ldr	r0, [r0, #4]
	bl	INTEL_GEN
	cmp	r0, #10
	mov	r0, #0
	ble	.L2
	bl	GEN11_SOFT_SCRATCH
	bl	i915_mmio_reg_offset
	ldr	r3, .L10
	str	r0, [r5, #8]
	ldr	r6, [r3]
	str	r6, [r5]
.L5:
	cmp	r6, #0
	beq	.L4
	mov	r4, #0
	mov	r6, r4
	ldr	r9, .L10+4
	ldr	r8, .L10+8
.L3:
	mov	r1, r4
	mov	r0, r5
	ldr	r10, [r7]
	bl	guc_send_reg
	ldr	r3, [r8]
	ldr	r2, [r9]
	mov	r1, r0
	orr	r2, r2, r3
	mov	r0, r10
	bl	intel_uncore_forcewake_for_reg
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	orr	r6, r6, r0
	bhi	.L3
.L4:
	str	r6, [r5, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	bl	SOFT_SCRATCH
	bl	i915_mmio_reg_offset
	ldr	r3, .L10+12
	ldr	r2, .L10+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r0, [r5, #8]
	cmp	r3, r2
	movle	r0, #0
	movgt	r0, #1
	str	r3, [r5]
	bl	BUILD_BUG_ON
	ldr	r6, [r5]
	b	.L5
.L11:
	.align	2
.L10:
	.word	GEN11_SOFT_SCRATCH_COUNT
	.word	FW_REG_READ
	.word	FW_REG_WRITE
	.word	GUC_MAX_MMIO_MSG_LEN
	.word	SOFT_SCRATCH_COUNT
	.size	intel_guc_init_send_regs, .-intel_guc_init_send_regs
	.comm	SOFT_SCRATCH_COUNT,4,4
	.comm	GUC_MAX_MMIO_MSG_LEN,4,4
	.comm	GEN11_SOFT_SCRATCH_COUNT,4,4
	.comm	FW_REG_WRITE,4,4
	.comm	FW_REG_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
