	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davinci_emac_of_get_pdata
_davinci_emac_of_get_pdata:             ## @davinci_emac_of_get_pdata
	.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, %r15
	movq	%rdi, %r14
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	8(%r14), %r12
	movq	_EMAC_VERSION_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	48(%rbx), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_of_get_mac_address
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	48(%rbx), %edi
	movq	%r13, %rsi
	callq	_ether_addr_copy
LBB0_7:
	leaq	44(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	leaq	40(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	leaq	36(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	leaq	32(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	movq	%rbx, %rdx
	addq	$28, %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u8
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movl	%eax, 24(%rbx)
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	12(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_14:
	movq	_davinci_emac_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_get_platdata               ## TAILCALL
LBB0_3:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	callq	_of_phy_is_fixed_link
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_of_phy_register_fixed_link
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_of_node_get
	movl	%eax, (%r15)
	jmp	LBB0_12
LBB0_9:
	movq	$0, 16(%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EMAC_VERSION_2,4,2             ## @EMAC_VERSION_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,davinci-ctrl-reg-offset"

L_.str.1:                               ## @.str.1
	.asciz	"ti,davinci-ctrl-mod-reg-offset"

L_.str.2:                               ## @.str.2
	.asciz	"ti,davinci-ctrl-ram-offset"

L_.str.3:                               ## @.str.3
	.asciz	"ti,davinci-ctrl-ram-size"

L_.str.4:                               ## @.str.4
	.asciz	"ti,davinci-rmii-en"

L_.str.5:                               ## @.str.5
	.asciz	"ti,davinci-no-bd-ram"

L_.str.6:                               ## @.str.6
	.asciz	"phy-handle"

	.comm	_davinci_emac_of_match,4,2      ## @davinci_emac_of_match
	.no_dead_strip	_davinci_emac_of_get_pdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function davinci_emac_of_get_pdata
_davinci_emac_of_get_pdata:             ; @davinci_emac_of_get_pdata
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.3:
	ldr	x22, [x19, #8]
Lloh6:
	adrp	x8, _EMAC_VERSION_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EMAC_VERSION_2@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w0, [x20, #48]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_of_get_mac_address
	mov	x23, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x20, #48]
	mov	x1, x23
	bl	_ether_addr_copy
LBB0_6:
	add	x2, x20, #44
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	add	x2, x20, #40
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	add	x2, x20, #36
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	add	x2, x20, #32
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	add	x2, x20, #28
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u8
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	w0, [x20, #24]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_of_parse_phandle
	str	w0, [x21]
	cbz	w0, LBB0_14
LBB0_7:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	d0, [x8, #8]
	str	d0, [x20, #8]
LBB0_9:
Lloh23:
	adrp	x8, _davinci_emac_of_match@GOTPAGE
Lloh24:
	ldr	x8, [x8, _davinci_emac_of_match@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	d0, [x8]
	str	d0, [x20]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_get_platdata
LBB0_14:
	mov	x0, x22
	bl	_of_phy_is_fixed_link
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x22
	bl	_of_phy_register_fixed_link
	tbnz	x0, #63, LBB0_7
; %bb.16:
	mov	x0, x22
	bl	_of_node_get
	str	w0, [x21]
	b	LBB0_7
LBB0_17:
	str	xzr, [x20, #16]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EMAC_VERSION_2,4,2             ; @EMAC_VERSION_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,davinci-ctrl-reg-offset"

l_.str.1:                               ; @.str.1
	.asciz	"ti,davinci-ctrl-mod-reg-offset"

l_.str.2:                               ; @.str.2
	.asciz	"ti,davinci-ctrl-ram-offset"

l_.str.3:                               ; @.str.3
	.asciz	"ti,davinci-ctrl-ram-size"

l_.str.4:                               ; @.str.4
	.asciz	"ti,davinci-rmii-en"

l_.str.5:                               ; @.str.5
	.asciz	"ti,davinci-no-bd-ram"

l_.str.6:                               ; @.str.6
	.asciz	"phy-handle"

	.comm	_davinci_emac_of_match,4,2      ; @davinci_emac_of_match
	.no_dead_strip	_davinci_emac_of_get_pdata
.subsections_via_symbols
