	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_srab_mux_init
_b53_srab_mux_init:                     ## @b53_srab_mux_init
	.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
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	8(%r15), %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_BCM58XX_DEVICE_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_26
## %bb.3:
	movq	8(%rbx), %r12
	movl	(%rbx), %edi
	movq	_B53_MUX_CONFIG_P5@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	movq	_MUX_CONFIG_MASK@GOTPCREL(%rip), %r13
	andl	(%r13), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_11
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_b53_serdes_init
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	40(%r12), %rdi
	jmp	LBB0_13
LBB0_11:
	movq	_PHY_INTERFACE_MODE_NA@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_PHY_INTERFACE_MODE_INTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_PHY_INTERFACE_MODE_GMII@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rdi
	movq	%rdi, 40(%r12)
LBB0_13:
	movq	_PHY_INTERFACE_MODE_NA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_15
## %bb.14:
	callq	_phy_modes
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$5, %edx
	movl	%eax, %ecx
	callq	_dev_info
LBB0_15:
	movq	8(%rbx), %r12
	movl	(%rbx), %eax
	movq	_B53_MUX_CONFIG_P5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %edi
	addl	$4, %edi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	andl	(%r13), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_23
## %bb.16:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_21:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_b53_serdes_init
	testl	%eax, %eax
	jne	LBB0_26
## %bb.22:
	movq	32(%r12), %rdi
	jmp	LBB0_25
LBB0_23:
	movq	_PHY_INTERFACE_MODE_NA@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_18:
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_20:
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_17:
	movq	_PHY_INTERFACE_MODE_INTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_19:
	movq	_PHY_INTERFACE_MODE_GMII@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rdi
	movq	%rdi, 32(%r12)
LBB0_25:
	movq	_PHY_INTERFACE_MODE_NA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_27
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	_phy_modes
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_8
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
LJTI0_1:
	.long	L0_1_set_21
	.long	L0_1_set_18
	.long	L0_1_set_20
	.long	L0_1_set_17
	.long	L0_1_set_19
	.end_data_region
                                        ## -- End function
	.comm	_BCM58XX_DEVICE_ID,8,3          ## @BCM58XX_DEVICE_ID
	.comm	_B53_MUX_CONFIG_P5,4,2          ## @B53_MUX_CONFIG_P5
	.comm	_MUX_CONFIG_MASK,4,2            ## @MUX_CONFIG_MASK
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ## @PHY_INTERFACE_MODE_MII
	.comm	_PHY_INTERFACE_MODE_GMII,8,3    ## @PHY_INTERFACE_MODE_GMII
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ## @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_INTERNAL,8,3 ## @PHY_INTERFACE_MODE_INTERNAL
	.comm	_PHY_INTERFACE_MODE_NA,8,3      ## @PHY_INTERFACE_MODE_NA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %d mode: %s\n"

	.no_dead_strip	_b53_srab_mux_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_srab_mux_init
_b53_srab_mux_init:                     ; @b53_srab_mux_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	ldp	x8, x22, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _BCM58XX_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCM58XX_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_devm_platform_ioremap_resource
	str	w0, [x22]
	bl	_IS_ERR
	cbnz	x0, LBB0_28
; %bb.3:
	ldr	x25, [x22, #8]
	ldr	w8, [x22]
Lloh3:
	adrp	x23, _B53_MUX_CONFIG_P5@GOTPAGE
Lloh4:
	ldr	x23, [x23, _B53_MUX_CONFIG_P5@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w0, w8, w9
	bl	_readl
Lloh5:
	adrp	x24, _MUX_CONFIG_MASK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MUX_CONFIG_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w8, w8, w0
	sub	w8, w8, #128
Lloh7:
	adrp	x21, _PHY_INTERFACE_MODE_NA@GOTPAGE
Lloh8:
	ldr	x21, [x21, _PHY_INTERFACE_MODE_NA@GOTPAGEOFF]
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.4:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh11:
	adrp	x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x25, #40]
	mov	x0, x20
	mov	w1, #5
	bl	_b53_serdes_init
	cbnz	w0, LBB0_16
; %bb.6:
	ldr	x0, [x25, #40]
	b	LBB0_14
LBB0_7:
	ldr	x0, [x21]
	b	LBB0_13
LBB0_8:
Lloh14:
	adrp	x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x8, _PHY_INTERFACE_MODE_INTERNAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_INTERNAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _PHY_INTERFACE_MODE_GMII@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_GMII@GOTPAGEOFF]
LBB0_12:
	ldr	x0, [x8]
LBB0_13:
	str	x0, [x25, #40]
LBB0_14:
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.15:
	bl	_phy_modes
	mov	x3, x0
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #5
	bl	_dev_info
LBB0_16:
	ldr	x25, [x22, #8]
	ldr	w8, [x22]
	ldr	w9, [x23]
	add	w8, w8, w9
	add	w0, w8, #4
	bl	_readl
	ldr	w8, [x24]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_20
; %bb.17:
Lloh24:
	adrp	x9, lJTI0_1@PAGE
Lloh25:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
Lloh26:
	adrp	x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x25, #32]
	mov	x0, x20
	mov	w1, #4
	bl	_b53_serdes_init
	cbnz	w0, LBB0_28
; %bb.19:
	ldr	x0, [x25, #32]
	b	LBB0_27
LBB0_20:
	ldr	x0, [x21]
	b	LBB0_26
LBB0_21:
Lloh29:
	adrp	x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh31:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
Lloh33:
	adrp	x8, _PHY_INTERFACE_MODE_INTERNAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_INTERNAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh35:
	adrp	x8, _PHY_INTERFACE_MODE_GMII@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_GMII@GOTPAGEOFF]
LBB0_25:
	ldr	x0, [x8]
LBB0_26:
	str	x0, [x25, #32]
LBB0_27:
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_29
LBB0_28:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_29:
	bl	_phy_modes
	mov	x3, x0
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
lJTI0_1:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_21-LBB0_18)>>2
	.byte	(LBB0_22-LBB0_18)>>2
	.byte	(LBB0_23-LBB0_18)>>2
	.byte	(LBB0_24-LBB0_18)>>2
                                        ; -- End function
	.comm	_BCM58XX_DEVICE_ID,8,3          ; @BCM58XX_DEVICE_ID
	.comm	_B53_MUX_CONFIG_P5,4,2          ; @B53_MUX_CONFIG_P5
	.comm	_MUX_CONFIG_MASK,4,2            ; @MUX_CONFIG_MASK
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ; @PHY_INTERFACE_MODE_MII
	.comm	_PHY_INTERFACE_MODE_GMII,8,3    ; @PHY_INTERFACE_MODE_GMII
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ; @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_INTERNAL,8,3 ; @PHY_INTERFACE_MODE_INTERNAL
	.comm	_PHY_INTERFACE_MODE_NA,8,3      ; @PHY_INTERFACE_MODE_NA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %d mode: %s\n"

	.no_dead_strip	_b53_srab_mux_init
.subsections_via_symbols
