	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_mdio_init
_lan78xx_mdio_init:                     ## @lan78xx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mdiobus_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, 24(%rax)
	movq	_lan78xx_mdiobus_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_lan78xx_mdiobus_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
	movl	12(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	callq	_snprintf
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.lan78xx_mdio_init(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 8(%rcx)
LBB0_4:
	movq	24(%rbx), %rax
	movl	4(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_of_get_child_by_name
	movq	%rax, %r15
	movq	8(%rbx), %rdi
	movq	%rax, %rsi
	callq	_of_mdiobus_register
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_of_node_put
	movl	16(%rbx), %edi
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_err
	movq	8(%rbx), %rdi
	callq	_mdiobus_free
	jmp	LBB0_7
LBB0_1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_6:
	movq	8(%rbx), %rax
	movl	12(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	callq	_netdev_dbg
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %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	"can't allocate MDIO bus\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lan78xx_mdiobus_read,4,2       ## @lan78xx_mdiobus_read
	.comm	_lan78xx_mdiobus_write,4,2      ## @lan78xx_mdiobus_write
L_.str.1:                               ## @.str.1
	.asciz	"lan78xx-mdiobus"

	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"usb-%03d:%03d"

L_.str.3:                               ## @.str.3
	.asciz	"mdio"

L_.str.4:                               ## @.str.4
	.asciz	"can't register MDIO bus\n"

L_.str.5:                               ## @.str.5
	.asciz	"registered mdiobus bus %s\n"

	.no_dead_strip	_lan78xx_mdio_init
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.lan78xx_mdio_init
l_switch.table.lan78xx_mdio_init:
	.long	4294967293                      ## 0xfffffffd
	.long	4294967040                      ## 0xffffff00
	.long	4294967293                      ## 0xfffffffd

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_mdio_init
_lan78xx_mdio_init:                     ; @lan78xx_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
	mov	x19, x0
	bl	_mdiobus_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _lan78xx_mdiobus_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lan78xx_mdiobus_read@GOTPAGEOFF]
	str	x19, [x0, #24]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _lan78xx_mdiobus_write@GOTPAGE
Lloh4:
	ldr	x9, [x9, _lan78xx_mdiobus_write@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0]
Lloh8:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
	ldr	w0, [x0, #12]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #8]
	ldr	w3, [x9]
	ldr	w4, [x8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_3
; %bb.2:
Lloh13:
	adrp	x9, l_switch.table.lan78xx_mdio_init@PAGE
Lloh14:
	add	x9, x9, l_switch.table.lan78xx_mdio_init@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	ldr	x9, [x19, #8]
	str	w8, [x9, #8]
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_get_child_by_name
	mov	x21, x0
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_of_mdiobus_register
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_put
	ldr	w0, [x19, #16]
	cbz	w20, LBB0_6
; %bb.4:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_err
	ldr	x0, [x19, #8]
	bl	_mdiobus_free
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #16]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #12]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_dbg
LBB0_7:
	mov	x0, x20
	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	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't allocate MDIO bus\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lan78xx_mdiobus_read,4,2       ; @lan78xx_mdiobus_read
	.comm	_lan78xx_mdiobus_write,4,2      ; @lan78xx_mdiobus_write
l_.str.1:                               ; @.str.1
	.asciz	"lan78xx-mdiobus"

	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"usb-%03d:%03d"

l_.str.3:                               ; @.str.3
	.asciz	"mdio"

l_.str.4:                               ; @.str.4
	.asciz	"can't register MDIO bus\n"

l_.str.5:                               ; @.str.5
	.asciz	"registered mdiobus bus %s\n"

	.no_dead_strip	_lan78xx_mdio_init
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.lan78xx_mdio_init
l_switch.table.lan78xx_mdio_init:
	.long	4294967293                      ; 0xfffffffd
	.long	4294967040                      ; 0xffffff00
	.long	4294967293                      ; 0xfffffffd

.subsections_via_symbols
