	.file	"extr_sli4.c_sli_fw_term.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bootstrap mailbox not ready\n"
.LC1:
	.string	"bad COM_FUNC_RESET write\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"bootstrap mailbox write fail (FW_DEINIT)\n"
	.section	.rodata.str1.1
.LC3:
	.string	"bad FW_DEINIT write\n"
	.text
	.p2align 4
	.type	sli_fw_term, @function
sli_fw_term:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rax, QWORD PTR [rdi]
	mov	rbp, rdi
	cmp	rax, QWORD PTR SLI4_IF_TYPE_BE3_SKH_PF[rip]
	je	.L2
	cmp	rax, QWORD PTR SLI4_IF_TYPE_BE3_SKH_VF[rip]
	jne	.L3
.L2:
	mov	esi, DWORD PTR SLI4_BMBX_DELAY_US[rip]
	mov	rdi, rbp
	call	sli_bmbx_wait@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, rbp
	call	sli_common_function_reset@PLT
	test	rax, rax
	jne	.L12
	mov	esi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR SLI4_BMBX_SIZE[rip]
	mov	rdi, rbp
	call	sli_cmd_fw_deinitialize@PLT
	test	rax, rax
	je	.L7
	mov	rdi, rbp
	call	sli_bmbx_command@PLT
	test	rax, rax
	jne	.L13
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR SLI4_SLIPORT_CONTROL_LITTLE_ENDIAN[rip]
	call	sli_sliport_control@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC1[rip]
	call	ocs_log_err@PLT
	mov	eax, -1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	call	ocs_log_crit@PLT
	mov	eax, -1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC3[rip]
	call	ocs_log_test@PLT
	mov	eax, -1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC2[rip]
	call	ocs_log_crit@PLT
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sli_fw_term, .-sli_fw_term
	.comm	SLI4_SLIPORT_CONTROL_LITTLE_ENDIAN,4,4
	.comm	SLI4_SLIPORT_CONTROL_BIG_ENDIAN,4,4
	.comm	SLI4_IF_TYPE_BE3_SKH_VF,8,8
	.comm	SLI4_IF_TYPE_BE3_SKH_PF,8,8
	.comm	SLI4_BMBX_SIZE,4,4
	.comm	SLI4_BMBX_DELAY_US,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_sli4.c_sli_fw_term.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bootstrap mailbox not ready\012\000"
	.align	2
.LC1:
	.ascii	"bad COM_FUNC_RESET write\012\000"
	.align	2
.LC2:
	.ascii	"bootstrap mailbox write fail (FW_DEINIT)\012\000"
	.align	2
.LC3:
	.ascii	"bad FW_DEINIT write\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sli_fw_term, %function
sli_fw_term:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L15
	ldr	r3, [r0]
	ldr	r2, [r2]
	push	{r4, lr}
	cmp	r3, r2
	mov	r4, r0
	beq	.L2
	ldr	r2, .L15+4
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L3
.L2:
	ldr	r3, .L15+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	sli_bmbx_wait
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	sli_common_function_reset
	cmp	r0, #0
	bne	.L14
	ldr	r3, .L15+12
	mov	r0, r4
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	bl	sli_cmd_fw_deinitialize
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	bl	sli_bmbx_command
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r0, [r4, #4]
	ldr	r1, .L15+16
	bl	ocs_log_crit
	mvn	r0, #0
	pop	{r4, pc}
.L3:
	ldr	r3, .L15+20
	ldr	r1, [r3]
	bl	sli_sliport_control
	mov	r0, #0
	pop	{r4, pc}
.L14:
	ldr	r0, [r4, #4]
	ldr	r1, .L15+24
	bl	ocs_log_err
	mvn	r0, #0
	pop	{r4, pc}
.L13:
	ldr	r0, [r4, #4]
	ldr	r1, .L15+28
	bl	ocs_log_crit
	mvn	r0, #0
	pop	{r4, pc}
.L7:
	ldr	r0, [r4, #4]
	ldr	r1, .L15+32
	bl	ocs_log_test
	mvn	r0, #0
	pop	{r4, pc}
.L16:
	.align	2
.L15:
	.word	SLI4_IF_TYPE_BE3_SKH_PF
	.word	SLI4_IF_TYPE_BE3_SKH_VF
	.word	SLI4_BMBX_DELAY_US
	.word	SLI4_BMBX_SIZE
	.word	.LC2
	.word	SLI4_SLIPORT_CONTROL_LITTLE_ENDIAN
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	sli_fw_term, .-sli_fw_term
	.comm	SLI4_SLIPORT_CONTROL_LITTLE_ENDIAN,4,4
	.comm	SLI4_SLIPORT_CONTROL_BIG_ENDIAN,4,4
	.comm	SLI4_IF_TYPE_BE3_SKH_VF,4,4
	.comm	SLI4_IF_TYPE_BE3_SKH_PF,4,4
	.comm	SLI4_BMBX_SIZE,4,4
	.comm	SLI4_BMBX_DELAY_US,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
