	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_mdio_probe
_sun4i_mdio_probe:                      ## @sun4i_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, %r14
	movq	(%rdi), %r15
	movl	$16, %edi
	callq	_mdiobus_alloc_size
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	_sun4i_mdio_read@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movq	_sun4i_mdio_write@GOTPCREL(%rip), %rax
	movq	%rax, 32(%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), %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_12:
	movq	%r12, %rdi
	callq	_mdiobus_free
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_12
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	$0, (%r13)
	jmp	LBB0_8
LBB0_7:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_8:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_10:
	movl	%eax, %ebx
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_regulator_disable
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sun4i_mii_bus"

	.comm	_sun4i_mdio_read,4,2            ## @sun4i_mdio_read
	.comm	_sun4i_mdio_write,4,2           ## @sun4i_mdio_write
	.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	"phy"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"no regulator found\n"

	.no_dead_strip	_sun4i_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_mdio_probe
_sun4i_mdio_probe:                      ; @sun4i_mdio_probe
	.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	x20, x0
	ldr	x21, [x0]
	mov	w0, #16
	bl	_mdiobus_alloc_size
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh2:
	adrp	x8, _sun4i_mdio_read@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sun4i_mdio_read@GOTPAGEOFF]
Lloh4:
	adrp	x9, _sun4i_mdio_write@GOTPAGE
Lloh5:
	ldr	x9, [x9, _sun4i_mdio_write@GOTPAGEOFF]
	stp	x9, x8, [x0, #32]
	ldr	w22, [x0, #24]
Lloh6:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x3, x0
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
	str	x20, [x19, #16]
	ldr	x23, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x23, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x23, #8]
	bl	_PTR_ERR
	mov	x22, x0
LBB0_3:
	mov	x0, x19
	bl	_mdiobus_free
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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_6:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x23]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x23]
	cbz	x8, LBB0_9
; %bb.7:
	bl	_PTR_ERR
	mov	x22, x0
Lloh16:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_3
; %bb.8:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	str	xzr, [x23]
	b	LBB0_10
LBB0_9:
	bl	_regulator_enable
	mov	x22, x0
	cbnz	w0, LBB0_3
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_of_mdiobus_register
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_5
LBB0_12:
	mov	x22, x0
	ldr	x0, [x23]
	cbz	x0, LBB0_3
; %bb.13:
	bl	_regulator_disable
	b	LBB0_3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sun4i_mii_bus"

	.comm	_sun4i_mdio_read,4,2            ; @sun4i_mdio_read
	.comm	_sun4i_mdio_write,4,2           ; @sun4i_mdio_write
	.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	"phy"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"no regulator found\n"

	.no_dead_strip	_sun4i_mdio_probe
.subsections_via_symbols
