	.file	"extr_hw-txe.c_mei_txe_aliveness_wait.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"aliveness timed out = %ld aliveness = %d event = %d\n"
	.align 8
.LC1:
	.string	"aliveness settled after = %d msec aliveness = %d event = %d\n"
	.text
	.p2align 4
	.type	mei_txe_aliveness_wait, @function
mei_txe_aliveness_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	to_txe_hw@PLT
	mov	edi, DWORD PTR SEC_ALIVENESS_WAIT_TIMEOUT[rip]
	mov	rbp, rax
	call	msecs_to_jiffies@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	mei_txe_aliveness_get@PLT
	mov	QWORD PTR 0[rbp], rax
	cmp	rax, r13
	je	.L1
	lea	r14, 8[rbx]
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR MEI_PG_EVENT_RECEIVED[rip]
	mov	edi, DWORD PTR 8[rbp]
	xor	esi, esi
	cmp	DWORD PTR [rbx], eax
	mov	rdx, r12
	sete	sil
	call	wait_event_timeout@PLT
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	mutex_lock@PLT
	mov	rdi, rbx
	call	mei_txe_aliveness_get@PLT
	mov	rdx, QWORD PTR 8[rsp]
	cmp	rax, r13
	mov	QWORD PTR 0[rbp], rax
	mov	r14, rax
	je	.L3
	mov	eax, DWORD PTR ETIME[rip]
	mov	ebp, DWORD PTR [rbx]
	mov	r15d, eax
	neg	r15d
	test	eax, eax
	jne	.L12
.L4:
	mov	rdi, r12
	sub	rdi, rdx
	call	jiffies_to_msecs@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r8d, ebp
	mov	rcx, r14
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
.L5:
	mov	eax, DWORD PTR MEI_PG_EVENT_IDLE[rip]
	mov	DWORD PTR [rbx], eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	r8d, ebp
	mov	rcx, r14
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ebp, DWORD PTR [rbx]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mei_txe_aliveness_wait, .-mei_txe_aliveness_wait
	.comm	SEC_ALIVENESS_WAIT_TIMEOUT,4,4
	.comm	MEI_PG_EVENT_RECEIVED,4,4
	.comm	MEI_PG_EVENT_IDLE,4,4
	.comm	ETIME,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_hw-txe.c_mei_txe_aliveness_wait.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"aliveness timed out = %ld aliveness = %d event = %d"
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"aliveness settled after = %d msec aliveness = %d ev"
	.ascii	"ent = %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mei_txe_aliveness_wait, %function
mei_txe_aliveness_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r6, r1
	mov	r4, r0
	bl	to_txe_hw
	ldr	r3, .L13
	mov	r5, r0
	ldr	r0, [r3]
	bl	msecs_to_jiffies
	mov	r7, r0
	mov	r0, r4
	bl	mei_txe_aliveness_get
	cmp	r0, r6
	moveq	r6, #0
	str	r0, [r5]
	beq	.L1
	add	r9, r4, #8
	mov	r0, r9
	bl	mutex_unlock
	ldr	r3, .L13+4
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r2, r7
	sub	r1, r1, r3
	clz	r1, r1
	ldr	r0, [r5, #4]
	lsr	r1, r1, #5
	bl	wait_event_timeout
	mov	r8, r0
	mov	r0, r9
	bl	mutex_lock
	mov	r0, r4
	bl	mei_txe_aliveness_get
	cmp	r0, r6
	str	r0, [r5]
	beq	.L3
	ldr	r2, .L13+8
	ldr	r9, [r4, #4]
	ldr	r6, [r2]
	cmp	r6, #0
	rsb	r6, r6, #0
	bne	.L12
.L4:
	sub	r0, r7, r8
	bl	jiffies_to_msecs
	ldr	r1, [r4]
	mov	r2, r0
	ldr	r3, [r5]
	mov	r0, r9
	str	r1, [sp]
	ldr	r1, .L13+12
	bl	dev_dbg
.L5:
	ldr	r3, .L13+16
	ldr	r3, [r3]
	str	r3, [r4]
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	ldr	r1, [r4]
	mov	r3, r0
	str	r1, [sp]
	mov	r2, r8
	mov	r0, r9
	ldr	r1, .L13+20
	bl	dev_warn
	b	.L5
.L3:
	mov	r6, #0
	ldr	r9, [r4, #4]
	b	.L4
.L14:
	.align	2
.L13:
	.word	SEC_ALIVENESS_WAIT_TIMEOUT
	.word	MEI_PG_EVENT_RECEIVED
	.word	ETIME
	.word	.LC1
	.word	MEI_PG_EVENT_IDLE
	.word	.LC0
	.size	mei_txe_aliveness_wait, .-mei_txe_aliveness_wait
	.comm	SEC_ALIVENESS_WAIT_TIMEOUT,4,4
	.comm	MEI_PG_EVENT_RECEIVED,4,4
	.comm	MEI_PG_EVENT_IDLE,4,4
	.comm	ETIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
