	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_dt_mdio_probe
_emac_dt_mdio_probe:                    ## @emac_dt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	8(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	8(%r15), %rdi
	addq	$8, %rdi
	callq	_devm_mdiobus_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	16(%r15), %rcx
	movq	%rcx, 48(%rax)
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_emac_mii_bus_read@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rax)
	movq	_emac_mii_bus_write@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	_emac_mii_bus_reset@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movl	8(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rdx
	callq	_snprintf
	movq	(%r15), %rdi
	movq	%r14, %rsi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	8(%r15), %rdi
	addq	$8, %rdi
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	movq	8(%r15), %rdi
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio"

L_.str.1:                               ## @.str.1
	.asciz	"no mdio definition found."

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"emac_mdio"

	.comm	_emac_mii_bus_read,4,2          ## @emac_mii_bus_read
	.comm	_emac_mii_bus_write,4,2         ## @emac_mii_bus_write
	.comm	_emac_mii_bus_reset,4,2         ## @emac_mii_bus_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"cannot register MDIO bus %s (%d)"

	.no_dead_strip	_emac_dt_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_dt_mdio_probe
_emac_dt_mdio_probe:                    ; @emac_dt_mdio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_get_child_by_name
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_of_device_is_available
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
	bl	_devm_mdiobus_alloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.3:
	ldp	x9, x8, [x20, #8]
	str	x8, [x0, #48]
	ldr	w8, [x8]
	str	w8, [x0, #40]
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0]
Lloh4:
	adrp	x8, _emac_mii_bus_read@GOTPAGE
Lloh5:
	ldr	x8, [x8, _emac_mii_bus_read@GOTPAGEOFF]
	str	x8, [x0, #32]
Lloh6:
	adrp	x8, _emac_mii_bus_write@GOTPAGE
Lloh7:
	ldr	x8, [x8, _emac_mii_bus_write@GOTPAGEOFF]
Lloh8:
	adrp	x10, _emac_mii_bus_reset@GOTPAGE
Lloh9:
	ldr	x10, [x10, _emac_mii_bus_reset@GOTPAGEOFF]
	stp	x10, x8, [x0, #16]
	ldr	w0, [x0, #8]
Lloh10:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x3, [x9]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	ldr	x0, [x20]
	mov	x1, x19
	bl	_of_mdiobus_register
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.4:
	ldp	x9, x8, [x20]
	add	x0, x8, #8
	ldr	x8, [x9]
	stp	x8, x21, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_5:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_6:
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x19
	bl	_of_node_put
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio"

l_.str.1:                               ; @.str.1
	.asciz	"no mdio definition found."

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"emac_mdio"

	.comm	_emac_mii_bus_read,4,2          ; @emac_mii_bus_read
	.comm	_emac_mii_bus_write,4,2         ; @emac_mii_bus_write
	.comm	_emac_mii_bus_reset,4,2         ; @emac_mii_bus_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"cannot register MDIO bus %s (%d)"

	.no_dead_strip	_emac_dt_mdio_probe
.subsections_via_symbols
