	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_set_pauseparam
_dpaa_set_pauseparam:                   ## @dpaa_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	(%rax), %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_phy_validate_pause
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	cmpl	$0, 8(%r12)
	setne	%al
	movl	%eax, (%r15)
	movl	4(%r12), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	setne	%al
	movl	%eax, 4(%r15)
	movl	(%r12), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	callq	_phy_set_asym_pause
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_fman_get_pause_cfg
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_fman_set_mac_active_pause
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy device not initialized\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"set_mac_active_pause() = %d\n"

	.no_dead_strip	_dpaa_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_set_pauseparam
_dpaa_set_pauseparam:                   ; @dpaa_set_pauseparam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x22, [x19]
	cbz	x22, LBB0_4
; %bb.1:
	ldr	x20, [x0]
	mov	x0, x22
	mov	x1, x21
	bl	_phy_validate_pause
	cbz	w0, LBB0_5
; %bb.2:
	ldur	d0, [x21, #4]
	cmeq.2s	v1, v0, #0
	movi.2s	v2, #1
	bic.8b	v1, v2, v1
	rev64.2s	v1, v1
	str	d1, [x20]
	ldr	w2, [x21]
	cmp	w2, #0
	cset	w8, ne
	str	w8, [x20, #8]
	fmov	w1, s0
	mov	x0, x22
	bl	_phy_set_asym_pause
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_fman_get_pause_cfg
	ldp	w2, w1, [sp, #8]
	mov	x0, x20
	bl	_fman_set_mac_active_pause
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy device not initialized\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"set_mac_active_pause() = %d\n"

	.no_dead_strip	_dpaa_set_pauseparam
.subsections_via_symbols
