	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socfpga_dwmac_probe
_socfpga_dwmac_probe:                   ## @socfpga_dwmac_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_device_get_match_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_stmmac_get_platform_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_stmmac_probe_config_dt
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_reset_control_get_optional
	movq	%rax, 16(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_9:
	callq	_reset_control_deassert
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_socfpga_dwmac_parse_data
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_11:
	movq	%r15, 8(%r13)
	movq	%r13, 8(%r14)
	movq	_socfpga_dwmac_fix_mac_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_stmmac_dvr_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r12, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_stmmac_dvr_remove
LBB0_15:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_stmmac_remove_config_dt
	jmp	LBB0_16
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no of match data provided\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"stmmaceth-ocp"

L_.str.2:                               ## @.str.2
	.asciz	"error getting reset control of ocp %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to parse OF data\n"

	.comm	_socfpga_dwmac_fix_mac_speed,4,2 ## @socfpga_dwmac_fix_mac_speed
	.no_dead_strip	_socfpga_dwmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socfpga_dwmac_probe
_socfpga_dwmac_probe:                   ; @socfpga_dwmac_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	bl	_device_get_match_data
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_get_platform_resources
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_probe_config_dt
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_6:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.7:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get_optional
	str	x0, [x22, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22, #16]
	cbz	x8, LBB0_10
; %bb.8:
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_10:
	bl	_reset_control_deassert
	mov	x0, x22
	mov	x1, x19
	bl	_socfpga_dwmac_parse_data
	cbz	w0, LBB0_14
; %bb.11:
	mov	x23, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_stmmac_remove_config_dt
	b	LBB0_5
LBB0_14:
	str	x21, [x22, #8]
	str	x22, [x20, #8]
Lloh17:
	adrp	x8, _socfpga_dwmac_fix_mac_speed@GOTPAGE
Lloh18:
	ldr	x8, [x8, _socfpga_dwmac_fix_mac_speed@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_stmmac_dvr_probe
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.15:
	mov	x0, x19
	bl	_platform_get_drvdata
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	x8, [x21]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.16:
	mov	x0, x19
	bl	_stmmac_dvr_remove
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no of match data provided\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"stmmaceth-ocp"

l_.str.2:                               ; @.str.2
	.asciz	"error getting reset control of ocp %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to parse OF data\n"

	.comm	_socfpga_dwmac_fix_mac_speed,4,2 ; @socfpga_dwmac_fix_mac_speed
	.no_dead_strip	_socfpga_dwmac_probe
.subsections_via_symbols
