	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_dwmac_parse_data
_sti_dwmac_parse_data:                  ## @sti_dwmac_parse_data
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	(%rsi), %r12
	movl	%ecx, 52(%rdi)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.17:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	48(%r15), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_16
LBB0_5:
	movq	%r12, %rdi
	callq	_of_get_phy_mode
	movl	%eax, 16(%r15)
	movq	%rbx, 40(%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movq	%rax, 32(%r15)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movq	%rax, 24(%r15)
	movq	_TX_RETIME_SRC_NA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	16(%r15), %edi
	callq	_IS_PHY_IF_MODE_GBIT
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	_TX_RETIME_SRC_CLKGEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_TX_RETIME_SRC_TXCLK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_13
LBB0_9:
	movq	_TX_RETIME_SRC_CLK_125@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_13:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_14:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	$0, (%r15)
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sti-clkconf"

L_.str.1:                               ## @.str.1
	.asciz	"st,syscon"

L_.str.2:                               ## @.str.2
	.asciz	"Can't get sysconfig ctrl offset (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"st,gmac_en"

L_.str.4:                               ## @.str.4
	.asciz	"st,ext-phyclk"

	.comm	_TX_RETIME_SRC_NA,4,2           ## @TX_RETIME_SRC_NA
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_TX_RETIME_SRC_CLKGEN,4,2       ## @TX_RETIME_SRC_CLKGEN
L_.str.5:                               ## @.str.5
	.asciz	"st,tx-retime-src"

L_.str.6:                               ## @.str.6
	.asciz	"Use internal clock source\n"

L_.str.7:                               ## @.str.7
	.asciz	"clk_125"

	.comm	_TX_RETIME_SRC_CLK_125,4,2      ## @TX_RETIME_SRC_CLK_125
L_.str.8:                               ## @.str.8
	.asciz	"txclk"

	.comm	_TX_RETIME_SRC_TXCLK,4,2        ## @TX_RETIME_SRC_TXCLK
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
L_.str.9:                               ## @.str.9
	.asciz	"sti-ethclk"

L_.str.10:                              ## @.str.10
	.asciz	"No phy clock provided...\n"

	.no_dead_strip	_sti_dwmac_parse_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_dwmac_parse_data
_sti_dwmac_parse_data:                  ; @sti_dwmac_parse_data
	.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, x1
	mov	x20, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x0, #52]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0]
	str	w8, [x20, #52]
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	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
	b	_PTR_ERR
LBB0_4:
	add	x3, x20, #48
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_18
LBB0_6:
	mov	x0, x21
	bl	_of_get_phy_mode
	str	w0, [x20, #16]
	str	x22, [x20, #40]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x20, #32]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x20, #24]
Lloh18:
	adrp	x8, _TX_RETIME_SRC_NA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TX_RETIME_SRC_NA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	ldr	w0, [x20, #16]
	bl	_IS_PHY_IF_MODE_GBIT
	cbz	x0, LBB0_15
; %bb.7:
Lloh24:
	adrp	x8, _TX_RETIME_SRC_CLKGEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TX_RETIME_SRC_CLKGEN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	x21, [sp, #8]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	w0, LBB0_12
; %bb.9:
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbnz	w0, LBB0_14
; %bb.10:
Lloh33:
	adrp	x8, _TX_RETIME_SRC_TXCLK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TX_RETIME_SRC_TXCLK@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_14
LBB0_12:
Lloh37:
	adrp	x8, _TX_RETIME_SRC_CLK_125@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TX_RETIME_SRC_CLK_125@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x20, #12]
LBB0_14:
Lloh39:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_15:
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.16:
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	w23, #0
	str	xzr, [x20]
	b	LBB0_18
LBB0_17:
	mov	w23, #0
LBB0_18:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sti-clkconf"

l_.str.1:                               ; @.str.1
	.asciz	"st,syscon"

l_.str.2:                               ; @.str.2
	.asciz	"Can't get sysconfig ctrl offset (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"st,gmac_en"

l_.str.4:                               ; @.str.4
	.asciz	"st,ext-phyclk"

	.comm	_TX_RETIME_SRC_NA,4,2           ; @TX_RETIME_SRC_NA
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_TX_RETIME_SRC_CLKGEN,4,2       ; @TX_RETIME_SRC_CLKGEN
l_.str.5:                               ; @.str.5
	.asciz	"st,tx-retime-src"

l_.str.6:                               ; @.str.6
	.asciz	"Use internal clock source\n"

l_.str.7:                               ; @.str.7
	.asciz	"clk_125"

	.comm	_TX_RETIME_SRC_CLK_125,4,2      ; @TX_RETIME_SRC_CLK_125
l_.str.8:                               ; @.str.8
	.asciz	"txclk"

	.comm	_TX_RETIME_SRC_TXCLK,4,2        ; @TX_RETIME_SRC_TXCLK
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
l_.str.9:                               ; @.str.9
	.asciz	"sti-ethclk"

l_.str.10:                              ; @.str.10
	.asciz	"No phy clock provided...\n"

	.no_dead_strip	_sti_dwmac_parse_data
.subsections_via_symbols
