	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mscc_miim_probe
_mscc_miim_probe:                       ## @mscc_miim_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, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_mdiobus_alloc_size
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	_mscc_miim_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_mscc_miim_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_mscc_miim_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movl	24(%r12), %r13d
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, 16(%r12)
	movq	8(%r12), %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%rbx), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%rbx), %rdi
	jmp	LBB0_4
LBB0_12:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_14:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mscc_miim"

	.comm	_mscc_miim_read,4,2             ## @mscc_miim_read
	.comm	_mscc_miim_write,4,2            ## @mscc_miim_write
	.comm	_mscc_miim_reset,4,2            ## @mscc_miim_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s-mii"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to map MIIM registers\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to map internal phy registers\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot register MDIO bus (%d)\n"

	.no_dead_strip	_mscc_miim_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mscc_miim_probe
_mscc_miim_probe:                       ; @mscc_miim_probe
	.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, x0
Lloh0:
	adrp	x24, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #16
	bl	_devm_mdiobus_alloc_size
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh4:
	adrp	x8, _mscc_miim_read@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mscc_miim_read@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #36]
Lloh7:
	adrp	x8, _mscc_miim_write@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mscc_miim_write@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _mscc_miim_reset@GOTPAGE
Lloh11:
	ldr	x9, [x9, _mscc_miim_reset@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #28]
	ldr	w22, [x0, #24]
Lloh13:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
	str	x19, [x20, #16]
	ldr	x22, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	x0, [x22, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x22, #8]
LBB0_4:
	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_5:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.10:
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x22]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x22]
	b	LBB0_4
LBB0_12:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_of_mdiobus_register
	tbnz	w0, #31, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_8
LBB0_14:
	mov	x21, x0
	str	x21, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mscc_miim"

	.comm	_mscc_miim_read,4,2             ; @mscc_miim_read
	.comm	_mscc_miim_write,4,2            ; @mscc_miim_write
	.comm	_mscc_miim_reset,4,2            ; @mscc_miim_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s-mii"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to map MIIM registers\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to map internal phy registers\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot register MDIO bus (%d)\n"

	.no_dead_strip	_mscc_miim_probe
.subsections_via_symbols
