	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_dcb_cfg_to_lldp
_ice_dcb_cfg_to_lldp:                   ## @ice_dcb_cfg_to_lldp
	.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	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_ICE_TLV_ID_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%ecx, %ecx
	movq	_ICE_TLV_ID_END_OF_LLDPPDU@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r14d
	movl	%ebx, %edx
	leal	1(%rdx), %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ice_add_dcb_tlv
	movl	(%r12), %edi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	movq	_ICE_LLDP_TLV_LEN_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ICE_LLDP_TLV_LEN_S@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	leal	2(%rax), %ecx
	testl	%eax, %eax
	cmovel	%eax, %ecx
	addl	%r14d, %ecx
	cmpl	(%r13), %ebx
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ICE_LLDPDU_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	cltq
	leaq	4(%r12,%rax), %rax
	cmovneq	%rax, %r12
	jmp	LBB0_1
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_TLV_ID_START,4,2           ## @ICE_TLV_ID_START
	.comm	_ICE_LLDP_TLV_LEN_M,4,2         ## @ICE_LLDP_TLV_LEN_M
	.comm	_ICE_LLDP_TLV_LEN_S,4,2         ## @ICE_LLDP_TLV_LEN_S
	.comm	_ICE_TLV_ID_END_OF_LLDPPDU,4,2  ## @ICE_TLV_ID_END_OF_LLDPPDU
	.comm	_ICE_LLDPDU_SIZE,4,2            ## @ICE_LLDPDU_SIZE
	.no_dead_strip	_ice_dcb_cfg_to_lldp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_dcb_cfg_to_lldp
_ice_dcb_cfg_to_lldp:                   ; @ice_dcb_cfg_to_lldp
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w22, #0
Lloh0:
	adrp	x8, _ICE_TLV_ID_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_TLV_ID_START@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x23, _ICE_LLDP_TLV_LEN_M@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ICE_LLDP_TLV_LEN_M@GOTPAGEOFF]
Lloh5:
	adrp	x24, _ICE_LLDP_TLV_LEN_S@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ICE_LLDP_TLV_LEN_S@GOTPAGEOFF]
Lloh7:
	adrp	x25, _ICE_TLV_ID_END_OF_LLDPPDU@GOTPAGE
Lloh8:
	ldr	x25, [x25, _ICE_TLV_ID_END_OF_LLDPPDU@GOTPAGEOFF]
Lloh9:
	adrp	x26, _ICE_LLDPDU_SIZE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ICE_LLDPDU_SIZE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w27, w2, #1
	mov	x0, x21
	mov	x1, x20
	bl	_ice_add_dcb_tlv
	ldr	w0, [x21]
	bl	_ntohs
	ldr	w8, [x23]
	and	w8, w8, w0
	ldr	w9, [x24]
	asr	w8, w8, w9
	add	w9, w8, #2
	cmp	w8, #0
	csel	w9, wzr, w9, eq
	add	w22, w9, w22
	ldr	w9, [x25]
	ldr	w10, [x26]
	cmp	w27, w9
	ccmp	w22, w10, #0, lt
	b.gt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x21, w8, sxtw
	add	x9, x9, #4
	cmp	w8, #0
	csel	x21, x21, x9, eq
	mov	x2, x27
	b	LBB0_1
LBB0_3:
	str	w22, [x19]
	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	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_TLV_ID_START,4,2           ; @ICE_TLV_ID_START
	.comm	_ICE_LLDP_TLV_LEN_M,4,2         ; @ICE_LLDP_TLV_LEN_M
	.comm	_ICE_LLDP_TLV_LEN_S,4,2         ; @ICE_LLDP_TLV_LEN_S
	.comm	_ICE_TLV_ID_END_OF_LLDPPDU,4,2  ; @ICE_TLV_ID_END_OF_LLDPPDU
	.comm	_ICE_LLDPDU_SIZE,4,2            ; @ICE_LLDPDU_SIZE
	.no_dead_strip	_ice_dcb_cfg_to_lldp
.subsections_via_symbols
