	.file	"extr_intel_uncore.c_fw_domain_wait_ack_with_fallback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"clear"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s had to use fallback to %s ack, 0x%x (passes %u)\n"
	.section	.rodata.str1.1
.LC2:
	.string	"set"
	.text
	.p2align 4
	.type	fw_domain_wait_ack_with_fallback, @function
fw_domain_wait_ack_with_fallback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, 0
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13d, DWORD PTR FORCEWAKE_KERNEL[rip]
	cmp	DWORD PTR ACK_SET[rip], esi
	cmove	r12d, r13d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR FORCEWAKE_KERNEL_FALLBACK[rip]
	mov	rdi, rbx
	call	wait_ack_clear@PLT
	mov	esi, DWORD PTR FORCEWAKE_KERNEL_FALLBACK[rip]
	mov	rdi, rbx
	call	fw_set@PLT
	lea	edi, [r15+r15*4]
	add	edi, edi
	call	udelay@PLT
	mov	esi, DWORD PTR FORCEWAKE_KERNEL_FALLBACK[rip]
	mov	rdi, rbx
	call	wait_ack_set@PLT
	mov	rdi, rbx
	call	fw_ack@PLT
	mov	esi, DWORD PTR FORCEWAKE_KERNEL_FALLBACK[rip]
	mov	rdi, rbx
	and	eax, r13d
	mov	ebp, eax
	call	fw_clear@PLT
	cmp	ebp, r12d
	je	.L3
	add	r15d, 1
	cmp	r15d, 11
	jne	.L4
	mov	rdi, rbx
	call	fw_ack@PLT
	cmp	DWORD PTR ACK_SET[rip], r14d
	mov	r12d, eax
	je	.L19
	mov	edi, DWORD PTR [rbx]
	call	intel_uncore_forcewake_domain_to_str@PLT
	mov	r8d, 11
	mov	ecx, r12d
	lea	rdx, .LC0[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	DRM_DEBUG_DRIVER@PLT
.L6:
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	intel_uncore_forcewake_domain_to_str@PLT
	mov	r8d, 11
	mov	ecx, r12d
	lea	rdx, .LC2[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	DRM_DEBUG_DRIVER@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbx
	call	fw_ack@PLT
	cmp	DWORD PTR ACK_SET[rip], r14d
	mov	r12d, eax
	je	.L20
	mov	edi, DWORD PTR [rbx]
	call	intel_uncore_forcewake_domain_to_str@PLT
	mov	r8d, r15d
	mov	ecx, r12d
	lea	rdx, .LC0[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	DRM_DEBUG_DRIVER@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L20:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	intel_uncore_forcewake_domain_to_str@PLT
	mov	r8d, r15d
	mov	ecx, r12d
	lea	rdx, .LC2[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	DRM_DEBUG_DRIVER@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	fw_domain_wait_ack_with_fallback, .-fw_domain_wait_ack_with_fallback
	.comm	FORCEWAKE_KERNEL_FALLBACK,4,4
	.comm	FORCEWAKE_KERNEL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ACK_SET,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_uncore.c_fw_domain_wait_ack_with_fallback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"%s had to use fallback to %s ack, 0x%x (passes %u)\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"set\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fw_domain_wait_ack_with_fallback, %function
fw_domain_wait_ack_with_fallback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	ldr	r2, .L21+4
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, [r3]
	ldr	r8, [r2]
	cmp	fp, r1
	mov	r10, r1
	mov	r4, r0
	moveq	r9, r8
	movne	r9, #0
	mov	r5, #1
	ldr	r6, .L21+8
	sub	sp, sp, #12
.L4:
	ldr	r1, [r6]
	mov	r0, r4
	bl	wait_ack_clear
	ldr	r1, [r6]
	mov	r0, r4
	bl	fw_set
	add	r0, r5, r5, lsl #2
	lsl	r0, r0, #1
	bl	udelay
	ldr	r1, [r6]
	mov	r0, r4
	bl	wait_ack_set
	mov	r0, r4
	bl	fw_ack
	ldr	r1, [r6]
	and	r7, r0, r8
	mov	r0, r4
	bl	fw_clear
	cmp	r7, r9
	beq	.L3
	add	r5, r5, #1
	cmp	r5, #11
	bne	.L4
	ldr	r0, [r4]
	bl	intel_uncore_forcewake_domain_to_str
	cmp	fp, r10
	mov	r6, r0
	beq	.L19
	mov	r0, r4
	bl	fw_ack
	mov	r1, r6
	mov	r3, r0
	ldr	r2, .L21+12
	ldr	r0, .L21+16
	str	r5, [sp]
	bl	DRM_DEBUG_DRIVER
.L6:
	ldr	r3, .L21+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r0, r4
	bl	fw_ack
	mov	r1, r6
	mov	r3, r0
	ldr	r2, .L21+24
	str	r5, [sp]
	ldr	r0, .L21+16
	bl	DRM_DEBUG_DRIVER
	b	.L6
.L3:
	ldr	r0, [r4]
	bl	intel_uncore_forcewake_domain_to_str
	cmp	fp, r10
	mov	r6, r0
	beq	.L20
	mov	r0, r4
	bl	fw_ack
	mov	r1, r6
	mov	r3, r0
	ldr	r2, .L21+12
	str	r5, [sp]
	ldr	r0, .L21+16
	bl	DRM_DEBUG_DRIVER
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r0, r4
	bl	fw_ack
	mov	r1, r6
	mov	r3, r0
	ldr	r2, .L21+24
	str	r5, [sp]
	ldr	r0, .L21+16
	bl	DRM_DEBUG_DRIVER
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	ACK_SET
	.word	FORCEWAKE_KERNEL
	.word	FORCEWAKE_KERNEL_FALLBACK
	.word	.LC0
	.word	.LC1
	.word	ETIMEDOUT
	.word	.LC2
	.size	fw_domain_wait_ack_with_fallback, .-fw_domain_wait_ack_with_fallback
	.comm	FORCEWAKE_KERNEL_FALLBACK,4,4
	.comm	FORCEWAKE_KERNEL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ACK_SET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
