	.file	"extr_i40iw_main.c_i40iw_initialize_dev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DCB is set/clear = %d\n"
	.text
	.p2align 4
	.type	i40iw_initialize_dev, @function
i40iw_initialize_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 120
	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
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 552
	.cfi_def_cfa_offset 608
	mov	rbp, QWORD PTR I40IW_NO_QSET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 536[rsp], rax
	xor	eax, eax
	lea	r14, 288[rsp]
	lea	r13, 32[rsp]
	mov	rdi, r14
	call	memset@PLT
	mov	edx, 120
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	movsx	rax, DWORD PTR I40IW_HMC_IW_MAX[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rdi, 8[0+rax*4]
	call	kzalloc@PLT
	mov	r8d, DWORD PTR I40IW_ERR_NO_MEMORY[rip]
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L1
	mov	QWORD PTR 48[rbx], rax
	lea	r15, 40[rbx]
	add	rax, 4
	mov	rdi, rbx
	mov	QWORD PTR 32[rbx], r15
	mov	ecx, DWORD PTR I40IW_FPM_QUERY_BUF_ALIGNMENT_MASK[rip]
	lea	rsi, 24[rsp]
	mov	QWORD PTR 40[rbx], rax
	mov	edx, DWORD PTR I40IW_QUERY_FPM_BUF_SIZE[rip]
	mov	QWORD PTR 8[rsp], rsi
	call	i40iw_obj_aligned_mem@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L21
.L4:
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR 8[rsp], r8d
	call	kfree@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	r8d, DWORD PTR 8[rsp]
.L1:
	mov	rax, QWORD PTR 536[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 552
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L21:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	mov	ecx, DWORD PTR I40IW_FPM_COMMIT_BUF_ALIGNMENT_MASK[rip]
	mov	rdi, rbx
	mov	edx, DWORD PTR I40IW_COMMIT_FPM_BUF_SIZE[rip]
	mov	rsi, QWORD PTR 8[rsp]
	mov	QWORD PTR 144[rsp], rax
	call	i40iw_obj_aligned_mem@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 120[rsp], r15
	mov	QWORD PTR 136[rsp], rax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 132[rsp], eax
	xor	eax, eax
	cmp	QWORD PTR 32[r12], 0
	sete	al
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR 24[r12]
	mov	DWORD PTR 128[rsp], eax
	mov	eax, DWORD PTR debug[rip]
	mov	DWORD PTR 112[rsp], eax
	mov	rax, QWORD PTR 16[r12]
	test	rax, rax
	cmove	rax, QWORD PTR I40IW_DEFAULT_MTU[rip]
	cmp	QWORD PTR I40E_CLIENT_MAX_USER_PRIORITY[rip], 0
	mov	QWORD PTR 360[rsp], rax
	je	.L6
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, QWORD PTR 352[rsp]
	xor	eax, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	rcx, rdx
	je	.L7
	cmp	rdx, rbp
	je	.L7
	mov	DWORD PTR [rbx], 1
.L7:
	add	rax, 1
	cmp	QWORD PTR I40E_CLIENT_MAX_USER_PRIORITY[rip], rax
	jbe	.L6
.L8:
	mov	rdx, QWORD PTR [rdi+rax*8]
	mov	QWORD PTR [rsi+rax*8], rdx
	mov	rcx, QWORD PTR I40IW_NO_QSET[rip]
	cmp	rcx, rbp
	jne	.L23
	add	rax, 1
	cmp	QWORD PTR I40E_CLIENT_MAX_USER_PRIORITY[rip], rax
	mov	rbp, rdx
	ja	.L8
.L6:
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	lea	rbp, 24[rbx]
	call	i40iw_pr_info@PLT
	mov	eax, DWORD PTR i40iw_virtchnl_send[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 88[rsp], eax
	call	i40iw_device_init@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L4
	lea	r13, 160[rsp]
	xor	esi, esi
	mov	edx, 120
	mov	DWORD PTR 8[rsp], eax
	mov	rdi, r13
	call	memset@PLT
	mov	QWORD PTR 208[rsp], rbp
	mov	rsi, r13
	lea	rbp, 16[rbx]
	mov	rdi, rbp
	mov	QWORD PTR 200[rsp], rbx
	mov	QWORD PTR 192[rsp], r14
	mov	DWORD PTR 164[rsp], 1
	call	i40iw_sc_vsi_init@PLT
	cmp	QWORD PTR 24[rbx], 0
	mov	r8d, DWORD PTR 8[rsp]
	je	.L1
	lea	r13, 416[rsp]
	xor	esi, esi
	mov	edx, 120
	mov	rdi, r13
	call	memset@PLT
	mov	eax, DWORD PTR [r12]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 1
	mov	DWORD PTR 440[rsp], eax
	call	kzalloc@PLT
	mov	r8d, DWORD PTR 8[rsp]
	test	rax, rax
	mov	QWORD PTR 432[rsp], rax
	je	.L24
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], r8d
	mov	DWORD PTR 424[rsp], 1
	call	i40iw_vsi_stats_init@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
.L24:
	mov	r8d, DWORD PTR I40IW_ERR_NO_MEMORY[rip]
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	i40iw_initialize_dev, .-i40iw_initialize_dev
	.comm	i40iw_virtchnl_send,4,4
	.comm	debug,4,4
	.comm	I40IW_QUERY_FPM_BUF_SIZE,4,4
	.comm	I40IW_NO_QSET,8,8
	.comm	I40IW_HMC_IW_MAX,4,4
	.comm	I40IW_FPM_QUERY_BUF_ALIGNMENT_MASK,4,4
	.comm	I40IW_FPM_COMMIT_BUF_ALIGNMENT_MASK,4,4
	.comm	I40IW_ERR_NO_MEMORY,4,4
	.comm	I40IW_DEFAULT_MTU,8,8
	.comm	I40IW_COMMIT_FPM_BUF_SIZE,4,4
	.comm	I40E_CLIENT_MAX_USER_PRIORITY,8,8
	.comm	GFP_KERNEL,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_i40iw_main.c_i40iw_initialize_dev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DCB is set/clear = %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	i40iw_initialize_dev, %function
i40iw_initialize_dev:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L28
	sub	sp, sp, #320
	ldr	r8, .L28+4
	mov	r5, r0
	mov	r2, #76
	mov	r7, r1
	add	r0, sp, #164
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #316]
	mov	r3,#0
	ldr	r6, [r8]
	bl	memset
	mov	r2, #76
	mov	r1, #0
	add	r0, sp, #12
	bl	memset
	ldr	r3, .L28+8
	ldr	r9, .L28+12
	ldr	r0, [r3]
	ldr	r1, [r9]
	add	r0, r0, #2
	lsl	r0, r0, #2
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L24
	ldr	r3, .L28+16
	ldr	r2, .L28+20
	add	r1, r0, #4
	add	r10, r5, #20
	str	r0, [r5, #24]
	str	r1, [r5, #20]
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r10, [r5, #16]
	add	r1, sp, #4
	bl	i40iw_obj_aligned_mem
	subs	r4, r0, #0
	beq	.L25
.L4:
	ldr	r0, [r5, #4]
	bl	kfree
	mov	r3, #0
	str	r3, [r5, #4]
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #316]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #320
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	ldr	r0, [sp, #8]
	ldr	r3, .L28+24
	ldr	r2, .L28+28
	ldr	ip, [sp, #4]
	str	r0, [sp, #84]
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r2, [r2]
	add	r1, sp, #4
	str	ip, [sp, #80]
	bl	i40iw_obj_aligned_mem
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, [r7, #16]
	ldr	r2, [r7, #8]
	clz	r3, r3
	lsr	r3, r3, #5
	str	r3, [sp, #12]
	ldr	r3, [sp, #4]
	cmp	r2, #0
	str	r3, [sp, #72]
	ldr	r3, [r7, #12]
	ldr	r1, .L28+32
	str	r3, [sp, #64]
	ldr	ip, .L28+36
	ldreq	r3, .L28+40
	ldr	r0, [r1]
	ldr	r1, [sp, #8]
	ldreq	r2, [r3]
	ldr	r3, [ip]
	str	r1, [sp, #76]
	ldr	r1, [r7]
	cmp	r3, #0
	str	r10, [sp, #60]
	str	r0, [sp, #56]
	str	r1, [sp, #68]
	str	r2, [sp, #204]
	beq	.L6
	mov	lr, #1
	ldr	r0, [r7, #4]
	ldr	r1, [sp, #200]
	sub	r0, r0, #4
	sub	r1, r1, #4
.L8:
	ldr	r3, [r0, #4]!
	str	r3, [r1, #4]!
	ldr	r2, [r8]
	cmp	r2, r6
	moveq	r6, r3
	beq	.L7
	cmp	r2, r3
	cmpne	r3, r6
	strne	lr, [r5]
.L7:
	ldr	r3, [ip]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L8
.L6:
	mov	r6, r5
	ldr	r0, .L28+44
	ldr	r1, [r6], #12
	bl	i40iw_pr_info
	ldr	r3, .L28+48
	mov	r0, r6
	ldr	r3, [r3]
	add	r1, sp, #12
	str	r3, [sp, #44]
	bl	i40iw_device_init
	subs	r4, r0, #0
	bne	.L4
	mov	r8, #1
	mov	r2, #76
	mov	r1, r4
	add	r0, sp, #88
	add	r10, r5, #8
	bl	memset
	add	r3, sp, #164
	mov	r0, r10
	add	r1, sp, #88
	str	r3, [sp, #108]
	str	r6, [sp, #116]
	str	r5, [sp, #112]
	str	r8, [sp, #92]
	bl	i40iw_sc_vsi_init
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L1
	mov	r2, #76
	mov	r1, r4
	add	r0, sp, #240
	bl	memset
	ldr	r3, [r7]
	mov	r0, r8
	ldr	r1, [r9]
	str	r3, [sp, #256]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [sp, #252]
	beq	.L27
	mov	r0, r10
	add	r1, sp, #240
	str	r8, [sp, #248]
	bl	i40iw_vsi_stats_init
	b	.L1
.L24:
	ldr	r3, .L28+52
	ldr	r4, [r3]
	b	.L1
.L27:
	ldr	r3, .L28+52
	ldr	r4, [r3]
	b	.L4
.L26:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC1
	.word	I40IW_NO_QSET
	.word	I40IW_HMC_IW_MAX
	.word	GFP_KERNEL
	.word	I40IW_FPM_QUERY_BUF_ALIGNMENT_MASK
	.word	I40IW_QUERY_FPM_BUF_SIZE
	.word	I40IW_FPM_COMMIT_BUF_ALIGNMENT_MASK
	.word	I40IW_COMMIT_FPM_BUF_SIZE
	.word	debug
	.word	I40E_CLIENT_MAX_USER_PRIORITY
	.word	I40IW_DEFAULT_MTU
	.word	.LC0
	.word	i40iw_virtchnl_send
	.word	I40IW_ERR_NO_MEMORY
	.size	i40iw_initialize_dev, .-i40iw_initialize_dev
	.comm	i40iw_virtchnl_send,4,4
	.comm	debug,4,4
	.comm	I40IW_QUERY_FPM_BUF_SIZE,4,4
	.comm	I40IW_NO_QSET,4,4
	.comm	I40IW_HMC_IW_MAX,4,4
	.comm	I40IW_FPM_QUERY_BUF_ALIGNMENT_MASK,4,4
	.comm	I40IW_FPM_COMMIT_BUF_ALIGNMENT_MASK,4,4
	.comm	I40IW_ERR_NO_MEMORY,4,4
	.comm	I40IW_DEFAULT_MTU,4,4
	.comm	I40IW_COMMIT_FPM_BUF_SIZE,4,4
	.comm	I40E_CLIENT_MAX_USER_PRIORITY,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
