	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fe_mdio_init                   ## -- Begin function fe_mdio_init
	.p2align	4, 0x90
_fe_mdio_init:                          ## @fe_mdio_init
	.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	16(%rdi), %rax
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r15
	movq	_phy_ralink@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	%rbx, 24(%r15)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_of_device_is_available
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	_mdiobus_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movq	16(%r15), %rcx
	movups	(%rcx), %xmm0
	movups	%xmm0, 40(%rax)
	movq	_fe_mdio_reset@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	%r15, 24(%rax)
	movq	8(%r15), %rcx
	movq	%rcx, 16(%rax)
	movl	8(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rdx
	callq	_snprintf
	movq	(%r15), %rdi
	movq	%r14, %rsi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r12d
	movq	(%r15), %rdi
	callq	_kfree
	movl	%r12d, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_of_node_put
	movq	$0, (%r15)
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_ralink,4,2                 ## @phy_ralink
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio-bus"

L_.str.1:                               ## @.str.1
	.asciz	"no %s child node found"

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

	.comm	_fe_mdio_reset,4,2              ## @fe_mdio_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fe_mdio_init                   ; -- Begin function fe_mdio_init
	.p2align	2
_fe_mdio_init:                          ; @fe_mdio_init
	.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
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x20, _phy_ralink@GOTPAGE
Lloh1:
	ldr	x20, [x20, _phy_ralink@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_init
	str	x20, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_get_child_by_name
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	bl	_of_device_is_available
	cbz	w0, LBB0_9
; %bb.4:
	bl	_mdiobus_alloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.5:
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0]
	ldp	x9, x8, [x19, #8]
	ldr	q0, [x8]
	stur	q0, [x0, #40]
Lloh6:
	adrp	x8, _fe_mdio_reset@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fe_mdio_reset@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	stp	x9, x19, [x0, #16]
	ldr	w0, [x0, #8]
Lloh9:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x3, [x20]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	ldr	x0, [x19]
	mov	x1, x20
	bl	_of_mdiobus_register
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.6:
	ldr	x0, [x19]
	bl	_kfree
	b	LBB0_11
LBB0_7:
	mov	w21, #0
	b	LBB0_12
LBB0_8:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_9:
	mov	w21, #0
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x20
	bl	_of_node_put
	str	xzr, [x19]
LBB0_12:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_ralink,4,2                 ; @phy_ralink
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio-bus"

l_.str.1:                               ; @.str.1
	.asciz	"no %s child node found"

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

	.comm	_fe_mdio_reset,4,2              ; @fe_mdio_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%s"

.subsections_via_symbols
