	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_dcbnl_ieee_setpfc
_mlxsw_sp_dcbnl_ieee_setpfc:            ## @mlxsw_sp_dcbnl_ieee_setpfc
	.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	%rsi, %r12
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mlxsw_sp_port_is_pause_en
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movl	(%r14), %esi
	movq	8(%r13), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	movq	%r12, %r8
	callq	___mlxsw_sp_port_headroom_set
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_8
LBB0_5:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_port_pfc_set
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movl	(%r14), %esi
	movq	(%r13), %r8
	movq	8(%r13), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	___mlxsw_sp_port_headroom_set
	jmp	LBB0_8
LBB0_7:
	movq	(%r13), %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PAUSE frames already enabled on port\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to configure port's headroom for PFC\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to configure PFC\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlxsw_sp_dcbnl_ieee_setpfc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_dcbnl_ieee_setpfc
_mlxsw_sp_dcbnl_ieee_setpfc:            ; @mlxsw_sp_dcbnl_ieee_setpfc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_mlxsw_sp_port_is_pause_en
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_3:
	ldr	w1, [x20]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	mov	x4, x23
	bl	___mlxsw_sp_port_headroom_set
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	x1, x23
	bl	_mlxsw_sp_port_pfc_set
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	w1, [x20]
	ldp	x4, x8, [x19]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	___mlxsw_sp_port_headroom_set
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19]
	mov	x1, x23
	mov	w2, #16
	bl	_memcpy
Lloh9:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PAUSE frames already enabled on port\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to configure port's headroom for PFC\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to configure PFC\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlxsw_sp_dcbnl_ieee_setpfc
.subsections_via_symbols
