	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_set_pauseparam
_mlxsw_sp_port_set_pauseparam:          ## @mlxsw_sp_port_set_pauseparam
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	$1, %edx
	cmpq	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	cmpq	$0, 8(%r12)
	setne	%dl
LBB0_2:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	cmpq	$0, 16(%r12)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mlxsw_sp_port_headroom_set
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_port_pause_set
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	movq	%r14, %rdi
	callq	_mlxsw_sp_port_is_pause_en
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlxsw_sp_port_headroom_set
	jmp	LBB0_13
LBB0_12:
	movups	(%r12), %xmm0
	movups	%xmm0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PFC already enabled on port\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"PAUSE frames autonegotiation isn't supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to configure port's headroom\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to set PAUSE parameters\n"

	.no_dead_strip	_mlxsw_sp_port_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_port_set_pauseparam
_mlxsw_sp_port_set_pauseparam:          ; @mlxsw_sp_port_set_pauseparam
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w2, #1
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
	b	LBB0_5
LBB0_2:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w2, ne
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
LBB0_3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_9
; %bb.6:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_netdev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
LBB0_9:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mlxsw_sp_port_headroom_set
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_8
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_port_pause_set
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.12:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	x0, x20
	bl	_mlxsw_sp_port_is_pause_en
	mov	x2, x0
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mlxsw_sp_port_headroom_set
	b	LBB0_8
LBB0_13:
	ldr	q0, [x21]
	str	q0, [x20]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PFC already enabled on port\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"PAUSE frames autonegotiation isn't supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to configure port's headroom\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to set PAUSE parameters\n"

	.no_dead_strip	_mlxsw_sp_port_set_pauseparam
.subsections_via_symbols
