	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_lldp_to_dcb_config        ## -- Begin function i40e_lldp_to_dcb_config
	.p2align	4, 0x90
_i40e_lldp_to_dcb_config:               ## @i40e_lldp_to_dcb_config
	.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
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdi,%rax,4), %r12
	movq	_I40E_TLV_TYPE_END@GOTPCREL(%rip), %r14
	movq	_I40E_LLDPDU_SIZE@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %r12
	addq	$4, %r12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_ntohs
	movq	%rax, %rbx
	movq	_I40E_LLDP_TLV_TYPE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%rbx, %rax
	movq	_I40E_LLDP_TLV_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarq	%cl, %rax
	movq	_I40E_LLDP_TLV_LEN_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rbx
	movq	_I40E_LLDP_TLV_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarq	%cl, %rbx
	cmpq	(%r14), %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %r13
	addq	$8, %r13
	cmpq	(%r15), %r13
	jg	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$128, %rax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_i40e_parse_org_tlv
	jmp	LBB0_3
LBB0_8:
	movq	_I40E_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_ERR_PARAM,4,2             ## @I40E_ERR_PARAM
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_I40E_LLDP_TLV_TYPE_MASK,8,3    ## @I40E_LLDP_TLV_TYPE_MASK
	.comm	_I40E_LLDP_TLV_TYPE_SHIFT,8,3   ## @I40E_LLDP_TLV_TYPE_SHIFT
	.comm	_I40E_LLDP_TLV_LEN_MASK,8,3     ## @I40E_LLDP_TLV_LEN_MASK
	.comm	_I40E_LLDP_TLV_LEN_SHIFT,8,3    ## @I40E_LLDP_TLV_LEN_SHIFT
	.comm	_I40E_TLV_TYPE_END,8,3          ## @I40E_TLV_TYPE_END
	.comm	_I40E_LLDPDU_SIZE,8,3           ## @I40E_LLDPDU_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_lldp_to_dcb_config        ; -- Begin function i40e_lldp_to_dcb_config
	.p2align	2
_i40e_lldp_to_dcb_config:               ; @i40e_lldp_to_dcb_config
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x20, x0, x8, lsl #2
Lloh3:
	adrp	x22, _I40E_LLDP_TLV_TYPE_MASK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _I40E_LLDP_TLV_TYPE_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x23, _I40E_LLDP_TLV_TYPE_SHIFT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _I40E_LLDP_TLV_TYPE_SHIFT@GOTPAGEOFF]
Lloh7:
	adrp	x24, _I40E_LLDP_TLV_LEN_MASK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _I40E_LLDP_TLV_LEN_MASK@GOTPAGEOFF]
Lloh9:
	adrp	x25, _I40E_LLDP_TLV_LEN_SHIFT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _I40E_LLDP_TLV_LEN_SHIFT@GOTPAGEOFF]
Lloh11:
	adrp	x26, _I40E_TLV_TYPE_END@GOTPAGE
Lloh12:
	ldr	x26, [x26, _I40E_TLV_TYPE_END@GOTPAGEOFF]
Lloh13:
	adrp	x27, _I40E_LLDPDU_SIZE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _I40E_LLDPDU_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x20, x28
	add	x20, x8, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_ntohs
	ldr	x8, [x22]
	and	x8, x8, x0
	ldr	x9, [x23]
	asr	x8, x8, x9
	ldr	x9, [x24]
	and	x9, x9, x0
	ldr	x10, [x25]
	asr	x28, x9, x10
	add	x9, x21, x28
	add	x21, x9, #8
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x8, x9
	ccmp	x21, x10, #0, ne
	b.gt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, #128
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_i40e_parse_org_tlv
	b	LBB0_3
LBB0_7:
Lloh15:
	adrp	x8, _I40E_ERR_PARAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_ERR_PARAM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_ERR_PARAM,4,2             ; @I40E_ERR_PARAM
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_I40E_LLDP_TLV_TYPE_MASK,8,3    ; @I40E_LLDP_TLV_TYPE_MASK
	.comm	_I40E_LLDP_TLV_TYPE_SHIFT,8,3   ; @I40E_LLDP_TLV_TYPE_SHIFT
	.comm	_I40E_LLDP_TLV_LEN_MASK,8,3     ; @I40E_LLDP_TLV_LEN_MASK
	.comm	_I40E_LLDP_TLV_LEN_SHIFT,8,3    ; @I40E_LLDP_TLV_LEN_SHIFT
	.comm	_I40E_TLV_TYPE_END,8,3          ; @I40E_TLV_TYPE_END
	.comm	_I40E_LLDPDU_SIZE,8,3           ; @I40E_LLDPDU_SIZE
.subsections_via_symbols
