	.file	"extr_t4_hw.c_t4_get_mps_bg_map.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	t4_get_mps_bg_map, @function
t4_get_mps_bg_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L2
	lea	ecx, 0[0+rsi*8]
	sar	eax, cl
	movzx	eax, al
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR A_MPS_CMN_CTL[rip]
	mov	rbp, rdi
	call	t4_read_reg@PLT
	mov	edi, eax
	call	G_NUMPORTS@PLT
	test	eax, eax
	je	.L11
	cmp	eax, 1
	je	.L12
.L5:
	mov	ecx, ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	sal	eax, cl
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, 15
	test	ebx, ebx
	je	.L1
.L6:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	chip_id@PLT
	cmp	rax, QWORD PTR CHELSIO_T5[rip]
	jg	.L5
	cmp	ebx, 1
	jg	.L6
	lea	ecx, [rbx+rbx]
	mov	eax, 3
	sal	eax, cl
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	t4_get_mps_bg_map, .-t4_get_mps_bg_map
	.comm	CHELSIO_T5,8,8
	.comm	A_MPS_CMN_CTL,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_t4_hw.c_t4_get_mps_bg_map.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	t4_get_mps_bg_map, %function
t4_get_mps_bg_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r1
	beq	.L2
	lsl	r0, r1, #3
	asr	r0, r3, r0
	and	r0, r0, #255
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L12
	mov	r5, r0
	ldr	r1, [r3]
	bl	t4_read_reg
	bl	G_NUMPORTS
	cmp	r0, #0
	beq	.L10
	cmp	r0, #1
	beq	.L11
.L5:
	mov	r2, #1
	lsl	r0, r2, r4
	pop	{r4, r5, r6, pc}
.L10:
	cmp	r4, #0
	bne	.L6
	mov	r0, #15
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r5
	bl	chip_id
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r0, r3
	bgt	.L5
	cmp	r4, #1
	bgt	.L6
	mov	r2, #3
	lsl	r0, r4, #1
	lsl	r0, r2, r0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	A_MPS_CMN_CTL
	.word	CHELSIO_T5
	.size	t4_get_mps_bg_map, .-t4_get_mps_bg_map
	.comm	CHELSIO_T5,4,4
	.comm	A_MPS_CMN_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
