	.file	"extr_smartpqi_sis.c_pqisrc_sis_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IN\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to switch back the adapter to SIS mode!\n"
	.align 8
.LC2:
	.string	"PQI Controller is not ready !!!\n"
	.align 8
.LC3:
	.string	"Failed to get adapter properties\n"
	.section	.rodata.str1.1
.LC4:
	.string	"PQI Mode Not Supported\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Failed to get adapter pref settings\n"
	.align 8
.LC6:
	.string	"Failed to get PQI Capabilities\n"
	.align 8
.LC7:
	.string	"Failed to set init struct base addr\n"
	.section	.rodata.str1.1
.LC8:
	.string	"OUT\n"
.LC9:
	.string	"OUT failed\n"
	.text
	.p2align 4
	.globl	pqisrc_sis_init
	.type	pqisrc_sis_init, @function
pqisrc_sis_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 4[rsp], 0
	call	DBG_FUNC@PLT
	mov	rdi, rbp
	call	pqisrc_force_sis@PLT
	test	eax, eax
	jne	.L21
	mov	rdi, rbp
	call	pqisrc_check_fw_status@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	lea	rdx, 4[rsp]
	mov	rsi, rsp
	mov	rdi, rbp
	call	pqisrc_get_adapter_properties@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR SIS_SUPPORT_EXT_OPT[rip], eax
	je	.L6
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR SIS_SUPPORT_PQI[rip], eax
	je	.L6
	mov	DWORD PTR 0[rbp], 0
	test	DWORD PTR SIS_SUPPORT_PQI_RESET_QUIESCE[rip], eax
	mov	rdi, rbp
	setne	al
	movzx	eax, al
	mov	DWORD PTR 0[rbp], eax
	call	pqisrc_get_preferred_settings@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L24
	mov	rdi, rbp
	call	pqisrc_get_sis_pqi_cap@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L25
	mov	rdi, rbp
	call	pqisrc_init_struct_base@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L26
	lea	rdi, .LC8[rip]
	call	DBG_FUNC@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC2[rip]
	call	DBG_ERR@PLT
.L3:
	lea	rdi, .LC9[rip]
	call	DBG_FUNC@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	mov	r12d, eax
	call	DBG_ERR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC4[rip]
	call	DBG_ERR@PLT
	mov	r12d, DWORD PTR PQI_STATUS_FAILURE[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC3[rip]
	call	DBG_ERR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC5[rip]
	call	DBG_ERR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC6[rip]
	call	DBG_ERR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC7[rip]
	call	DBG_ERR@PLT
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pqisrc_sis_init, .-pqisrc_sis_init
	.comm	SIS_SUPPORT_PQI_RESET_QUIESCE,4,4
	.comm	SIS_SUPPORT_PQI,4,4
	.comm	SIS_SUPPORT_EXT_OPT,4,4
	.comm	PQI_STATUS_SUCCESS,4,4
	.comm	PQI_STATUS_FAILURE,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_sis_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IN\012\000"
	.align	2
.LC1:
	.ascii	"Failed to switch back the adapter to SIS mode!\012\000"
	.align	2
.LC2:
	.ascii	"PQI Controller is not ready !!!\012\000"
	.align	2
.LC3:
	.ascii	"Failed to get adapter properties\012\000"
	.align	2
.LC4:
	.ascii	"PQI Mode Not Supported\012\000"
	.align	2
.LC5:
	.ascii	"Failed to get adapter pref settings\012\000"
	.align	2
.LC6:
	.ascii	"Failed to get PQI Capabilities\012\000"
	.align	2
.LC7:
	.ascii	"Failed to set init struct base addr\012\000"
	.align	2
.LC8:
	.ascii	"OUT\012\000"
	.align	2
.LC9:
	.ascii	"OUT failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pqisrc_sis_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqisrc_sis_init, %function
pqisrc_sis_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r3, #0
	mov	r5, r0
	ldr	r2, .L29
	sub	sp, sp, #20
	ldr	r0, .L29+4
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	DBG_FUNC
	mov	r0, r5
	bl	pqisrc_force_sis
	subs	r4, r0, #0
	bne	.L22
	mov	r0, r5
	bl	pqisrc_check_fw_status
	subs	r4, r0, #0
	bne	.L23
	mov	r0, r5
	add	r2, sp, #8
	add	r1, sp, #4
	bl	pqisrc_get_adapter_properties
	subs	r4, r0, #0
	bne	.L24
	ldr	r3, .L29+8
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L6
	ldr	r2, .L29+12
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L6
	ldr	r2, .L29+16
	str	r4, [r5]
	ldr	r2, [r2]
	mov	r0, r5
	tst	r3, r2
	movne	r3, #1
	strne	r3, [r5]
	bl	pqisrc_get_preferred_settings
	subs	r4, r0, #0
	bne	.L25
	mov	r0, r5
	bl	pqisrc_get_sis_pqi_cap
	subs	r4, r0, #0
	bne	.L26
	mov	r0, r5
	bl	pqisrc_init_struct_base
	subs	r4, r0, #0
	bne	.L27
	ldr	r0, .L29+20
	bl	DBG_FUNC
	b	.L1
.L23:
	ldr	r0, .L29+24
	bl	DBG_ERR
.L3:
	ldr	r0, .L29+28
	bl	DBG_FUNC
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L22:
	ldr	r0, .L29+32
	bl	DBG_ERR
	b	.L3
.L6:
	ldr	r0, .L29+36
	bl	DBG_ERR
	ldr	r3, .L29+40
	ldr	r4, [r3]
	b	.L3
.L24:
	ldr	r0, .L29+44
	bl	DBG_ERR
	b	.L3
.L25:
	ldr	r0, .L29+48
	bl	DBG_ERR
	b	.L3
.L26:
	ldr	r0, .L29+52
	bl	DBG_ERR
	b	.L3
.L27:
	ldr	r0, .L29+56
	bl	DBG_ERR
	b	.L3
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC10
	.word	.LC0
	.word	SIS_SUPPORT_EXT_OPT
	.word	SIS_SUPPORT_PQI
	.word	SIS_SUPPORT_PQI_RESET_QUIESCE
	.word	.LC8
	.word	.LC2
	.word	.LC9
	.word	.LC1
	.word	.LC4
	.word	PQI_STATUS_FAILURE
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	pqisrc_sis_init, .-pqisrc_sis_init
	.comm	SIS_SUPPORT_PQI_RESET_QUIESCE,4,4
	.comm	SIS_SUPPORT_PQI,4,4
	.comm	SIS_SUPPORT_EXT_OPT,4,4
	.comm	PQI_STATUS_SUCCESS,4,4
	.comm	PQI_STATUS_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
