	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_add_ieee_ets_tlv
_ice_add_ieee_ets_tlv:                  ## @ice_add_ieee_ets_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ICE_TLV_TYPE_ORG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ICE_LLDP_TLV_TYPE_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	(%rbx), %r15
	movq	_ICE_IEEE_ETS_TLV_LEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_htons
	movl	%eax, 12(%rbx)
	movq	_ICE_IEEE_8021QAZ_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ICE_LLDP_TLV_OUI_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_ICE_IEEE_SUBTYPE_ETS_CFG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_htonl
	movl	%eax, 8(%rbx)
	cmpq	$0, 8(%r14)
	je	LBB0_1
## %bb.2:
	movq	_ICE_IEEE_ETS_WILLING_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_ICE_IEEE_ETS_MAXTC_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r15)
	addq	$4, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ice_add_ieee_ets_common_tlv    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_TLV_TYPE_ORG,4,2           ## @ICE_TLV_TYPE_ORG
	.comm	_ICE_LLDP_TLV_TYPE_S,4,2        ## @ICE_LLDP_TLV_TYPE_S
	.comm	_ICE_IEEE_ETS_TLV_LEN,4,2       ## @ICE_IEEE_ETS_TLV_LEN
	.comm	_ICE_IEEE_8021QAZ_OUI,4,2       ## @ICE_IEEE_8021QAZ_OUI
	.comm	_ICE_LLDP_TLV_OUI_S,4,2         ## @ICE_LLDP_TLV_OUI_S
	.comm	_ICE_IEEE_SUBTYPE_ETS_CFG,4,2   ## @ICE_IEEE_SUBTYPE_ETS_CFG
	.comm	_ICE_IEEE_ETS_WILLING_S,4,2     ## @ICE_IEEE_ETS_WILLING_S
	.comm	_ICE_IEEE_ETS_MAXTC_M,4,2       ## @ICE_IEEE_ETS_MAXTC_M
	.no_dead_strip	_ice_add_ieee_ets_tlv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_add_ieee_ets_tlv
_ice_add_ieee_ets_tlv:                  ; @ice_add_ieee_ets_tlv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _ICE_TLV_TYPE_ORG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_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_MAXTC_M@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w8, w8, w0
	str	w8, [x20], #4
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ice_add_ieee_ets_common_tlv
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_TLV_TYPE_ORG,4,2           ; @ICE_TLV_TYPE_ORG
	.comm	_ICE_LLDP_TLV_TYPE_S,4,2        ; @ICE_LLDP_TLV_TYPE_S
	.comm	_ICE_IEEE_ETS_TLV_LEN,4,2       ; @ICE_IEEE_ETS_TLV_LEN
	.comm	_ICE_IEEE_8021QAZ_OUI,4,2       ; @ICE_IEEE_8021QAZ_OUI
	.comm	_ICE_LLDP_TLV_OUI_S,4,2         ; @ICE_LLDP_TLV_OUI_S
	.comm	_ICE_IEEE_SUBTYPE_ETS_CFG,4,2   ; @ICE_IEEE_SUBTYPE_ETS_CFG
	.comm	_ICE_IEEE_ETS_WILLING_S,4,2     ; @ICE_IEEE_ETS_WILLING_S
	.comm	_ICE_IEEE_ETS_MAXTC_M,4,2       ; @ICE_IEEE_ETS_MAXTC_M
	.no_dead_strip	_ice_add_ieee_ets_tlv
.subsections_via_symbols
