	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davinci_mdio_probe
_davinci_mdio_probe:                    ## @davinci_mdio_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, %r15
	leaq	16(%rdi), %r13
	movq	%r13, %rdi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_devm_mdiobus_alloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	addq	$36, %rdi
	movq	%r15, %rsi
	callq	_davinci_mdio_probe_dt
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movq	8(%r14), %rax
	movl	32(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_davinci_mdio_of_mtable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_of_match_device
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.9:
	movq	_default_pdata@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %eax
	movl	%eax, 36(%r14)
	movq	8(%r14), %rax
	movl	32(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$-1, %ebx
LBB0_11:
	movq	%r13, %rdi
	callq	_dev_name
	movq	8(%r14), %rcx
	movl	%eax, 28(%rcx)
	movq	_davinci_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	_davinci_mdio_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	_davinci_mdio_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	%r13, 8(%rcx)
	movq	%r14, (%rcx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movl	%eax, 32(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	32(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_15:
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	%r13, 24(%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_23
## %bb.18:
	movq	%r14, %rdi
	callq	_davinci_mdio_init_clk
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r13, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r13, %rdi
	callq	_pm_runtime_enable
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.19:
	callq	_of_get_child_count
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	$1, (%r14)
LBB0_21:
	movq	8(%r14), %rdi
	movq	(%r13), %rsi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_pm_runtime_dont_use_autosuspend
	movq	%r13, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_16
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_24:
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_31
## %bb.25:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_info
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	incl	%ebx
	xorl	%r12d, %r12d
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_16
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movl	%ebx, %esi
	callq	_mdiobus_get_phy
	testq	%rax, %rax
	je	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%rax, %r15
	movl	8(%rax), %r12d
	movq	%rax, %rdi
	callq	_phydev_name
	movq	(%r15), %rcx
	leaq	L_.str.6(%rip), %r8
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	(%rcx), %r8
	jmp	LBB0_26
LBB0_31:
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to alloc mii bus\n"

	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_davinci_mdio_of_mtable,4,2     ## @davinci_mdio_of_mtable
	.comm	_default_pdata,4,2              ## @default_pdata
L_.str.2:                               ## @.str.2
	.asciz	"%s-%x"

	.comm	_davinci_mdio_read,4,2          ## @davinci_mdio_read
	.comm	_davinci_mdio_write,4,2         ## @davinci_mdio_write
	.comm	_davinci_mdio_reset,4,2         ## @davinci_mdio_reset
L_.str.3:                               ## @.str.3
	.asciz	"fck"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get device clock\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
L_.str.5:                               ## @.str.5
	.asciz	"phy[%d]: device %s, driver %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"unknown"

	.no_dead_strip	_davinci_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function davinci_mdio_probe
_davinci_mdio_probe:                    ; @davinci_mdio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_mdiobus_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.2:
Lloh3:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.4:
	add	x0, x20, #36
	mov	x1, x21
	bl	_davinci_mdio_probe_dt
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #32]
Lloh6:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x3, [x21]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
Lloh11:
	adrp	x8, _davinci_mdio_of_mtable@GOTPAGE
Lloh12:
	ldr	x8, [x8, _davinci_mdio_of_mtable@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _default_pdata@GOTPAGE
Lloh15:
	ldr	x8, [x8, _default_pdata@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x8, x22, eq
	ldr	w8, [x8]
	str	w8, [x20, #36]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #32]
Lloh16:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	x3, [x21]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
LBB0_9:
	mov	w22, #-1
LBB0_10:
	mov	x0, x19
	bl	_dev_name
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x9, _davinci_mdio_read@GOTPAGE
Lloh22:
	ldr	x9, [x9, _davinci_mdio_read@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w0, [x8, #24]
Lloh24:
	adrp	x9, _davinci_mdio_write@GOTPAGE
Lloh25:
	ldr	x9, [x9, _davinci_mdio_write@GOTPAGEOFF]
Lloh26:
	adrp	x10, _davinci_mdio_reset@GOTPAGE
Lloh27:
	ldr	x10, [x10, _davinci_mdio_reset@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
	stp	x20, x19, [x8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #32]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_12:
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	str	x19, [x20, #24]
Lloh39:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	ldr	w21, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap
	str	w0, [x20, #16]
	cbz	w0, LBB0_13
; %bb.16:
	mov	x0, x20
	bl	_davinci_mdio_init_clk
	mov	x0, x19
	mov	x1, x22
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	x0, [x19]
	cbz	x0, LBB0_19
; %bb.17:
	bl	_of_get_child_count
	cbz	x0, LBB0_19
; %bb.18:
	mov	w8, #1
	str	w8, [x20]
LBB0_19:
	ldr	x0, [x20, #8]
	ldr	x1, [x19]
	bl	_of_mdiobus_register
	cbz	w0, LBB0_21
; %bb.20:
	mov	x23, x0
	mov	x0, x19
	bl	_pm_runtime_dont_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_14
LBB0_21:
Lloh42:
	adrp	x25, _PHY_MAX_ADDR@GOTPAGE
Lloh43:
	ldr	x25, [x25, _PHY_MAX_ADDR@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.22:
	mov	w21, #0
Lloh44:
	adrp	x26, l_.str.6@PAGE
Lloh45:
	add	x26, x26, l_.str.6@PAGEOFF
Lloh46:
	adrp	x22, l_.str.5@PAGE
Lloh47:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_26
LBB0_23:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x4, [x8]
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_dev_info
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	w23, #0
	add	w21, w21, #1
	ldr	w8, [x25]
	cmp	w21, w8
	b.ge	LBB0_14
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_mdiobus_get_phy
	cbz	x0, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x24, x0
	ldr	w23, [x0, #8]
	bl	_phydev_name
	mov	x3, x0
	ldr	x8, [x24]
	cbnz	x8, LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x4, x26
	b	LBB0_24
LBB0_29:
	mov	w23, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to alloc mii bus\n"

	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_davinci_mdio_of_mtable,4,2     ; @davinci_mdio_of_mtable
	.comm	_default_pdata,4,2              ; @default_pdata
l_.str.2:                               ; @.str.2
	.asciz	"%s-%x"

	.comm	_davinci_mdio_read,4,2          ; @davinci_mdio_read
	.comm	_davinci_mdio_write,4,2         ; @davinci_mdio_write
	.comm	_davinci_mdio_reset,4,2         ; @davinci_mdio_reset
l_.str.3:                               ; @.str.3
	.asciz	"fck"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get device clock\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
l_.str.5:                               ; @.str.5
	.asciz	"phy[%d]: device %s, driver %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"unknown"

	.no_dead_strip	_davinci_mdio_probe
.subsections_via_symbols
