	.file	"extr_bnx2.c_bnx2_init_tx_context.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2_init_tx_context, @function
bnx2_init_tx_context:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	GET_CID_ADDR@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	BNX2_CHIP@PLT
	cmp	rax, QWORD PTR BNX2_CHIP_5709[rip]
	je	.L6
	mov	edx, DWORD PTR BNX2_L2CTX_TYPE[rip]
	mov	r15d, DWORD PTR BNX2_L2CTX_CMD_TYPE[rip]
	mov	r14d, DWORD PTR BNX2_L2CTX_TBDR_BHADDR_HI[rip]
	mov	r13d, DWORD PTR BNX2_L2CTX_TBDR_BHADDR_LO[rip]
.L3:
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR BNX2_L2CTX_TYPE_TYPE_L2[rip]
	or	ecx, DWORD PTR BNX2_L2CTX_TYPE_SIZE_L2[rip]
	call	bnx2_ctx_wr@PLT
	mov	edx, r15d
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR BNX2_L2CTX_CMD_TYPE_TYPE_L2[rip]
	or	ecx, 524288
	call	bnx2_ctx_wr@PLT
	mov	eax, DWORD PTR [rbx]
	mov	ecx, 32
	mov	edx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	sar	eax, cl
	mov	ecx, eax
	call	bnx2_ctx_wr@PLT
	mov	rcx, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	esi, r12d
	mov	rdi, rbp
	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
	jmp	bnx2_ctx_wr@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR BNX2_L2CTX_TYPE_XI[rip]
	mov	r15d, DWORD PTR BNX2_L2CTX_CMD_TYPE_XI[rip]
	mov	r14d, DWORD PTR BNX2_L2CTX_TBDR_BHADDR_HI_XI[rip]
	mov	r13d, DWORD PTR BNX2_L2CTX_TBDR_BHADDR_LO_XI[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	bnx2_init_tx_context, .-bnx2_init_tx_context
	.comm	BNX2_L2CTX_TYPE_XI,4,4
	.comm	BNX2_L2CTX_TYPE_TYPE_L2,4,4
	.comm	BNX2_L2CTX_TYPE_SIZE_L2,4,4
	.comm	BNX2_L2CTX_TYPE,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_LO_XI,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_LO,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_HI_XI,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_HI,4,4
	.comm	BNX2_L2CTX_CMD_TYPE_XI,4,4
	.comm	BNX2_L2CTX_CMD_TYPE_TYPE_L2,4,4
	.comm	BNX2_L2CTX_CMD_TYPE,4,4
	.comm	BNX2_CHIP_5709,8,8
	.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_bnx2.c_bnx2_init_tx_context.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2_init_tx_context, %function
bnx2_init_tx_context:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r6, r2
	bl	GET_CID_ADDR
	mov	r5, r0
	mov	r0, r4
	bl	BNX2_CHIP
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r1, .L6+4
	ldreq	r3, .L6+8
	ldrne	r1, .L6+12
	ldrne	r3, .L6+16
	ldr	r8, [r1]
	ldr	r7, [r3]
	ldr	r1, .L6+20
	ldr	r3, .L6+24
	ldreq	r0, .L6+28
	ldrne	r0, .L6+32
	ldreq	r2, .L6+36
	ldrne	r2, .L6+40
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r9, [r0]
	orr	r3, r1, r3
	mov	r0, r4
	mov	r1, r5
	ldr	r2, [r2]
	bl	bnx2_ctx_wr
	ldr	r3, .L6+44
	mov	r2, r9
	ldr	r3, [r3]
	mov	r1, r5
	mov	r0, r4
	orr	r3, r3, #524288
	bl	bnx2_ctx_wr
	mov	r3, #32
	ldr	r1, [r6]
	mov	r2, r8
	asr	r3, r1, r3
	mov	r0, r4
	mov	r1, r5
	bl	bnx2_ctx_wr
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	bnx2_ctx_wr
.L7:
	.align	2
.L6:
	.word	BNX2_CHIP_5709
	.word	BNX2_L2CTX_TBDR_BHADDR_HI_XI
	.word	BNX2_L2CTX_TBDR_BHADDR_LO_XI
	.word	BNX2_L2CTX_TBDR_BHADDR_HI
	.word	BNX2_L2CTX_TBDR_BHADDR_LO
	.word	BNX2_L2CTX_TYPE_TYPE_L2
	.word	BNX2_L2CTX_TYPE_SIZE_L2
	.word	BNX2_L2CTX_CMD_TYPE_XI
	.word	BNX2_L2CTX_CMD_TYPE
	.word	BNX2_L2CTX_TYPE_XI
	.word	BNX2_L2CTX_TYPE
	.word	BNX2_L2CTX_CMD_TYPE_TYPE_L2
	.size	bnx2_init_tx_context, .-bnx2_init_tx_context
	.comm	BNX2_L2CTX_TYPE_XI,4,4
	.comm	BNX2_L2CTX_TYPE_TYPE_L2,4,4
	.comm	BNX2_L2CTX_TYPE_SIZE_L2,4,4
	.comm	BNX2_L2CTX_TYPE,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_LO_XI,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_LO,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_HI_XI,4,4
	.comm	BNX2_L2CTX_TBDR_BHADDR_HI,4,4
	.comm	BNX2_L2CTX_CMD_TYPE_XI,4,4
	.comm	BNX2_L2CTX_CMD_TYPE_TYPE_L2,4,4
	.comm	BNX2_L2CTX_CMD_TYPE,4,4
	.comm	BNX2_CHIP_5709,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
