	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_add_ieee_pfc_tlv
_ice_add_ieee_pfc_tlv:                  ## @ice_add_ieee_pfc_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_PFC_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_PFC_CFG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_htonl
	movl	%eax, 8(%rbx)
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movq	_ICE_IEEE_PFC_WILLING_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, (%r15)
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.4:
	movq	_ICE_IEEE_PFC_MBC_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	(%r15), %eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_3:
	movl	(%r15), %eax
LBB0_5:
	movl	(%r14), %ecx
	andl	$15, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r15)
	movl	4(%r14), %eax
	movl	%eax, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_PFC_TLV_LEN,4,2       ## @ICE_IEEE_PFC_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_PFC_CFG,4,2   ## @ICE_IEEE_SUBTYPE_PFC_CFG
	.comm	_ICE_IEEE_PFC_WILLING_S,4,2     ## @ICE_IEEE_PFC_WILLING_S
	.comm	_ICE_IEEE_PFC_MBC_S,4,2         ## @ICE_IEEE_PFC_MBC_S
	.no_dead_strip	_ice_add_ieee_pfc_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_pfc_tlv
_ice_add_ieee_pfc_tlv:                  ; @ice_add_ieee_pfc_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	x20, x0
	ldr	x21, [x0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lloh21:
	adrp	x8, _ICE_IEEE_PFC_MBC_S@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ICE_IEEE_PFC_MBC_S@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x21]
LBB0_5:
	ldr	w9, [x19]
	and	w9, w9, #0xf
	orr	w8, w8, w9
	str	w8, [x21]
	ldr	w8, [x19, #4]
	str	w8, [x21, #4]
	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
	ret
	.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_PFC_TLV_LEN,4,2       ; @ICE_IEEE_PFC_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_PFC_CFG,4,2   ; @ICE_IEEE_SUBTYPE_PFC_CFG
	.comm	_ICE_IEEE_PFC_WILLING_S,4,2     ; @ICE_IEEE_PFC_WILLING_S
	.comm	_ICE_IEEE_PFC_MBC_S,4,2         ; @ICE_IEEE_PFC_MBC_S
	.no_dead_strip	_ice_add_ieee_pfc_tlv
.subsections_via_symbols
