	.file	"extr_bxe.c_bxe_init_sb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Init FW SB %d\n"
	.text
	.p2align 4
	.type	bxe_init_sb, @function
bxe_init_sb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 200
	.cfi_def_cfa_offset 256
	mov	DWORD PTR [rsp], ecx
	mov	rdx, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rdx
	xor	edx, edx
	call	CHIP_INT_MODE_IS_BC@PLT
	mov	rdi, rbp
	mov	esi, r12d
	mov	r14d, DWORD PTR HC_SEG_ACCESS_NORM[rip]
	test	rax, rax
	cmove	r14d, DWORD PTR IGU_SEG_ACCESS_NORM[rip]
	call	bxe_zero_fp_sb@PLT
	mov	rdi, rbp
	call	CHIP_IS_E1x@PLT
	test	eax, eax
	jne	.L4
	lea	rcx, 16[rsp]
	mov	edx, 80
	xor	esi, esi
	mov	rdi, rcx
	mov	QWORD PTR 8[rsp], rcx
	call	memset@PLT
	mov	rax, QWORD PTR SB_ENABLED[rip]
	mov	rdi, rbp
	mov	QWORD PTR 88[rsp], rax
	call	SC_FUNC@PLT
	mov	rdi, rbp
	mov	DWORD PTR 56[rsp], ebx
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR 72[rsp], eax
	call	SC_VN@PLT
	mov	edi, r15d
	mov	QWORD PTR 64[rsp], rax
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 48[rsp], rax
	call	U64_HI@PLT
	mov	edi, r15d
	mov	QWORD PTR 40[rsp], rax
	call	U64_LO@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	rbx, QWORD PTR 24[rsp]
	mov	QWORD PTR 32[rsp], rax
	call	bxe_map_sb_state_machines@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	r15, rcx
