	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_probe
_mv88e6xxx_probe:                       ## @mv88e6xxx_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, %rbx
	movq	8(%rdi), %r13
	movq	16(%rdi), %r15
	testq	%r13, %r13
	jne	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_2
LBB0_3:
	leaq	8(%rbx), %r12
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_of_device_get_match_data
	testq	%r15, %r15
	jne	LBB0_7
	jmp	LBB0_16
LBB0_4:
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_16
LBB0_7:
	movq	%r12, %rdi
	callq	_pdata_device_get_match_data
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.8:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_DSA_MAX_PORTS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.10:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r12), %edx
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movslq	%edx, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ecx
	btl	%r13d, %ecx
	jae	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%r13,4), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.56:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%r13,8)
LBB0_15:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_16:
	testq	%rax, %rax
	je	LBB0_2
LBB0_17:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_mv88e6xxx_alloc_chip
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%r14, 8(%rax)
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mv88e6xxx_smi_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_53
## %bb.20:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_53
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_53:
	testq	%r15, %r15
	je	LBB0_55
## %bb.54:
	movq	8(%r15), %rdi
	callq	_dev_put
	jmp	LBB0_55
LBB0_9:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_17
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_55:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
LBB0_24:
	movq	%r14, %r12
	movq	%r14, %rdi
	callq	_mv88e6xxx_detect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_53
## %bb.25:
	movq	%r12, %rdi
	callq	_mv88e6xxx_phy_init
	movq	8(%r12), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.26:
	testq	%r13, %r13
	je	LBB0_28
## %bb.27:
	addq	$16, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	movq	%r14, %r12
	jmp	LBB0_29
LBB0_28:
	movl	16(%r15), %eax
	movl	%eax, 16(%r12)
LBB0_29:
	movq	%r12, %rdi
	callq	_mv88e6xxx_reg_lock
	movq	%r12, %rdi
	callq	_mv88e6xxx_switch_reset
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mv88e6xxx_reg_unlock
	testl	%ebx, %ebx
	jne	LBB0_53
## %bb.30:
	testq	%r13, %r13
	je	LBB0_32
## %bb.31:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_of_irq_get
	movl	%eax, %ebx
	movl	%eax, (%r12)
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_53
LBB0_32:
	testq	%r15, %r15
	je	LBB0_34
## %bb.33:
	movl	4(%r15), %eax
	movl	%eax, (%r12)
LBB0_34:
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_lock
	movq	%r14, %r12
	cmpl	$0, (%r14)
	jle	LBB0_36
## %bb.35:
	movq	%r12, %rdi
	callq	_mv88e6xxx_g1_irq_setup
	jmp	LBB0_37
LBB0_36:
	movq	%r12, %rdi
	callq	_mv88e6xxx_irq_poll_setup
LBB0_37:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mv88e6xxx_reg_unlock
	testl	%ebx, %ebx
	jne	LBB0_53
## %bb.38:
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	jle	LBB0_40
## %bb.39:
	movq	%r14, %rdi
	callq	_mv88e6xxx_g2_irq_setup
	movq	%r14, %r12
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_50
LBB0_40:
	movq	%r12, %rdi
	callq	_mv88e6xxx_g1_atu_prob_irq_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_48
## %bb.41:
	movq	%r12, %rdi
	callq	_mv88e6xxx_g1_vtu_prob_irq_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_47
## %bb.42:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mv88e6xxx_mdios_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_46
## %bb.43:
	movq	%r12, %rdi
	callq	_mv88e6xxx_register_switch
	testl	%eax, %eax
	je	LBB0_44
## %bb.45:
	movl	%eax, %ebx
	movq	%r14, %r12
	movq	%r14, %rdi
	callq	_mv88e6xxx_mdios_unregister
LBB0_46:
	movq	%r12, %rdi
	callq	_mv88e6xxx_g1_vtu_prob_irq_free
LBB0_47:
	movq	%r12, %rdi
	callq	_mv88e6xxx_g1_atu_prob_irq_free
LBB0_48:
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	jle	LBB0_50
## %bb.49:
	movq	%r14, %rdi
	callq	_mv88e6xxx_g2_irq_free
	movq	%r14, %r12
LBB0_50:
	cmpl	$0, (%r12)
	jle	LBB0_52
## %bb.51:
	movq	%r12, %rdi
	callq	_mv88e6xxx_g1_irq_free
	jmp	LBB0_53
LBB0_52:
	movq	%r12, %rdi
	callq	_mv88e6xxx_irq_poll_free
	jmp	LBB0_53
