	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp22_gop_init_rgmii
_mvpp22_gop_init_rgmii:                 ## @mvpp22_gop_init_rgmii
	.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	%rdi, %r15
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	movq	_GENCONF_PORT_CTRL0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdx
	callq	_regmap_read
	movq	_GENCONF_PORT_CTRL0_BUS_WIDTH_SELECT@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_GENCONF_CTRL0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdx
	callq	_regmap_read
	movl	(%r15), %eax
	cmpl	$2, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$3, %eax
	jne	LBB0_2
## %bb.4:
	movq	_GENCONF_CTRL0_PORT1_RGMII_MII@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	jmp	LBB0_5
LBB0_3:
	movq	_GENCONF_CTRL0_PORT0_RGMII@GOTPCREL(%rip), %rax
	movq	_GENCONF_CTRL0_PORT1_RGMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	-36(%rbp), %edx
LBB0_5:
	movl	%edx, -36(%rbp)
	jmp	LBB0_6
LBB0_2:
	movl	-36(%rbp), %edx
LBB0_6:
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_regmap_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENCONF_PORT_CTRL0,4,2         ## @GENCONF_PORT_CTRL0
	.comm	_GENCONF_PORT_CTRL0_BUS_WIDTH_SELECT,4,2 ## @GENCONF_PORT_CTRL0_BUS_WIDTH_SELECT
	.comm	_GENCONF_CTRL0,4,2              ## @GENCONF_CTRL0
	.comm	_GENCONF_CTRL0_PORT0_RGMII,4,2  ## @GENCONF_CTRL0_PORT0_RGMII
	.comm	_GENCONF_CTRL0_PORT1_RGMII,4,2  ## @GENCONF_CTRL0_PORT1_RGMII
	.comm	_GENCONF_CTRL0_PORT1_RGMII_MII,4,2 ## @GENCONF_CTRL0_PORT1_RGMII_MII
	.no_dead_strip	_mvpp22_gop_init_rgmii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp22_gop_init_rgmii
_mvpp22_gop_init_rgmii:                 ; @mvpp22_gop_init_rgmii
	.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	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x20]
Lloh0:
	adrp	x21, _GENCONF_PORT_CTRL0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GENCONF_PORT_CTRL0@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
Lloh2:
	adrp	x8, _GENCONF_PORT_CTRL0_BUS_WIDTH_SELECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GENCONF_PORT_CTRL0_BUS_WIDTH_SELECT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_regmap_write
	ldr	w0, [x20]
Lloh5:
	adrp	x21, _GENCONF_CTRL0@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GENCONF_CTRL0@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [x19]
	cmp	w8, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #3
	b.ne	LBB0_5
; %bb.2:
Lloh7:
	adrp	x8, _GENCONF_CTRL0_PORT1_RGMII_MII@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GENCONF_CTRL0_PORT1_RGMII_MII@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _GENCONF_CTRL0_PORT0_RGMII@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GENCONF_CTRL0_PORT0_RGMII@GOTPAGEOFF]
Lloh12:
	adrp	x9, _GENCONF_CTRL0_PORT1_RGMII@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GENCONF_CTRL0_PORT1_RGMII@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
LBB0_4:
	str	w2, [sp, #12]
	b	LBB0_6
LBB0_5:
	ldr	w2, [sp, #12]
LBB0_6:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_regmap_write
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GENCONF_PORT_CTRL0,4,2         ; @GENCONF_PORT_CTRL0
	.comm	_GENCONF_PORT_CTRL0_BUS_WIDTH_SELECT,4,2 ; @GENCONF_PORT_CTRL0_BUS_WIDTH_SELECT
	.comm	_GENCONF_CTRL0,4,2              ; @GENCONF_CTRL0
	.comm	_GENCONF_CTRL0_PORT0_RGMII,4,2  ; @GENCONF_CTRL0_PORT0_RGMII
	.comm	_GENCONF_CTRL0_PORT1_RGMII,4,2  ; @GENCONF_CTRL0_PORT1_RGMII
	.comm	_GENCONF_CTRL0_PORT1_RGMII_MII,4,2 ; @GENCONF_CTRL0_PORT1_RGMII_MII
	.no_dead_strip	_mvpp22_gop_init_rgmii
.subsections_via_symbols
