	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv3310_probe
_mv3310_probe:                          ## @mv3310_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_MDIO_DEVS_PMAPMD@GOTPCREL(%rip), %rax
	movq	_MDIO_DEVS_AN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	4(%rdi), %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_2
## %bb.5:
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MV_PMA_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	_MV_PMA_BOOT_FATAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mv3310_hwmon_probe             ## TAILCALL
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_DEVS_PMAPMD,4,2           ## @MDIO_DEVS_PMAPMD
	.comm	_MDIO_DEVS_AN,4,2               ## @MDIO_DEVS_AN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MV_PMA_BOOT,4,2                ## @MV_PMA_BOOT
	.comm	_MV_PMA_BOOT_FATAL,4,2          ## @MV_PMA_BOOT_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY failed to boot firmware, status=%04x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mv3310_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv3310_probe
_mv3310_probe:                          ; @mv3310_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MDIO_DEVS_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_DEVS_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MDIO_DEVS_AN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MDIO_DEVS_AN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0, #4]
	bics	wzr, w8, w9
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MV_PMA_BOOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MV_PMA_BOOT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	mov	x2, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh12:
	adrp	x8, _MV_PMA_BOOT_FATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MV_PMA_BOOT_FATAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_8
; %bb.4:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_5:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w2, w8
LBB0_7:
	mov	x0, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh19:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.9:
	mov	x1, x0
	mov	x0, x19
	bl	_dev_set_drvdata
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv3310_hwmon_probe
LBB0_10:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_DEVS_PMAPMD,4,2           ; @MDIO_DEVS_PMAPMD
	.comm	_MDIO_DEVS_AN,4,2               ; @MDIO_DEVS_AN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MV_PMA_BOOT,4,2                ; @MV_PMA_BOOT
	.comm	_MV_PMA_BOOT_FATAL,4,2          ; @MV_PMA_BOOT_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY failed to boot firmware, status=%04x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mv3310_probe
.subsections_via_symbols
