	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_mdio_probe
_moxart_mdio_probe:                     ## @moxart_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movl	$4, %edi
	callq	_mdiobus_alloc_size
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	16(%r14), %r12
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_moxart_mdio_read@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	_moxart_mdio_write@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_moxart_mdio_reset@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movl	32(%rbx), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	movl	8(%r14), %r8d
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movq	%r12, 24(%rbx)
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:
	movq	16(%rbx), %rcx
	xorl	%edx, %edx
	movq	_PHY_IGNORE_INTERRUPT@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_4
LBB0_5:
	movq	8(%rbx), %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	callq	_PTR_ERR
LBB0_8:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mdiobus_free
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MOXA ART Ethernet MII"

	.comm	_moxart_mdio_read,4,2           ## @moxart_mdio_read
	.comm	_moxart_mdio_write,4,2          ## @moxart_mdio_write
	.comm	_moxart_mdio_reset,4,2          ## @moxart_mdio_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s-%d-mii"

	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
	.comm	_PHY_IGNORE_INTERRUPT,4,2       ## @PHY_IGNORE_INTERRUPT
	.no_dead_strip	_moxart_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_mdio_probe
_moxart_mdio_probe:                     ; @moxart_mdio_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x0
	ldr	x21, [x22, #16]!
	mov	w0, #4
	bl	_mdiobus_alloc_size
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh2:
	adrp	x8, _moxart_mdio_read@GOTPAGE
Lloh3:
	ldr	x8, [x8, _moxart_mdio_read@GOTPAGEOFF]
	str	x8, [x0, #56]
Lloh4:
	adrp	x8, _moxart_mdio_write@GOTPAGE
Lloh5:
	ldr	x8, [x8, _moxart_mdio_write@GOTPAGEOFF]
Lloh6:
	adrp	x9, _moxart_mdio_reset@GOTPAGE
Lloh7:
	ldr	x9, [x9, _moxart_mdio_reset@GOTPAGEOFF]
	stp	x9, x8, [x0, #40]
	ldr	w0, [x0, #32]
Lloh8:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x3, [x20]
	ldr	w4, [x20, #8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	str	x22, [x19, #24]
Lloh13:
	adrp	x8, _PHY_MAX_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PHY_MAX_ADDR@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #16]
Lloh15:
	adrp	x11, _PHY_IGNORE_INTERRUPT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _PHY_IGNORE_INTERRUPT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	ldr	x22, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x22]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x22]
	bl	_PTR_ERR
LBB0_6:
	mov	x21, x0
	mov	x0, x19
	bl	_mdiobus_free
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_of_mdiobus_register
	tbnz	w0, #31, LBB0_6
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MOXA ART Ethernet MII"

	.comm	_moxart_mdio_read,4,2           ; @moxart_mdio_read
	.comm	_moxart_mdio_write,4,2          ; @moxart_mdio_write
	.comm	_moxart_mdio_reset,4,2          ; @moxart_mdio_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s-%d-mii"

	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
	.comm	_PHY_IGNORE_INTERRUPT,4,2       ; @PHY_IGNORE_INTERRUPT
	.no_dead_strip	_moxart_mdio_probe
.subsections_via_symbols
