	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_setup_pf_switch_element
_i40e_setup_pf_switch_element:          ## @i40e_setup_pf_switch_element
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	12(%rsi), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	8(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movl	(%r13), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	movq	%r12, %r13
	callq	_le16_to_cpu
	movl	%eax, %r8d
	movl	%r14d, %r12d
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	16(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r8d, %ecx
	movl	%r8d, %r14d
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_dev_info
	movl	%r14d, %r8d
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_21
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	16(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_20
LBB0_17:
	cmpl	$1, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.18:
	movl	%r15d, (%r13)
	movl	%ebx, 8(%r13)
	movl	%r8d, 12(%r13)
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.19:
	movq	16(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
LBB0_20:
	movl	%r8d, %ecx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_4:
	cmpl	(%r13), %r15d
	jne	LBB0_23
## %bb.5:
	movl	4(%r13), %eax
	movq	_I40E_MAX_VEB@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_15
## %bb.6:
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.7:
	movq	24(%r13), %rsi
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r8d, (%rdi)
	jne	LBB0_11
## %bb.10:
	movl	%edx, 4(%r13)
	movl	%edx, %eax
LBB0_12:
	cmpl	%ecx, %eax
	jl	LBB0_15
## %bb.13:
	movq	%r13, %rdi
	movl	%r8d, %ebx
	callq	_i40e_veb_mem_alloc
	testl	%eax, %eax
	js	LBB0_23
## %bb.14:
	movl	%ebx, %r8d
	movl	%eax, 4(%r13)
	movl	(%r14), %ecx
LBB0_15:
	cmpl	%ecx, %eax
	jge	LBB0_23
## %bb.16:
	movq	24(%r13), %rcx
	cltq
	movq	(%rcx,%rax,8), %rdx
	movl	%r8d, (%rdx)
	movl	(%r13), %esi
	movl	%esi, 4(%rdx)
	movq	%r13, 16(%rdx)
	movq	_I40E_NO_VEB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	(%rcx,%rax,8), %rax
	movl	%edx, 8(%rax)
	jmp	LBB0_23
LBB0_22:
	movl	%r8d, (%r13)
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_23
	.long	L0_0_set_4
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type=%d seid=%d uplink=%d downlink=%d\n"

	.comm	_I40E_MAX_VEB,4,2               ## @I40E_MAX_VEB
	.comm	_I40E_NO_VEB,4,2                ## @I40E_NO_VEB
L_.str.1:                               ## @.str.1
	.asciz	"pf_seid=%d main_vsi_seid=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"unknown element type=%d seid=%d\n"

	.no_dead_strip	_i40e_setup_pf_switch_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_setup_pf_switch_element
_i40e_setup_pf_switch_element:          ; @i40e_setup_pf_switch_element
	.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, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #12]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
	mov	x24, x0
	ldp	w25, w0, [x20]
	bl	_le16_to_cpu
	mov	x20, x0
	cbz	w21, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	stp	x24, x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	mov	x3, x20
	bl	_dev_info
LBB0_2:
	sub	w8, w25, #128
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	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_5:
	ldr	x0, [x19, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x25
	b	LBB0_9
LBB0_6:
	cmp	w23, #1
	b.ne	LBB0_4
; %bb.7:
	str	w24, [x19]
	stp	w22, w20, [x19, #8]
	cbz	w21, LBB0_4
; %bb.8:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
LBB0_9:
	mov	x3, x20
	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
	b	_dev_info
LBB0_10:
	ldr	w8, [x19]
	cmp	w24, w8
	b.ne	LBB0_4
; %bb.11:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x21, _I40E_MAX_VEB@GOTPAGE
Lloh9:
	ldr	x21, [x21, _I40E_MAX_VEB@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.lt	LBB0_21
; %bb.12:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x9, #0
	ldr	x10, [x19, #24]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w11, [x11]
	cmp	w11, w20
	b.ne	LBB0_14
; %bb.17:
	str	w9, [x19, #4]
	mov	x0, x9
LBB0_18:
	cmp	w0, w8
	b.lt	LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_i40e_veb_mem_alloc
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_4
; %bb.20:
	str	w0, [x19, #4]
	ldr	w8, [x21]
LBB0_21:
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.22:
	ldr	x8, [x19, #24]
	sbfiz	x9, x0, #3, #32
	ldr	x10, [x8, x9]
	ldr	w11, [x19]
	stp	w20, w11, [x10]
	str	x19, [x10, #16]
Lloh10:
	adrp	x10, _I40E_NO_VEB@GOTPAGE
Lloh11:
	ldr	x10, [x10, _I40E_NO_VEB@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	ldr	x8, [x8, x9]
	str	w10, [x8, #8]
	b	LBB0_4
LBB0_23:
	str	w20, [x19]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type=%d seid=%d uplink=%d downlink=%d\n"

	.comm	_I40E_MAX_VEB,4,2               ; @I40E_MAX_VEB
	.comm	_I40E_NO_VEB,4,2                ; @I40E_NO_VEB
l_.str.1:                               ; @.str.1
	.asciz	"pf_seid=%d main_vsi_seid=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"unknown element type=%d seid=%d\n"

	.no_dead_strip	_i40e_setup_pf_switch_element
.subsections_via_symbols
