	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvsw61xx_probe
_mvsw61xx_probe:                        ## @mvsw61xx_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %rdi
	callq	_of_mdio_find_bus
	movq	%rax, 88(%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movq	%rax, 72(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_13:
	movq	_MV_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, 80(%r15)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movq	-48(%rbp), %r13
	movq	%r13, 80(%r15)
	movq	72(%r15), %rax
LBB0_14:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	88(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_IDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_MV_PORTREG
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_r16
	movq	_MV_IDENT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%r15)
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_15
## %bb.16:
	cltq
	leaq	l_switch.table.mvsw61xx_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	80(%r15), %r8
	movq	88(%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_info
	cmpq	$0, 72(%r15)
	leaq	L_.str.10(%rip), %rax
	leaq	L_.str.9(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	leaq	L_.str.11(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.12(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_20:
	movq	%r15, %rdi
	callq	_kfree
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	80(%r15), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_18:
	movq	-48(%rbp), %rax
	movq	%rax, 64(%r15)
	leaq	L_.str.13(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	negq	%rax
	sbbl	%ebx, %ebx
	orl	-48(%rbp), %ebx
	movl	%ebx, 4(%r15)
	movq	_MV_VLANS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rbx
	addq	$16, %rbx
	movl	%eax, 56(%r15)
	movq	64(%r15), %rax
	movq	%rax, 48(%r15)
	movq	_MV_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%r13, 16(%r15)
	movq	_mvsw61xx_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	__mvsw61xx_reset
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_register_switch
	testl	%eax, %eax
	js	LBB0_19
## %bb.22:
	movl	$1, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mii-bus"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get MII bus handle\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't find MII bus from handle\n"

L_.str.3:                               ## @.str.3
	.asciz	"is-indirect"

L_.str.4:                               ## @.str.4
	.asciz	"reg"

L_.str.5:                               ## @.str.5
	.asciz	"Switch address not specified\n"

	.comm	_MV_BASE,8,3                    ## @MV_BASE
	.comm	_IDENT,4,2                      ## @IDENT
	.comm	_MV_IDENT_MASK,4,2              ## @MV_IDENT_MASK
	.comm	_MV_IDENT_STR_6171,8,3          ## @MV_IDENT_STR_6171
	.comm	_MV_IDENT_STR_6172,8,3          ## @MV_IDENT_STR_6172
	.comm	_MV_IDENT_STR_6176,8,3          ## @MV_IDENT_STR_6176
	.comm	_MV_IDENT_STR_6352,8,3          ## @MV_IDENT_STR_6352
L_.str.6:                               ## @.str.6
	.asciz	"No compatible switch found at 0x%02x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Found %s at %s:%02x\n"

L_.str.8:                               ## @.str.8
	.asciz	"Using %sdirect addressing\n"

L_.str.9:                               ## @.str.9
	.asciz	"in"

L_.str.10:                              ## @.str.10
	.space	1

L_.str.11:                              ## @.str.11
	.asciz	"cpu-port-0"

L_.str.12:                              ## @.str.12
	.asciz	"CPU port not set\n"

L_.str.13:                              ## @.str.13
	.asciz	"cpu-port-1"

	.comm	_MV_VLANS,4,2                   ## @MV_VLANS
	.comm	_MV_PORTS,4,2                   ## @MV_PORTS
	.comm	_mvsw61xx_ops,4,2               ## @mvsw61xx_ops
	.no_dead_strip	_mvsw61xx_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mvsw61xx_probe
l_switch.table.mvsw61xx_probe:
	.quad	_MV_IDENT_STR_6352
	.quad	_MV_IDENT_STR_6176
	.quad	_MV_IDENT_STR_6172
	.quad	_MV_IDENT_STR_6171

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvsw61xx_probe
_mvsw61xx_probe:                        ; @mvsw61xx_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_7
; %bb.2:
	bl	_of_mdio_find_bus
	str	x0, [x19, #88]
	cbz	x0, LBB0_8
; %bb.3:
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x19, #72]
	cbz	x0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_10
; %bb.5:
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_7:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_8:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_9:
	mov	x23, #0
Lloh18:
	adrp	x8, _MV_BASE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MV_BASE@GOTPAGEOFF]
Lloh20:
	ldr	x22, [x8]
	str	x22, [x19, #80]
	b	LBB0_11
LBB0_10:
	ldr	x22, [sp, #24]
	str	x22, [x19, #80]
	ldr	x23, [x19, #72]
LBB0_11:
	ldr	x24, [x19, #88]
Lloh21:
	adrp	x8, _IDENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IDENT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_MV_PORTREG
	mov	x3, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_r16
Lloh24:
	adrp	x8, _MV_IDENT_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MV_IDENT_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_14
; %bb.12:
Lloh27:
	adrp	x9, l_switch.table.mvsw61xx_probe@PAGE
Lloh28:
	add	x9, x9, l_switch.table.mvsw61xx_probe@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x22, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldp	x9, x8, [x19, #80]
	ldr	w8, [x8]
	stp	x8, x9, [sp]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_info
	ldr	x8, [x19, #72]
Lloh31:
	adrp	x9, l_.str.9@PAGE
Lloh32:
	add	x9, x9, l_.str.9@PAGEOFF
Lloh33:
	adrp	x10, l_.str.10@PAGE
Lloh34:
	add	x10, x10, l_.str.10@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_info
Lloh37:
	adrp	x1, l_.str.11@PAGE
Lloh38:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_18
; %bb.13:
Lloh39:
	adrp	x1, l_.str.12@PAGE
Lloh40:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	x8, [x19, #80]
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
Lloh43:
	adrp	x8, _ENODEV@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_16:
	mov	x0, x19
	bl	_kfree
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	x8, [sp, #24]
	str	x8, [x19, #64]
Lloh46:
	adrp	x1, l_.str.13@PAGE
Lloh47:
	add	x1, x1, l_.str.13@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	bl	_of_property_read_u32
	ldr	w8, [sp, #24]
	cmp	x0, #0
	csinv	w8, w8, wzr, eq
	mov	x21, x19
	str	x22, [x21, #16]!
Lloh48:
	adrp	x9, _MV_VLANS@GOTPAGE
Lloh49:
	ldr	x9, [x9, _MV_VLANS@GOTPAGEOFF]
	stur	w8, [x21, #-12]
Lloh50:
	ldr	w8, [x9]
	str	w8, [x21, #40]
	ldr	x8, [x19, #64]
Lloh51:
	adrp	x9, _MV_PORTS@GOTPAGE
Lloh52:
	ldr	x9, [x9, _MV_PORTS@GOTPAGEOFF]
	str	x8, [x21, #32]
Lloh53:
	ldr	w8, [x9]
	str	w8, [x21, #24]
Lloh54:
	adrp	x8, _mvsw61xx_ops@GOTPAGE
Lloh55:
	ldr	x8, [x8, _mvsw61xx_ops@GOTPAGEOFF]
	str	x8, [x21, #16]
	mov	x0, x20
	bl	_dev_name
	str	w0, [x21, #8]
	mov	w22, #1
	mov	x0, x21
	mov	w1, #1
	bl	__mvsw61xx_reset
	mov	x0, x21
	mov	x1, #0
	bl	_register_switch
	tbnz	w0, #31, LBB0_20
; %bb.19:
	mov	w20, #0
	str	w22, [x19, #8]
	b	LBB0_17
LBB0_20:
	mov	x20, x0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mii-bus"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get MII bus handle\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't find MII bus from handle\n"

l_.str.3:                               ; @.str.3
	.asciz	"is-indirect"

l_.str.4:                               ; @.str.4
	.asciz	"reg"

l_.str.5:                               ; @.str.5
	.asciz	"Switch address not specified\n"

	.comm	_MV_BASE,8,3                    ; @MV_BASE
	.comm	_IDENT,4,2                      ; @IDENT
	.comm	_MV_IDENT_MASK,4,2              ; @MV_IDENT_MASK
	.comm	_MV_IDENT_STR_6171,8,3          ; @MV_IDENT_STR_6171
	.comm	_MV_IDENT_STR_6172,8,3          ; @MV_IDENT_STR_6172
	.comm	_MV_IDENT_STR_6176,8,3          ; @MV_IDENT_STR_6176
	.comm	_MV_IDENT_STR_6352,8,3          ; @MV_IDENT_STR_6352
l_.str.6:                               ; @.str.6
	.asciz	"No compatible switch found at 0x%02x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Found %s at %s:%02x\n"

l_.str.8:                               ; @.str.8
	.asciz	"Using %sdirect addressing\n"

l_.str.9:                               ; @.str.9
	.asciz	"in"

l_.str.10:                              ; @.str.10
	.space	1

l_.str.11:                              ; @.str.11
	.asciz	"cpu-port-0"

l_.str.12:                              ; @.str.12
	.asciz	"CPU port not set\n"

l_.str.13:                              ; @.str.13
	.asciz	"cpu-port-1"

	.comm	_MV_VLANS,4,2                   ; @MV_VLANS
	.comm	_MV_PORTS,4,2                   ; @MV_PORTS
	.comm	_mvsw61xx_ops,4,2               ; @mvsw61xx_ops
	.no_dead_strip	_mvsw61xx_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mvsw61xx_probe
l_switch.table.mvsw61xx_probe:
	.quad	_MV_IDENT_STR_6352
	.quad	_MV_IDENT_STR_6176
	.quad	_MV_IDENT_STR_6172
	.quad	_MV_IDENT_STR_6171

.subsections_via_symbols
