	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_reconstitute_veb
_i40e_reconstitute_veb:                 ## @i40e_reconstitute_veb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %r8
	movl	(%r8), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	40(%r8), %rcx
	movq	_I40E_VSI_FLAG_VEB_OWNER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	cmpq	(%r14), %rdi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, 8(%rbx)
	je	LBB0_5
## %bb.7:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	8(%r8), %rax
	movq	(%rcx,%rax,8), %rax
	cmpq	%rax, %rbx
	je	LBB0_9
## %bb.8:
	movl	12(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_i40e_add_vsi
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rdi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_26:
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_34
LBB0_6:
	movq	32(%r8), %rdi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_info
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_34:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_i40e_vsi_reset_stats
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i40e_add_veb
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_34
## %bb.12:
	movq	_I40E_FLAG_VEB_MODE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%rcx), %eax
	jne	LBB0_13
## %bb.14:
	movq	_BRIDGE_MODE_VEPA@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_BRIDGE_MODE_VEB@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r14, %rdi
	callq	_i40e_config_bridge_mode
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.16:
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_23
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%rdx), %rcx
	movq	(%rcx,%r12,8), %r13
	testq	%r13, %r13
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rbx, %r13
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r13), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	16(%r14), %eax
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	callq	_i40e_add_vsi
	testl	%eax, %eax
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	callq	_i40e_vsi_reset_stats
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	jmp	LBB0_22
LBB0_23:
	movq	_I40E_MAX_VEB@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.27:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_32:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r12), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rbx
	jge	LBB0_34
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rdx), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	8(%rdi), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	16(%r14), %eax
	movl	%eax, 20(%rdi)
	callq	_i40e_reconstitute_veb
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %r15d
	jmp	LBB0_34
LBB0_24:
	xorl	%r15d, %r15d
	jmp	LBB0_34
LBB0_25:
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VSI_FLAG_VEB_OWNER,4,2    ## @I40E_VSI_FLAG_VEB_OWNER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing owner VSI for veb_idx %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"rebuild of veb_idx %d owner VSI failed: %d\n"

	.comm	_I40E_FLAG_VEB_MODE_ENABLED,4,2 ## @I40E_FLAG_VEB_MODE_ENABLED
	.comm	_BRIDGE_MODE_VEB,4,2            ## @BRIDGE_MODE_VEB
	.comm	_BRIDGE_MODE_VEPA,4,2           ## @BRIDGE_MODE_VEPA
L_.str.2:                               ## @.str.2
	.asciz	"rebuild of vsi_idx %d failed: %d\n"

	.comm	_I40E_MAX_VEB,4,2               ## @I40E_MAX_VEB
	.no_dead_strip	_i40e_reconstitute_veb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_reconstitute_veb
_i40e_reconstitute_veb:                 ; @i40e_reconstitute_veb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x24, [x0, #32]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x9, [x24, #40]
Lloh0:
	adrp	x10, _I40E_VSI_FLAG_VEB_OWNER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I40E_VSI_FLAG_VEB_OWNER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mov	x11, x9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #8
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x11]
	cbz	x20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x20]
	ldr	x13, [x19]
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x20, #8]
	tst	w10, w12
	b.eq	LBB0_2
; %bb.6:
	ldr	x8, [x24, #8]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x8, #12]
	str	w8, [x20, #12]
LBB0_8:
	mov	x0, x20
	bl	_i40e_add_vsi
	cbz	w0, LBB0_12
; %bb.9:
	mov	x21, x0
	ldr	x0, [x24, #32]
	ldr	w2, [x19]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	b	LBB0_11
LBB0_10:
	ldr	x0, [x24, #32]
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	mov	x0, x20
	bl	_i40e_vsi_reset_stats
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_add_veb
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.13:
	ldr	w8, [x24, #16]
Lloh10:
	adrp	x9, _I40E_FLAG_VEB_MODE_ENABLED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I40E_FLAG_VEB_MODE_ENABLED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _BRIDGE_MODE_VEPA@GOTPAGE
Lloh14:
	ldr	x10, [x10, _BRIDGE_MODE_VEPA@GOTPAGEOFF]
Lloh15:
	adrp	x11, _BRIDGE_MODE_VEB@GOTPAGE
Lloh16:
	ldr	x11, [x11, _BRIDGE_MODE_VEB@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_i40e_config_bridge_mode
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.14:
	mov	x21, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, #40]
	ldr	x22, [x9, x21, lsl #3]
	cmp	x22, #0
	ccmp	x22, x20, #4, ne
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x22]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #16]
	str	w8, [x22, #12]
	mov	x0, x22
	bl	_i40e_add_vsi
	cbnz	w0, LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x22
	bl	_i40e_vsi_reset_stats
	ldr	w8, [x24]
	b	LBB0_15
LBB0_20:
Lloh17:
	adrp	x20, _I40E_MAX_VEB@GOTPAGE
Lloh18:
	ldr	x20, [x20, _I40E_MAX_VEB@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.21:
	mov	x22, #0
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x20]
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w21, #0
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_11
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, #24]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x9, [x0, #8]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x19, #16]
	str	w8, [x0, #20]
	bl	_i40e_reconstitute_veb
	cbz	w0, LBB0_22
; %bb.27:
	mov	x21, x0
	b	LBB0_11
LBB0_28:
	mov	w21, #0
	b	LBB0_11
LBB0_29:
	mov	x23, x0
	ldr	x0, [x24, #32]
	str	x23, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_info
	mov	x21, x23
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VSI_FLAG_VEB_OWNER,4,2    ; @I40E_VSI_FLAG_VEB_OWNER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing owner VSI for veb_idx %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"rebuild of veb_idx %d owner VSI failed: %d\n"

	.comm	_I40E_FLAG_VEB_MODE_ENABLED,4,2 ; @I40E_FLAG_VEB_MODE_ENABLED
	.comm	_BRIDGE_MODE_VEB,4,2            ; @BRIDGE_MODE_VEB
	.comm	_BRIDGE_MODE_VEPA,4,2           ; @BRIDGE_MODE_VEPA
l_.str.2:                               ; @.str.2
	.asciz	"rebuild of vsi_idx %d failed: %d\n"

	.comm	_I40E_MAX_VEB,4,2               ; @I40E_MAX_VEB
	.no_dead_strip	_i40e_reconstitute_veb
.subsections_via_symbols
