	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_xgcle_bypass
_xgene_enet_xgcle_bypass:               ## @xgene_enet_xgcle_bypass
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_XCLE_BYPASS_REG0_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %r14
	movq	%r14, %rdx
	callq	_xgene_enet_rd_csr
	movq	_CFG_CLE_BYPASS_EN0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_CFG_CLE_IP_PROTOCOL0_SET
	movl	(%r15), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_xgene_enet_wr_csr
	movl	%r12d, %edi
	callq	_xgene_enet_get_fpsel
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_xgene_enet_get_fpsel
	movl	%eax, %r13d
	movq	_XCLE_BYPASS_REG1_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_xgene_enet_rd_csr
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_CFG_CLE_DSTQID0_SET
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_CFG_CLE_FPSEL0_SET
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_CFG_CLE_NXTFPSEL0_SET
	movl	(%r15), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_xgene_enet_wr_csr
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_pr_info
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCLE_BYPASS_REG0_ADDR,4,2      ## @XCLE_BYPASS_REG0_ADDR
	.comm	_CFG_CLE_BYPASS_EN0,4,2         ## @CFG_CLE_BYPASS_EN0
	.comm	_XCLE_BYPASS_REG1_ADDR,4,2      ## @XCLE_BYPASS_REG1_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"+ cle_bypass: fpsel: %d nxtfpsel: %d\n"

	.no_dead_strip	_xgene_enet_xgcle_bypass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_xgcle_bypass
_xgene_enet_xgcle_bypass:               ; @xgene_enet_xgcle_bypass
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _XCLE_BYPASS_REG0_ADDR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XCLE_BYPASS_REG0_ADDR@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_xgene_enet_rd_csr
Lloh2:
	adrp	x8, _CFG_CLE_BYPASS_EN0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CFG_CLE_BYPASS_EN0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #3
	bl	_CFG_CLE_IP_PROTOCOL0_SET
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_xgene_enet_wr_csr
	mov	x0, x21
	bl	_xgene_enet_get_fpsel
	mov	x21, x0
	mov	x0, x20
	bl	_xgene_enet_get_fpsel
	mov	x20, x0
Lloh5:
	adrp	x23, _XCLE_BYPASS_REG1_ADDR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _XCLE_BYPASS_REG1_ADDR@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_xgene_enet_rd_csr
	add	x0, sp, #12
	mov	x1, x22
	bl	_CFG_CLE_DSTQID0_SET
	add	x0, sp, #12
	mov	x1, x21
	bl	_CFG_CLE_FPSEL0_SET
	add	x0, sp, #12
	mov	x1, x20
	bl	_CFG_CLE_NXTFPSEL0_SET
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_xgene_enet_wr_csr
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_pr_info
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XCLE_BYPASS_REG0_ADDR,4,2      ; @XCLE_BYPASS_REG0_ADDR
	.comm	_CFG_CLE_BYPASS_EN0,4,2         ; @CFG_CLE_BYPASS_EN0
	.comm	_XCLE_BYPASS_REG1_ADDR,4,2      ; @XCLE_BYPASS_REG1_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+ cle_bypass: fpsel: %d nxtfpsel: %d\n"

	.no_dead_strip	_xgene_enet_xgcle_bypass
.subsections_via_symbols
