	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_shared_probe
_mv643xx_eth_shared_probe:              ## @mv643xx_eth_shared_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	_mv643xx_eth_shared_probe.mv643xx_eth_version_printed(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _mv643xx_eth_shared_probe.mv643xx_eth_version_printed(%rip)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_mv643xx_eth_driver_version@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_notice
LBB0_2:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_resource_size
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	4(%r14), %edi
	callq	_clk_prepare_enable
LBB0_7:
	xorl	%eax, %eax
	callq	_mv_mbus_dram_info
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mv643xx_eth_conf_mbus_windows
LBB0_9:
	movq	%r15, %rdi
	callq	_mv643xx_eth_shared_of_probe
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movl	4(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_15
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	movl	$9216, %eax                     ## imm = 0x2400
	cmovnel	%ecx, %eax
	jmp	LBB0_19
LBB0_18:
	movl	$9216, %eax                     ## imm = 0x2400
LBB0_19:
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_infer_hw_params
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mv643xx_eth_shared_probe.mv643xx_eth_version_printed,4,2 ## @mv643xx_eth_shared_probe.mv643xx_eth_version_printed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MV-643xx 10/100/1000 ethernet driver version %s\n"

	.comm	_mv643xx_eth_driver_version,4,2 ## @mv643xx_eth_driver_version
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mv643xx_eth_shared_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_shared_probe
_mv643xx_eth_shared_probe:              ; @mv643xx_eth_shared_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	adrp	x8, _mv643xx_eth_shared_probe.mv643xx_eth_version_printed@PAGE
	ldr	w9, [x8, _mv643xx_eth_shared_probe.mv643xx_eth_version_printed@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, _mv643xx_eth_shared_probe.mv643xx_eth_version_printed@PAGEOFF]
	cbnz	w9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _mv643xx_eth_driver_version@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mv643xx_eth_driver_version@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
LBB0_2:
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_13
; %bb.3:
	mov	x21, x0
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w22, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.5:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x20, #4]
	bl	_clk_prepare_enable
LBB0_7:
	bl	_mv_mbus_dram_info
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	mov	x0, x20
	bl	_mv643xx_eth_conf_mbus_windows
LBB0_9:
	mov	x0, x19
	bl	_mv643xx_eth_shared_of_probe
	cbz	w0, LBB0_16
; %bb.10:
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_15
; %bb.11:
	ldr	w0, [x20, #4]
	bl	_clk_disable_unprepare
	b	LBB0_15
LBB0_12:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x19
	bl	_dev_get_platdata
	mov	w8, #9216
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w9, [x0]
	cmp	w9, #0
	csel	w8, w8, w9, eq
LBB0_18:
	str	w8, [x20]
	mov	x0, x20
	bl	_infer_hw_params
	mov	w21, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mv643xx_eth_shared_probe.mv643xx_eth_version_printed,4,2 ; @mv643xx_eth_shared_probe.mv643xx_eth_version_printed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MV-643xx 10/100/1000 ethernet driver version %s\n"

	.comm	_mv643xx_eth_driver_version,4,2 ; @mv643xx_eth_driver_version
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mv643xx_eth_shared_probe
.subsections_via_symbols
