	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_parse_cee_app_tlv
_i40e_parse_cee_app_tlv:                ## @i40e_parse_cee_app_tlv
	.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
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	callq	_ntohs
	movq	_I40E_LLDP_TLV_LEN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_I40E_LLDP_TLV_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cltq
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	shrq	$4, %rdx
	movl	%edx, (%rbx)
	testl	%edx, %edx
	je	LBB0_16
## %bb.1:
	movq	_I40E_DCBX_MAX_APPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	jge	LBB0_3
## %bb.2:
	movl	%eax, (%rbx)
	movl	%eax, %edx
LBB0_3:
	testl	%edx, %edx
	jle	LBB0_16
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_I40E_APP_SEL_TCPIP@GOTPCREL(%rip), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rcx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%r14,8), %rdx
	leaq	(%rdx,%rdx,2), %rbx
	movq	%rcx, 8(%rax,%rbx)
	movl	16(%r12,%r15), %edi
	callq	_ntohs
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	addl	$24, %r12d
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %r15
	movslq	%r12d, %r12
	movq	_I40E_MAX_USER_PRIORITY@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%r15), %r13d
	movq	%rbx, %rdi
	callq	_BIT
	testl	%r13d, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	movq	_I40E_MAX_USER_PRIORITY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
	leaq	(%r14,%r14,2), %rcx
	movq	%rbx, 16(%rax,%rcx,8)
	movq	_I40E_CEE_APP_SELECTOR_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	8(%r12,%r15), %rcx
	cmpq	$128, %rcx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, %rcx
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_I40E_APP_SEL_ETHTYPE@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_LLDP_TLV_LEN_MASK,4,2     ## @I40E_LLDP_TLV_LEN_MASK
	.comm	_I40E_LLDP_TLV_LEN_SHIFT,4,2    ## @I40E_LLDP_TLV_LEN_SHIFT
	.comm	_I40E_DCBX_MAX_APPS,4,2         ## @I40E_DCBX_MAX_APPS
	.comm	_I40E_MAX_USER_PRIORITY,8,3     ## @I40E_MAX_USER_PRIORITY
	.comm	_I40E_CEE_APP_SELECTOR_MASK,8,3 ## @I40E_CEE_APP_SELECTOR_MASK
	.comm	_I40E_APP_SEL_ETHTYPE,8,3       ## @I40E_APP_SEL_ETHTYPE
	.comm	_I40E_APP_SEL_TCPIP,8,3         ## @I40E_APP_SEL_TCPIP
	.no_dead_strip	_i40e_parse_cee_app_tlv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_parse_cee_app_tlv
_i40e_parse_cee_app_tlv:                ; @i40e_parse_cee_app_tlv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_ntohs
Lloh0:
	adrp	x8, _I40E_LLDP_TLV_LEN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_LLDP_TLV_LEN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _I40E_LLDP_TLV_LEN_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_LLDP_TLV_LEN_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x8, w8
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x8, x8, x9
	lsr	x8, x8, #4
	str	w8, [x19]
	cbz	w8, LBB0_16
; %bb.1:
Lloh6:
	adrp	x9, _I40E_DCBX_MAX_APPS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_DCBX_MAX_APPS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ge	LBB0_3
; %bb.2:
	str	w9, [x19]
	mov	x8, x9
LBB0_3:
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.4:
	mov	w22, #0
	mov	x23, #0
Lloh9:
	adrp	x24, _I40E_MAX_USER_PRIORITY@GOTPAGE
Lloh10:
	ldr	x24, [x24, _I40E_MAX_USER_PRIORITY@GOTPAGEOFF]
	mov	w25, #24
Lloh11:
	adrp	x26, _I40E_CEE_APP_SELECTOR_MASK@GOTPAGE
Lloh12:
	ldr	x26, [x26, _I40E_CEE_APP_SELECTOR_MASK@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh13:
	adrp	x9, _I40E_APP_SEL_TCPIP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I40E_APP_SEL_TCPIP@GOTPAGEOFF]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x9]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x23, x23, lsl #1
	lsl	x21, x10, #3
	add	x8, x8, x21
	str	x9, [x8, #8]
	ldr	w0, [x27, #16]
	bl	_ntohs
	ldr	x8, [x19, #8]
	str	x0, [x8, x21]
	add	w22, w22, #24
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_16
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldrsw	x8, [x20]
	add	x27, x8, w22, sxtw
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w28, [x27]
	mov	x0, x21
	bl	_BIT
	tst	w0, w28
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x21, x21, #1
	ldr	x8, [x24]
	cmp	x21, x8
	b.lt	LBB0_10
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, #0
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	madd	x9, x23, x25, x8
	str	x21, [x9, #16]
	ldr	x9, [x27, #8]
	ldr	x10, [x26]
	and	x9, x10, x9
	cmp	x9, #128
	b.eq	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x9, #129
	b.ne	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh15:
	adrp	x9, _I40E_APP_SEL_ETHTYPE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I40E_APP_SEL_ETHTYPE@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_LLDP_TLV_LEN_MASK,4,2     ; @I40E_LLDP_TLV_LEN_MASK
	.comm	_I40E_LLDP_TLV_LEN_SHIFT,4,2    ; @I40E_LLDP_TLV_LEN_SHIFT
	.comm	_I40E_DCBX_MAX_APPS,4,2         ; @I40E_DCBX_MAX_APPS
	.comm	_I40E_MAX_USER_PRIORITY,8,3     ; @I40E_MAX_USER_PRIORITY
	.comm	_I40E_CEE_APP_SELECTOR_MASK,8,3 ; @I40E_CEE_APP_SELECTOR_MASK
	.comm	_I40E_APP_SEL_ETHTYPE,8,3       ; @I40E_APP_SEL_ETHTYPE
	.comm	_I40E_APP_SEL_TCPIP,8,3         ; @I40E_APP_SEL_TCPIP
	.no_dead_strip	_i40e_parse_cee_app_tlv
.subsections_via_symbols
