	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_set_pauseparam
_xgene_set_pauseparam:                  ## @xgene_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %rbx
	movq	(%rax), %rdi
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_phy_validate_pause
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	8(%r14), %rax
	movq	%rax, 32(%r15)
	movl	4(%r14), %edx
	movl	%edx, 24(%r15)
	movl	(%r14), %esi
	movl	%esi, 8(%r15)
	movq	%rbx, %rdi
	callq	_phy_set_asym_pause
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	jne	LBB0_9
## %bb.6:
	movq	16(%r15), %rax
	movl	24(%r15), %esi
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	16(%r15), %rax
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	*(%rax)
	jmp	LBB0_9
LBB0_7:
	cmpq	$0, 8(%r14)
	je	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r14), %esi
	movl	%esi, 24(%r15)
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	16(%r15), %rax
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	*(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xgene_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_set_pauseparam
_xgene_set_pauseparam:                  ; @xgene_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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x21]
	ldr	x0, [x0]
	bl	_phy_interface_mode_is_rgmii
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_2:
	cbz	x21, LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_validate_pause
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
	str	x8, [x19, #32]
	ldp	w1, w2, [x20]
	str	w2, [x19, #24]
	str	w1, [x19, #8]
	mov	x0, x21
	bl	_phy_set_asym_pause
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_10
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x19, #24]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
	ldp	w8, w1, [x20]
	str	w1, [x19, #24]
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
LBB0_9:
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w1, [x19, #8]
	mov	x0, x19
	blr	x8
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xgene_set_pauseparam
.subsections_via_symbols
