	.file	"extr_tpm_tis_core.c_wait_for_tpm_stat.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wait_for_tpm_stat, @function
wait_for_tpm_stat:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	DWORD PTR 20[rsp], 0
	call	[QWORD PTR [rax]]
	and	eax, ebp
	cmp	eax, ebp
	je	.L7
	mov	r12, QWORD PTR jiffies[rip]
	mov	eax, DWORD PTR [rbx]
	add	r12, r13
	test	DWORD PTR TPM_CHIP_FLAG_IRQ[rip], eax
	je	.L4
	lea	r15, 20[rsp]
	test	r13, r13
	jg	.L5
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	add	rax, QWORD PTR ERESTARTSYS[rip]
	jne	.L8
	mov	edi, DWORD PTR current[rip]
	call	freezing@PLT
	test	rax, rax
	je	.L8
	mov	edi, DWORD PTR TIF_SIGPENDING[rip]
	mov	r13, r12
	call	clear_thread_flag@PLT
	sub	r13, QWORD PTR jiffies[rip]
	test	r13, r13
	jle	.L8
.L5:
	mov	edx, r14d
	mov	esi, ebp
	mov	rdi, rbx
	mov	rcx, r15
	call	wait_for_tpm_stat_cond@PLT
	mov	rdx, r13
	mov	esi, eax
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	wait_event_interruptible_timeout@PLT
	test	rax, rax
	jle	.L6
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR ECANCELED[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r12
	call	time_before@PLT
	test	rax, rax
	je	.L8
.L4:
	mov	esi, DWORD PTR TPM_TIMEOUT_USECS_MAX[rip]
	mov	edi, DWORD PTR TPM_TIMEOUT_USECS_MIN[rip]
	call	usleep_range@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	and	eax, ebp
	cmp	eax, ebp
	jne	.L21
.L7:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR ETIME[rip]
	neg	eax
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wait_for_tpm_stat, .-wait_for_tpm_stat
	.comm	jiffies,8,8
	.comm	current,4,4
	.comm	TPM_TIMEOUT_USECS_MIN,4,4
	.comm	TPM_TIMEOUT_USECS_MAX,4,4
	.comm	TPM_CHIP_FLAG_IRQ,4,4
	.comm	TIF_SIGPENDING,4,4
	.comm	ETIME,4,4
	.comm	ERESTARTSYS,8,8
	.comm	ECANCELED,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_tpm_tis_core.c_wait_for_tpm_stat.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_tpm_stat, %function
wait_for_tpm_stat:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	lr, #0
	sub	sp, sp, #20
	ldr	ip, [r0, #4]
	str	r3, [sp, #4]
	ldr	r3, .L26
	str	lr, [sp, #8]
	ldr	r7, [ip]
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	mov	r4, r2
	ldr	r10, [sp, #56]
	blx	r7
	bics	r3, r6, r0
	beq	.L7
	ldr	r3, .L26+4
	ldr	r8, .L26+8
	ldr	r3, [r3]
	ldr	r2, [r5]
	ldr	r7, [r8]
	tst	r2, r3
	add	r7, r4, r7
	beq	.L23
	cmp	r4, #0
	ble	.L8
	ldr	fp, .L26+12
	b	.L5
.L6:
	ldr	r3, [fp]
	cmn	r0, r3
	bne	.L8
	ldr	r3, .L26+16
	ldr	r0, [r3]
	bl	freezing
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L26+20
	ldr	r0, [r3]
	bl	clear_thread_flag
	ldr	r4, [r8]
	sub	r4, r7, r4
	cmp	r4, #0
	ble	.L8
.L5:
	ldr	r3, [sp, #4]
	mov	r2, r10
	ldr	r9, [r3]
	mov	r1, r6
	add	r3, sp, #8
	mov	r0, r5
	bl	wait_for_tpm_stat_cond
	mov	r2, r4
	mov	r1, r0
	mov	r0, r9
	bl	wait_event_interruptible_timeout
	cmp	r0, #0
	ble	.L6
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L26+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L23:
	ldr	r9, .L26+28
	ldr	r4, .L26+32
	b	.L4
.L24:
	mov	r1, r7
	ldr	r0, [r8]
	bl	time_before
	cmp	r0, #0
	beq	.L8
.L4:
	ldr	r1, [r9]
	ldr	r0, [r4]
	bl	usleep_range
	ldr	r3, [r5, #4]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
	bics	r3, r6, r0
	bne	.L24
.L7:
	mov	r0, #0
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r3, .L26+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	TPM_CHIP_FLAG_IRQ
	.word	jiffies
	.word	ERESTARTSYS
	.word	current
	.word	TIF_SIGPENDING
	.word	ECANCELED
	.word	TPM_TIMEOUT_USECS_MAX
	.word	TPM_TIMEOUT_USECS_MIN
	.word	ETIME
	.size	wait_for_tpm_stat, .-wait_for_tpm_stat
	.comm	jiffies,4,4
	.comm	current,4,4
	.comm	TPM_TIMEOUT_USECS_MIN,4,4
	.comm	TPM_TIMEOUT_USECS_MAX,4,4
	.comm	TPM_CHIP_FLAG_IRQ,4,4
	.comm	TIF_SIGPENDING,4,4
	.comm	ETIME,4,4
	.comm	ERESTARTSYS,4,4
	.comm	ECANCELED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
