	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_set_pauseparam
_dpaa2_eth_set_pauseparam:              ## @dpaa2_eth_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, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	$0, -40(%rbp)
	movq	%rax, %rdi
	callq	_dpaa2_eth_has_pause_support
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.4:
	movl	4(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	(%r15), %eax
	cmpq	$0, 8(%rbx)
	movq	_DPNI_LINK_OPT_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_5
## %bb.7:
	orl	%eax, %ecx
	cmpl	$0, (%rbx)
	je	LBB0_8
LBB0_6:
	movq	_DPNI_LINK_OPT_ASYM_PAUSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	jmp	LBB0_9
LBB0_1:
	movq	_DPNI_PAUSE_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DPNI_PAUSE_VER_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	notl	%ecx
	andl	%eax, %ecx
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_8:
	movq	_DPNI_LINK_OPT_ASYM_PAUSE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_9:
	movl	%ecx, -48(%rbp)
	xorl	%ebx, %ebx
	cmpl	%eax, %ecx
	je	LBB0_13
## %bb.10:
	movl	8(%r15), %edx
	movl	12(%r15), %edi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_dpni_set_link_cfg
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movl	%r12d, %ebx
	jmp	LBB0_13
LBB0_12:
	movl	-48(%rbp), %eax
	movl	%eax, (%r15)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No pause frame support for DPNI version < %d.%d\n"

	.comm	_DPNI_PAUSE_VER_MAJOR,4,2       ## @DPNI_PAUSE_VER_MAJOR
	.comm	_DPNI_PAUSE_VER_MINOR,4,2       ## @DPNI_PAUSE_VER_MINOR
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_DPNI_LINK_OPT_PAUSE,4,2        ## @DPNI_LINK_OPT_PAUSE
	.comm	_DPNI_LINK_OPT_ASYM_PAUSE,4,2   ## @DPNI_LINK_OPT_ASYM_PAUSE
L_.str.1:                               ## @.str.1
	.asciz	"dpni_set_link_state failed\n"

	.no_dead_strip	_dpaa2_eth_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_eth_set_pauseparam
_dpaa2_eth_set_pauseparam:              ; @dpaa2_eth_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
	mov	x20, x0
	str	wzr, [sp, #8]
	bl	_dpaa2_eth_has_pause_support
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_6
; %bb.2:
	ldp	w8, w9, [x20]
	str	w9, [sp, #4]
	ldr	x10, [x21, #8]
Lloh0:
	adrp	x9, _DPNI_LINK_OPT_PAUSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DPNI_LINK_OPT_PAUSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cbz	x10, LBB0_8
; %bb.3:
	orr	w9, w9, w8
	ldr	w10, [x21]
	cbz	w10, LBB0_9
LBB0_4:
Lloh3:
	adrp	x10, _DPNI_LINK_OPT_ASYM_PAUSE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DPNI_LINK_OPT_ASYM_PAUSE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	bic	w9, w9, w10
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _DPNI_PAUSE_VER_MAJOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPNI_PAUSE_VER_MAJOR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _DPNI_PAUSE_VER_MINOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPNI_PAUSE_VER_MINOR@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_6:
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	bic	w9, w8, w9
	ldr	w10, [x21]
	cbz	w10, LBB0_4
LBB0_9:
Lloh17:
	adrp	x10, _DPNI_LINK_OPT_ASYM_PAUSE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DPNI_LINK_OPT_ASYM_PAUSE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_10:
	str	w9, [sp]
	cmp	w9, w8
	b.ne	LBB0_12
; %bb.11:
	mov	w21, #0
	b	LBB0_7
LBB0_12:
	ldp	w2, w0, [x20, #8]
	mov	x3, sp
	mov	w1, #0
	bl	_dpni_set_link_cfg
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.13:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_7
LBB0_14:
	ldr	w8, [sp]
	str	w8, [x20]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No pause frame support for DPNI version < %d.%d\n"

	.comm	_DPNI_PAUSE_VER_MAJOR,4,2       ; @DPNI_PAUSE_VER_MAJOR
	.comm	_DPNI_PAUSE_VER_MINOR,4,2       ; @DPNI_PAUSE_VER_MINOR
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_DPNI_LINK_OPT_PAUSE,4,2        ; @DPNI_LINK_OPT_PAUSE
	.comm	_DPNI_LINK_OPT_ASYM_PAUSE,4,2   ; @DPNI_LINK_OPT_ASYM_PAUSE
l_.str.1:                               ; @.str.1
	.asciz	"dpni_set_link_state failed\n"

	.no_dead_strip	_dpaa2_eth_set_pauseparam
.subsections_via_symbols