LBB0_44:
	xorl	%ebx, %ebx
	jmp	LBB0_55
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DSA_MAX_PORTS,4,2              ## @DSA_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpu"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"eeprom-length"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_mv88e6xxx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_probe
_mv88e6xxx_probe:                       ; @mv88e6xxx_probe
	.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	x22, x0
	ldp	x19, x24, [x22, #8]!
	cmp	x19, #0
	ccmp	x24, #0, #0, eq
	b.eq	LBB0_17
; %bb.1:
	mov	x21, x0
	cbz	x19, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_of_device_get_match_data
	mov	x23, x0
	cbnz	x24, LBB0_4
	b	LBB0_12
LBB0_3:
	mov	x23, #0
	cbz	x24, LBB0_12
LBB0_4:
	mov	x0, x22
	bl	_pdata_device_get_match_data
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_17
; %bb.5:
	mov	x23, x0
Lloh0:
	adrp	x25, _DSA_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DSA_MAX_PORTS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x26, #0
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x25]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	lsr	w9, w9, w26
	tbz	w9, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24, #32]
	ldr	w0, [x8, x26, lsl #2]
	mov	x1, x20
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.11:
	ldr	x8, [x24, #8]
	ldr	x9, [x24, #24]
	str	x8, [x9, x26, lsl #3]
LBB0_12:
	cbz	x23, LBB0_17
; %bb.13:
	mov	x0, x22
	bl	_mv88e6xxx_alloc_chip
	cbz	x0, LBB0_19
; %bb.14:
	mov	x20, x0
	str	x23, [x0, #8]
	ldp	w2, w1, [x21]
	bl	_mv88e6xxx_smi_init
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.15:
Lloh4:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #24]
	cbz	x8, LBB0_22
; %bb.16:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_20
LBB0_17:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	mov	x0, x21
	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_19:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_20:
	cbz	x24, LBB0_18
; %bb.21:
	ldr	x0, [x24, #8]
	bl	_dev_put
	b	LBB0_18
LBB0_22:
	cbz	x0, LBB0_24
; %bb.23:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
LBB0_24:
	mov	x0, x20
	bl	_mv88e6xxx_detect
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.25:
	mov	x0, x20
	bl	_mv88e6xxx_phy_init
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_29
; %bb.26:
	cbz	x19, LBB0_28
; %bb.27:
	add	x2, x20, #16
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_u32
	b	LBB0_29
LBB0_28:
	ldr	w8, [x24, #16]
	str	w8, [x20, #16]
LBB0_29:
	mov	x0, x20
	bl	_mv88e6xxx_reg_lock
	mov	x0, x20
	bl	_mv88e6xxx_switch_reset
	mov	x21, x0
	mov	x0, x20
	bl	_mv88e6xxx_reg_unlock
	cbnz	w21, LBB0_20
; %bb.30:
	cbz	x19, LBB0_32
; %bb.31:
	mov	x0, x19
	mov	w1, #0
	bl	_of_irq_get
	mov	x21, x0
	str	w0, [x20]
Lloh17:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_20
LBB0_32:
	cbz	x24, LBB0_34
; %bb.33:
	ldr	w8, [x24, #4]
	str	w8, [x20]
LBB0_34:
	mov	x0, x20
	bl	_mv88e6xxx_reg_lock
	ldr	w8, [x20]
	mov	x0, x20
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.35:
	bl	_mv88e6xxx_g1_irq_setup
	b	LBB0_37
LBB0_36:
	bl	_mv88e6xxx_irq_poll_setup
LBB0_37:
	mov	x21, x0
	mov	x0, x20
	bl	_mv88e6xxx_reg_unlock
	cbnz	w21, LBB0_20
; %bb.38:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_40
; %bb.39:
	mov	x0, x20
	bl	_mv88e6xxx_g2_irq_setup
	mov	x21, x0
	cbnz	w0, LBB0_49
LBB0_40:
	mov	x0, x20
	bl	_mv88e6xxx_g1_atu_prob_irq_setup
	mov	x21, x0
	cbnz	w0, LBB0_47
; %bb.41:
	mov	x0, x20
	bl	_mv88e6xxx_g1_vtu_prob_irq_setup
	mov	x21, x0
	cbnz	w0, LBB0_46
; %bb.42:
	mov	x0, x20
	mov	x1, x19
	bl	_mv88e6xxx_mdios_register
	mov	x21, x0
	cbnz	w0, LBB0_45
; %bb.43:
	mov	x0, x20
	bl	_mv88e6xxx_register_switch
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.44:
	mov	x0, x20
	bl	_mv88e6xxx_mdios_unregister
LBB0_45:
	mov	x0, x20
	bl	_mv88e6xxx_g1_vtu_prob_irq_free
LBB0_46:
	mov	x0, x20
	bl	_mv88e6xxx_g1_atu_prob_irq_free
LBB0_47:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_49
; %bb.48:
	mov	x0, x20
	bl	_mv88e6xxx_g2_irq_free
LBB0_49:
	ldr	w8, [x20]
	mov	x0, x20
	cmp	w8, #1
	b.lt	LBB0_51
; %bb.50:
	bl	_mv88e6xxx_g1_irq_free
	b	LBB0_20
LBB0_51:
	bl	_mv88e6xxx_irq_poll_free
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DSA_MAX_PORTS,4,2              ; @DSA_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpu"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"eeprom-length"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_mv88e6xxx_probe
.subsections_via_symbols
