	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_ethqos_probe
_qcom_ethqos_probe:                     ## @qcom_ethqos_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, %r13
	movq	(%rdi), %r15
	leaq	-48(%rbp), %rsi
	callq	_stmmac_get_platform_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stmmac_probe_config_dt
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%r13, 24(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	_platform_get_resource_byname
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	16(%r12), %rdi
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movq	%r13, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 12(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_stmmac_remove_config_dt
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%r12)
	movq	%r12, %rdi
	callq	_ethqos_update_rgmii_clk
	movq	%r12, %rdi
	callq	_ethqos_set_func_clk_en
	movq	%r12, 16(%r14)
	movq	_ethqos_fix_mac_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movl	%eax, 8(%r14)
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_stmmac_dvr_probe
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_13
LBB0_11:
	movq	%r12, %rdi
	callq	_rgmii_dump
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dt configuration failed\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"rgmii"

L_.str.2:                               ## @.str.2
	.asciz	"Can't get rgmii base\n"

	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_ethqos_fix_mac_speed,4,2       ## @ethqos_fix_mac_speed
L_.str.3:                               ## @.str.3
	.asciz	"snps,tso"

	.no_dead_strip	_qcom_ethqos_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_ethqos_probe
_qcom_ethqos_probe:                     ; @qcom_ethqos_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
	ldr	x21, [x0]
	add	x1, sp, #8
	bl	_stmmac_get_platform_resources
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_probe_config_dt
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_10
LBB0_3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	str	x19, [x0, #24]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x22, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x22, #16]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x22, #12]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x22]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22]
	cbz	x8, LBB0_11
LBB0_8:
	bl	_PTR_ERR
	mov	x23, x0
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_stmmac_remove_config_dt
LBB0_10:
	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_11:
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.12:
Lloh17:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	str	w1, [x22, #8]
	mov	x0, x22
	bl	_ethqos_update_rgmii_clk
	mov	x0, x22
	bl	_ethqos_set_func_clk_en
	str	x22, [x20, #16]
Lloh20:
	adrp	x8, _ethqos_fix_mac_speed@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ethqos_fix_mac_speed@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	movi.2s	v0, #1
	str	d0, [x20]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	w0, [x20, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_stmmac_dvr_probe
	mov	x23, x0
	cbz	w0, LBB0_14
; %bb.13:
	ldr	x0, [x22]
	bl	_clk_disable_unprepare
	b	LBB0_9
LBB0_14:
	mov	x0, x22
	bl	_rgmii_dump
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dt configuration failed\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"rgmii"

l_.str.2:                               ; @.str.2
	.asciz	"Can't get rgmii base\n"

	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_ethqos_fix_mac_speed,4,2       ; @ethqos_fix_mac_speed
l_.str.3:                               ; @.str.3
	.asciz	"snps,tso"

	.no_dead_strip	_qcom_ethqos_probe
.subsections_via_symbols
