	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_mii_init
_smsc9420_mii_init:                     ## @smsc9420_mii_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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_mdiobus_alloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_DRV_MDIONAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movl	24(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	(%rbx), %rdi
	movq	%rbx, 16(%rdi)
	movq	_smsc9420_mii_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_smsc9420_mii_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movl	$-3, (%rdi)
	callq	_mdiobus_register
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_warn
LBB0_6:
	movq	(%rbx), %rdi
	callq	_mdiobus_free
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	negl	%r15d
	movl	%r15d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_smsc9420_mii_probe
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_8
## %bb.5:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_warn
	movq	(%rbx), %rdi
	callq	_mdiobus_unregister
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRV_MDIONAME,4,2               ## @DRV_MDIONAME
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x"

	.comm	_smsc9420_mii_read,4,2          ## @smsc9420_mii_read
	.comm	_smsc9420_mii_write,4,2         ## @smsc9420_mii_write
	.comm	_probe,4,2                      ## @probe
L_.str.1:                               ## @.str.1
	.asciz	"Error registering mii bus\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error probing mii bus\n"

	.no_dead_strip	_smsc9420_mii_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_mii_init
_smsc9420_mii_init:                     ; @smsc9420_mii_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_mdiobus_alloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _DRV_MDIONAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRV_MDIONAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #28]
	ldr	w0, [x0, #24]
Lloh6:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w3, w8, w9, lsl #8
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	ldr	x0, [x19]
	str	x19, [x0, #16]
Lloh11:
	adrp	x8, _smsc9420_mii_read@GOTPAGE
Lloh12:
	ldr	x8, [x8, _smsc9420_mii_read@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #8]
Lloh14:
	adrp	x8, _smsc9420_mii_write@GOTPAGE
Lloh15:
	ldr	x8, [x8, _smsc9420_mii_write@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w9, #-3
	stp	w9, w8, [x0]
	bl	_mdiobus_register
	cbz	x0, LBB0_7
; %bb.2:
Lloh17:
	adrp	x8, _probe@GOTPAGE
Lloh18:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh20:
	adrp	x3, l_.str.1@PAGE
Lloh21:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_warn
LBB0_3:
	ldr	x0, [x19]
	bl	_mdiobus_free
	b	LBB0_5
LBB0_4:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
LBB0_5:
	neg	w0, w21
LBB0_6:
	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
LBB0_7:
	mov	x0, x20
	bl	_smsc9420_mii_probe
	tbnz	x0, #63, LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_6
LBB0_9:
Lloh25:
	adrp	x8, _probe@GOTPAGE
Lloh26:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh28:
	adrp	x3, l_.str.2@PAGE
Lloh29:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_warn
	ldr	x0, [x19]
	bl	_mdiobus_unregister
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRV_MDIONAME,4,2               ; @DRV_MDIONAME
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x"

	.comm	_smsc9420_mii_read,4,2          ; @smsc9420_mii_read
	.comm	_smsc9420_mii_write,4,2         ; @smsc9420_mii_write
	.comm	_probe,4,2                      ; @probe
l_.str.1:                               ; @.str.1
	.asciz	"Error registering mii bus\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error probing mii bus\n"

	.no_dead_strip	_smsc9420_mii_init
.subsections_via_symbols
