	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_gmii_sel_dra7xx
_cpsw_gmii_sel_dra7xx:                  ## @cpsw_gmii_sel_dra7xx
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_readl
	movl	%eax, %r12d
	leal	-128(%rbx), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.cpsw_gmii_sel_dra7xx(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movl	4(%r14), %r13d
	movl	%ebx, %edi
	callq	_phy_modes
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_dev_warn
	movq	_AM33XX_GMII_SEL_MODE_MII@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	cmpl	$1, %r15d
	je	LBB0_7
## %bb.4:
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:
	movq	_GMII_SEL_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpq	$0, 8(%r14)
	jne	LBB0_9
	jmp	LBB0_10
LBB0_7:
	movq	_GMII_SEL_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$4, %ebx
	shll	$4, %r13d
	cmpq	$0, 8(%r14)
	je	LBB0_10
LBB0_9:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_10:
	notl	%ebx
	andl	%ebx, %r12d
	orl	%r13d, %r12d
	movl	(%r14), %esi
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_6:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AM33XX_GMII_SEL_MODE_RMII,4,2  ## @AM33XX_GMII_SEL_MODE_RMII
	.comm	_AM33XX_GMII_SEL_MODE_RGMII,4,2 ## @AM33XX_GMII_SEL_MODE_RGMII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported PHY mode: \"%s\". Defaulting to MII.\n"

	.comm	_AM33XX_GMII_SEL_MODE_MII,4,2   ## @AM33XX_GMII_SEL_MODE_MII
	.comm	_GMII_SEL_MODE_MASK,4,2         ## @GMII_SEL_MODE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"invalid slave number...\n"

L_.str.2:                               ## @.str.2
	.asciz	"RMII External clock is not supported\n"

	.no_dead_strip	_cpsw_gmii_sel_dra7xx
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cpsw_gmii_sel_dra7xx
l_switch.table.cpsw_gmii_sel_dra7xx:
	.quad	_AM33XX_GMII_SEL_MODE_RMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_MII

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_gmii_sel_dra7xx
_cpsw_gmii_sel_dra7xx:                  ; @cpsw_gmii_sel_dra7xx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_readl
	mov	x20, x0
	sub	w8, w22, #128
	cmp	w8, #6
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.cpsw_gmii_sel_dra7xx@PAGE
Lloh1:
	add	x9, x9, l_switch.table.cpsw_gmii_sel_dra7xx@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	ldr	w23, [x19, #4]
	mov	x0, x22
	bl	_phy_modes
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_warn
Lloh4:
	adrp	x8, _AM33XX_GMII_SEL_MODE_MII@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AM33XX_GMII_SEL_MODE_MII@GOTPAGEOFF]
LBB0_3:
	ldr	w22, [x8]
	cmp	w21, #1
	b.eq	LBB0_6
; %bb.4:
	cbnz	w21, LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _GMII_SEL_MODE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GMII_SEL_MODE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _GMII_SEL_MODE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GMII_SEL_MODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w21, w8, #4
	lsl	w22, w22, #4
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
LBB0_7:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_8:
	bic	w8, w20, w21
	orr	w0, w8, w22
	ldr	w1, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
LBB0_9:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AM33XX_GMII_SEL_MODE_RMII,4,2  ; @AM33XX_GMII_SEL_MODE_RMII
	.comm	_AM33XX_GMII_SEL_MODE_RGMII,4,2 ; @AM33XX_GMII_SEL_MODE_RGMII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported PHY mode: \"%s\". Defaulting to MII.\n"

	.comm	_AM33XX_GMII_SEL_MODE_MII,4,2   ; @AM33XX_GMII_SEL_MODE_MII
	.comm	_GMII_SEL_MODE_MASK,4,2         ; @GMII_SEL_MODE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"invalid slave number...\n"

l_.str.2:                               ; @.str.2
	.asciz	"RMII External clock is not supported\n"

	.no_dead_strip	_cpsw_gmii_sel_dra7xx
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cpsw_gmii_sel_dra7xx
l_switch.table.cpsw_gmii_sel_dra7xx:
	.quad	_AM33XX_GMII_SEL_MODE_RMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_RGMII
	.quad	_AM33XX_GMII_SEL_MODE_MII

.subsections_via_symbols
