	.file	"extr_t4_vf.c_get_params__post_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unable to retrieve adapter SGE parameters: %d\n"
	.align 8
.LC1:
	.string	"unable to retrieve adapter RSS parameters: %d\n"
	.align 8
.LC2:
	.string	"unable to operate with global RSS mode %d\n"
	.align 8
.LC3:
	.string	"unable to get virtual interface resources: %d\n"
	.align 8
.LC4:
	.string	"no port access configured/usable!\n"
	.align 8
.LC5:
	.string	"no virtual interfaces configured/usable!\n"
	.text
	.p2align 4
	.type	get_params__post_init, @function
get_params__post_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	t4vf_get_sge_params@PLT
	test	eax, eax
	jne	.L11
	mov	rdi, rbx
	call	t4vf_get_rss_glb_config@PLT
	test	eax, eax
	jne	.L12
	mov	edx, DWORD PTR 24[rbx]
	cmp	edx, DWORD PTR FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL[rip]
	je	.L5
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	device_printf@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbx
	call	t4_read_chip_settings@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbx
	call	t4vf_get_vfres@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L14
	cmp	QWORD PTR 16[rbx], 0
	je	.L15
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	neg	eax
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	device_printf@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	neg	eax
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC1[rip]
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	device_printf@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	neg	r12d
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	mov	edx, r12d
	call	device_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC4[rip]
	call	device_printf@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	device_printf@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	get_params__post_init, .-get_params__post_init
	.comm	FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL,4,4
	.comm	EINVAL,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_vf.c_get_params__post_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to retrieve adapter SGE parameters: %d\012\000"
	.align	2
.LC1:
	.ascii	"unable to retrieve adapter RSS parameters: %d\012\000"
	.align	2
.LC2:
	.ascii	"unable to operate with global RSS mode %d\012\000"
	.align	2
.LC3:
	.ascii	"unable to get virtual interface resources: %d\012\000"
	.align	2
.LC4:
	.ascii	"no port access configured/usable!\012\000"
	.align	2
.LC5:
	.ascii	"no virtual interfaces configured/usable!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_params__post_init, %function
get_params__post_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	t4vf_get_sge_params
	cmp	r0, #0
	bne	.L11
	mov	r0, r5
	bl	t4vf_get_rss_glb_config
	subs	r4, r0, #0
	bne	.L12
	ldr	r3, .L15
	ldr	r2, [r5, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	ldr	r0, [r5, #16]
	ldr	r1, .L15+4
	bl	device_printf
	ldr	r3, .L15+8
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r5
	bl	t4_read_chip_settings
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	bl	t4vf_get_vfres
	subs	r4, r0, #0
	bne	.L13
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L14
	ldr	r2, [r5, #8]
	cmp	r2, #0
	strne	r3, [r5]
	bne	.L1
	ldr	r0, [r5, #16]
	ldr	r1, .L15+12
	bl	device_printf
	ldr	r3, .L15+8
	ldr	r4, [r3]
	b	.L1
.L11:
	rsb	r4, r0, #0
	mov	r2, r4
	ldr	r0, [r5, #16]
	ldr	r1, .L15+16
	bl	device_printf
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	rsb	r4, r4, #0
	mov	r2, r4
	ldr	r0, [r5, #16]
	ldr	r1, .L15+20
	bl	device_printf
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	rsb	r4, r4, #0
	mov	r2, r4
	ldr	r0, [r5, #16]
	ldr	r1, .L15+24
	bl	device_printf
	b	.L1
.L14:
	ldr	r0, [r5, #16]
	ldr	r1, .L15+28
	bl	device_printf
	ldr	r3, .L15+8
	ldr	r4, [r3]
	b	.L1
.L16:
	.align	2
.L15:
	.word	FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL
	.word	.LC2
	.word	EINVAL
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.size	get_params__post_init, .-get_params__post_init
	.comm	FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
