	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_veb_setup                 ## -- Begin function i40e_veb_setup
	.p2align	4, 0x90
_i40e_veb_setup:                        ## @i40e_veb_setup
	.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
	movl	%r8d, %r13d
	movq	%rdx, %rbx
	movq	%rdi, %r15
	testq	%rdx, %rdx
	sete	%al
	testq	%rcx, %rcx
	sete	%dl
	movq	%rcx, %rdi
	addq	%rbx, %rdi
	je	LBB0_2
## %bb.1:
	orb	%dl, %al
	je	LBB0_2
## %bb.4:
	movq	40(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_32
LBB0_2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.5:
	movq	24(%r15), %rdx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	cmpq	%r14, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rcx, (%rdi)
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
LBB0_10:
	testq	%rcx, %rcx
	jne	LBB0_11
	jmp	LBB0_14
LBB0_3:
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_14
LBB0_11:
	cmpl	%eax, %r14d
	jne	LBB0_14
## %bb.12:
	movq	40(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rcx, %rdx
LBB0_13:
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_32
LBB0_14:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.19:
	cmpq	%rbx, 8(%r15)
	jne	LBB0_20
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_i40e_veb_mem_alloc
	testl	%eax, %eax
	js	LBB0_31
## %bb.17:
	movl	%r13d, %edx
	movq	32(%r15), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r13)
	movq	%rbx, 24(%r13)
	testq	%r12, %r12
	jne	LBB0_18
## %bb.26:
	movq	_I40E_NO_VEB@GOTPCREL(%rip), %r12
	jmp	LBB0_27
LBB0_20:
	movq	_I40E_MAX_VEB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.21:
	movq	32(%r15), %rcx
	xorl	%edx, %edx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_25
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %r12
	testq	%r12, %r12
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpq	%rbx, (%r12)
	jne	LBB0_24
	jmp	LBB0_16
LBB0_18:
	addq	$12, %r12
LBB0_27:
	movl	(%r12), %eax
	movl	%eax, 16(%r13)
	testl	%edx, %edx
	movl	$1, %eax
	cmovnel	%edx, %eax
	movl	%eax, 8(%r13)
	movq	24(%r15), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rsi
	movq	%r13, %rdi
	callq	_i40e_add_veb
	testl	%eax, %eax
	je	LBB0_28
## %bb.30:
	movq	%r13, %rdi
	callq	_i40e_veb_clear
LBB0_31:
	xorl	%r13d, %r13d
LBB0_32:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	40(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdx
	jmp	LBB0_13
LBB0_28:
	cmpl	16(%r15), %r14d
	jne	LBB0_32
## %bb.29:
	movl	12(%r13), %eax
	movl	%eax, 20(%r15)
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"one, not both seid's are 0: uplink=%d vsi=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"vsi seid %d not found\n"

	.comm	_I40E_MAX_VEB,4,2               ## @I40E_MAX_VEB
L_.str.2:                               ## @.str.2
	.asciz	"uplink seid %d not found\n"

	.comm	_I40E_NO_VEB,4,2                ## @I40E_NO_VEB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_veb_setup                 ; -- Begin function i40e_veb_setup
	.p2align	2
_i40e_veb_setup:                        ; @i40e_veb_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	cmp	x2, #0
	ccmp	x3, #0, #4, ne
	cset	w8, eq
	cmn	x3, x2
	b.eq	LBB0_4
; %bb.1:
	tbz	w8, #0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #40]
	str	x3, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x2, x20
	bl	_dev_info
	b	LBB0_20
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x24, #0
	ldr	x9, [x19, #24]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	cmp	x8, x24
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x24, lsl #3]
	cbz	x10, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x10]
	cmp	x10, x3
	b.ne	LBB0_6
	b	LBB0_10
LBB0_9:
	mov	x24, x8
LBB0_10:
	cbnz	x3, LBB0_12
	b	LBB0_14
LBB0_11:
	mov	w24, #0
	cbz	x3, LBB0_14
LBB0_12:
	cmp	w24, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	x0, [x19, #40]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x3
	bl	_dev_info
	b	LBB0_20
LBB0_14:
	cbz	x20, LBB0_16
; %bb.15:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_22
LBB0_16:
	mov	x25, #0
LBB0_17:
	mov	x0, x19
	bl	_i40e_veb_mem_alloc
	tbnz	w0, #31, LBB0_20
; %bb.18:
	ldp	x9, x8, [x19, #24]
	ldr	x23, [x8, w0, uxtw #3]
	stp	x20, x22, [x23, #24]
	add	x8, x25, #12
Lloh4:
	adrp	x10, _I40E_NO_VEB@GOTPAGE
Lloh5:
	ldr	x10, [x10, _I40E_NO_VEB@GOTPAGEOFF]
	cmp	x25, #0
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [x23, #16]
	cmp	w21, #0
	csinc	w8, w21, wzr, ne
	str	w8, [x23, #8]
	ldr	x1, [x9, w24, uxtw #3]
	mov	x0, x23
	bl	_i40e_add_veb
	cbz	w0, LBB0_28
; %bb.19:
	mov	x0, x23
	bl	_i40e_veb_clear
LBB0_20:
	mov	x23, #0
LBB0_21:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_22:
Lloh6:
	adrp	x8, _I40E_MAX_VEB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_MAX_VEB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.23:
	ldr	x9, [x19, #32]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_27
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x9]
	cbz	x25, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x10, [x25]
	cmp	x10, x20
	b.ne	LBB0_24
	b	LBB0_17
LBB0_27:
	ldr	x0, [x19, #40]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_28:
	ldr	w8, [x19, #16]
	cmp	w24, w8
	b.ne	LBB0_21
; %bb.29:
	ldr	w8, [x23, #12]
	str	w8, [x19, #20]
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"one, not both seid's are 0: uplink=%d vsi=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"vsi seid %d not found\n"

	.comm	_I40E_MAX_VEB,4,2               ; @I40E_MAX_VEB
l_.str.2:                               ; @.str.2
	.asciz	"uplink seid %d not found\n"

	.comm	_I40E_NO_VEB,4,2                ; @I40E_NO_VEB
.subsections_via_symbols