.L5:
	mov	rax, QWORD PTR SM_RX_ID[rip]
	mov	edx, r14d
	mov	esi, r13d
	lea	rdi, [rbx+rax*4]
	call	bxe_setup_ndsb_state_machine@PLT
	mov	rax, QWORD PTR SM_TX_ID[rip]
	mov	edx, r14d
	mov	esi, r13d
	lea	rdi, [rbx+rax*4]
	call	bxe_setup_ndsb_state_machine@PLT
	mov	esi, DWORD PTR DBG_LOAD[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	call	BLOGD@PLT
	mov	ecx, 20
	mov	rdx, r15
	mov	esi, r12d
	mov	rdi, rbp
	call	bxe_wr_fp_sb_data@PLT
	mov	rax, QWORD PTR 184[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 200
	.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
.L4:
	.cfi_restore_state
	lea	rcx, 96[rsp]
	mov	edx, 80
	xor	esi, esi
	mov	rdi, rcx
	mov	QWORD PTR [rsp], rcx
	call	memset@PLT
	mov	rax, QWORD PTR SB_ENABLED[rip]
	mov	rdi, rbp
	mov	QWORD PTR 168[rsp], rax
	call	SC_FUNC@PLT
	mov	rdi, rbp
	mov	DWORD PTR 136[rsp], 255
	mov	QWORD PTR 160[rsp], rax
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR 152[rsp], eax
	call	SC_VN@PLT
	mov	edi, r15d
	mov	QWORD PTR 144[rsp], rax
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 128[rsp], rax
	call	U64_HI@PLT
	mov	edi, r15d
	mov	QWORD PTR 120[rsp], rax
	call	U64_LO@PLT
	mov	edi, DWORD PTR 96[rsp]
	mov	rbx, QWORD PTR 104[rsp]
	mov	QWORD PTR 112[rsp], rax
	call	bxe_map_sb_state_machines@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	r15, rcx
	jmp	.L5
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bxe_init_sb, .-bxe_init_sb
	.comm	TRUE,8,8
	.comm	SM_TX_ID,8,8
	.comm	SM_RX_ID,8,8
	.comm	SB_ENABLED,8,8
	.comm	IGU_SEG_ACCESS_NORM,4,4
	.comm	HC_SEG_ACCESS_NORM,4,4
	.comm	FALSE,4,4
	.comm	DBG_LOAD,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_bxe.c_bxe_init_sb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Init FW SB %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bxe_init_sb, %function
bxe_init_sb:
	@ args = 8, pretend = 0, frame = 88
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	ldr	r3, .L10
	sub	sp, sp, #92
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	mov	r9, r2
	mov	r4, r0
	mov	r6, r1
	ldr	r7, [sp, #128]
	ldr	r10, [sp, #132]
	bl	CHIP_INT_MODE_IS_BC
	cmp	r0, #0
	ldrne	r3, .L10+4
	ldreq	r3, .L10+8
	mov	r1, r7
	mov	r0, r4
	ldr	fp, [r3]
	bl	bxe_zero_fp_sb
	mov	r0, r4
	bl	CHIP_IS_E1x
	subs	r1, r0, #0
	bne	.L4
	mov	r2, #36
	add	r0, sp, #4
	bl	memset
	ldr	r3, .L10+12
	mov	r0, r4
	ldr	r3, [r3]
	add	r5, sp, #4
	str	r3, [sp, #40]
	bl	SC_FUNC
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #36]
	str	r9, [sp, #24]
	str	r8, [sp, #32]
	bl	SC_VN
	mov	r2, r0
	ldr	r3, .L10+16
	mov	r0, r6
	ldr	r3, [r3]
	str	r2, [sp, #28]
	str	r3, [sp, #20]
	bl	U64_HI
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #16]
	bl	U64_LO
	mov	r3, r0
	ldr	r0, [sp, #4]
	ldr	r6, [sp, #8]
	str	r3, [sp, #12]
	bl	bxe_map_sb_state_machines
.L5:
	ldr	r3, .L10+20
	mov	r2, fp
	ldr	r0, [r3]
	mov	r1, r10
	add	r0, r6, r0, lsl #2
	bl	bxe_setup_ndsb_state_machine
	ldr	r3, .L10+24
	mov	r2, fp
	ldr	r0, [r3]
	mov	r1, r10
	add	r0, r6, r0, lsl #2
	bl	bxe_setup_ndsb_state_machine
	ldr	r2, .L10+28
	mov	r3, r7
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L10+32
	bl	BLOGD
	mov	r2, r5
	mov	r3, #10
	mov	r1, r7
	mov	r0, r4
	bl	bxe_wr_fp_sb_data
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r1, #0
	mov	r2, #36
	add	r0, sp, #44
	bl	memset
	ldr	r3, .L10+12
	mov	r0, r4
	ldr	r3, [r3]
	add	r5, sp, #44
	str	r3, [sp, #80]
	bl	SC_FUNC
	mov	r3, #255
	ldr	r2, .L10+36
	str	r0, [sp, #76]
	ldr	r2, [r2]
	mov	r0, r4
	str	r2, [sp, #72]
	str	r3, [sp, #64]
	bl	SC_VN
	mov	r2, r0
	ldr	r3, .L10+16
	mov	r0, r6
	ldr	r3, [r3]
	str	r2, [sp, #68]
	str	r3, [sp, #60]
	bl	U64_HI
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #56]
	bl	U64_LO
	mov	r3, r0
	ldr	r0, [sp, #44]
	ldr	r6, [sp, #48]
	str	r3, [sp, #52]
	bl	bxe_map_sb_state_machines
	b	.L5
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	HC_SEG_ACCESS_NORM
	.word	IGU_SEG_ACCESS_NORM
	.word	SB_ENABLED
	.word	TRUE
	.word	SM_RX_ID
	.word	SM_TX_ID
	.word	DBG_LOAD
	.word	.LC0
	.word	FALSE
	.size	bxe_init_sb, .-bxe_init_sb
	.comm	TRUE,4,4
	.comm	SM_TX_ID,4,4
	.comm	SM_RX_ID,4,4
	.comm	SB_ENABLED,4,4
	.comm	IGU_SEG_ACCESS_NORM,4,4
	.comm	HC_SEG_ACCESS_NORM,4,4
	.comm	FALSE,4,4
	.comm	DBG_LOAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
