	.file	"extr_smartpqi_sis.c_pqisrc_check_fw_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IN\n"
.LC1:
	.string	"FW check status timedout\n"
.LC2:
	.string	"OUT\n"
	.text
	.p2align 4
	.globl	pqisrc_check_fw_status
	.type	pqisrc_check_fw_status, @function
pqisrc_check_fw_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR PQI_STATUS_SUCCESS[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR SIS_STATUS_OK_TIMEOUT[rip]
	call	DBG_FUNC@PLT
	mov	edi, 1000000
	call	OS_SLEEP@PLT
	mov	rdi, rbp
	call	GET_FW_STATUS@PLT
	and	eax, DWORD PTR PQI_CTRL_KERNEL_UP_AND_RUNNING[rip]
	mov	esi, ebx
	mov	edi, eax
	call	COND_WAIT@PLT
	test	ebx, ebx
	je	.L5
.L2:
	lea	rdi, .LC2[rip]
	call	DBG_FUNC@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	DBG_ERR@PLT
	mov	r12d, DWORD PTR PQI_STATUS_TIMEOUT[rip]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pqisrc_check_fw_status, .-pqisrc_check_fw_status
	.comm	SIS_STATUS_OK_TIMEOUT,4,4
	.comm	PQI_STATUS_TIMEOUT,4,4
	.comm	PQI_STATUS_SUCCESS,4,4
	.comm	PQI_CTRL_KERNEL_UP_AND_RUNNING,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_smartpqi_sis.c_pqisrc_check_fw_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IN\012\000"
	.align	2
.LC1:
	.ascii	"FW check status timedout\012\000"
	.align	2
.LC2:
	.ascii	"OUT\012\000"
	.text
	.align	2
	.global	pqisrc_check_fw_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqisrc_check_fw_status, %function
pqisrc_check_fw_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r2, .L6
	ldr	r3, .L6+4
	ldr	r0, .L6+8
	ldr	r5, [r3]
	ldr	r6, [r2]
	bl	DBG_FUNC
	ldr	r0, .L6+12
	bl	OS_SLEEP
	mov	r0, r4
	bl	GET_FW_STATUS
	ldr	r3, .L6+16
	mov	r1, r5
	ldr	r3, [r3]
	and	r0, r0, r3
	bl	COND_WAIT
	cmp	r5, #0
	beq	.L5
.L2:
	ldr	r0, .L6+20
	bl	DBG_FUNC
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, .L6+24
	bl	DBG_ERR
	ldr	r3, .L6+28
	ldr	r6, [r3]
	b	.L2
.L7:
	.align	2
.L6:
	.word	PQI_STATUS_SUCCESS
	.word	SIS_STATUS_OK_TIMEOUT
	.word	.LC0
	.word	1000000
	.word	PQI_CTRL_KERNEL_UP_AND_RUNNING
	.word	.LC2
	.word	.LC1
	.word	PQI_STATUS_TIMEOUT
	.size	pqisrc_check_fw_status, .-pqisrc_check_fw_status
	.comm	SIS_STATUS_OK_TIMEOUT,4,4
	.comm	PQI_STATUS_TIMEOUT,4,4
	.comm	PQI_STATUS_SUCCESS,4,4
	.comm	PQI_CTRL_KERNEL_UP_AND_RUNNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
