	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_set_pauseparam
_mlx4_en_set_pauseparam:                ## @mlx4_en_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r13
	movq	32(%rax), %rdx
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	setne	%r14b
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	orl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rbx
LBB0_5:
	movl	(%rdx), %edi
	movl	24(%r13), %esi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdx
	addq	16(%r13), %rdx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, (%rsp)
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_mlx4_SET_PORT_general
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_en_err
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	addq	$8, %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_mlx4_en_update_pfc_stats_bitmap
	movq	(%r13), %rax
	movq	%r14, 24(%rax)
	movq	%r15, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%r12, (%rax)
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed setting pause params, err = %d\n"

	.no_dead_strip	_mlx4_en_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_set_pauseparam
_mlx4_en_set_pauseparam:                ; @mlx4_en_set_pauseparam
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	x25, [x0, #32]
	ldp	w9, w8, [x20]
	cmp	w8, #0
	cset	w20, ne
	cmp	w9, #0
	cset	w21, ne
	orr	w8, w8, w9
	cbz	w8, LBB0_4
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldp	x22, x23, [x8]
LBB0_5:
	ldr	w0, [x25]
	ldr	w1, [x19, #24]
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x3, x20
	mov	x4, x23
	mov	x5, x21
	mov	x6, x22
	bl	_mlx4_SET_PORT_general
	mov	x24, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_en_err
	b	LBB0_8
LBB0_7:
	ldr	w0, [x25]
	add	x1, x19, #8
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	mov	x5, x20
	bl	_mlx4_en_update_pfc_stats_bitmap
	ldr	x8, [x19]
	stp	x21, x20, [x8, #16]
	stp	x22, x23, [x8]
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed setting pause params, err = %d\n"

	.no_dead_strip	_mlx4_en_set_pauseparam
.subsections_via_symbols
