	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipq806x_gmac_of_parse
_ipq806x_gmac_of_parse:                 ## @ipq806x_gmac_of_parse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movl	(%r14), %edi
	callq	_of_get_phy_mode
	movq	%rax, 32(%rbx)
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_1
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	cmpl	$4, (%rbx)
	jl	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	24(%rbx), %rdi
	jmp	LBB0_9
LBB0_10:
	movq	24(%rbx), %rdi
	movl	$266000000, %esi                ## imm = 0xFDAD680
	callq	_clk_set_rate
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	16(%rbx), %rdi
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_14:
	movq	8(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing phy mode property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"qcom,id"

L_.str.2:                               ## @.str.2
	.asciz	"missing qcom id property\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid gmac id\n"

L_.str.4:                               ## @.str.4
	.asciz	"stmmaceth"

L_.str.5:                               ## @.str.5
	.asciz	"missing stmmaceth clk property\n"

L_.str.6:                               ## @.str.6
	.asciz	"qcom,nss-common"

L_.str.7:                               ## @.str.7
	.asciz	"missing nss-common node\n"

L_.str.8:                               ## @.str.8
	.asciz	"qcom,qsgmii-csr"

L_.str.9:                               ## @.str.9
	.asciz	"missing qsgmii-csr node\n"

	.no_dead_strip	_ipq806x_gmac_of_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipq806x_gmac_of_parse
_ipq806x_gmac_of_parse:                 ; @ipq806x_gmac_of_parse
	.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
	mov	x19, x0
	ldr	x20, [x0, #40]
	ldr	w0, [x20]
	bl	_of_get_phy_mode
	str	x0, [x19, #32]
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_of_property_read_u32
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.3:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #24]
	b	LBB0_11
LBB0_9:
	ldr	x0, [x19, #24]
	mov	w1, #54912
	movk	w1, #4058, lsl #16
	bl	_clk_set_rate
	ldr	w0, [x20]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_12:
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_14:
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing phy mode property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"qcom,id"

l_.str.2:                               ; @.str.2
	.asciz	"missing qcom id property\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid gmac id\n"

l_.str.4:                               ; @.str.4
	.asciz	"stmmaceth"

l_.str.5:                               ; @.str.5
	.asciz	"missing stmmaceth clk property\n"

l_.str.6:                               ; @.str.6
	.asciz	"qcom,nss-common"

l_.str.7:                               ; @.str.7
	.asciz	"missing nss-common node\n"

l_.str.8:                               ; @.str.8
	.asciz	"qcom,qsgmii-csr"

l_.str.9:                               ; @.str.9
	.asciz	"missing qsgmii-csr node\n"

	.no_dead_strip	_ipq806x_gmac_of_parse
.subsections_via_symbols
