	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_reset
_smsc95xx_reset:                        ## @smsc95xx_reset
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	24(%rdi), %rax
	movq	(%rax), %r13
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_2:
	movq	_HW_CFG_LRST_@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_HW_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_94
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r14d
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HW_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_smsc95xx_read_reg
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movl	$10, %edi
	callq	_msleep
	movl	(%r15), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$99, %r14d
	jb	LBB0_4
LBB0_10:
	cmpl	$99, %r14d
	jb	LBB0_13
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
LBB0_12:
	xorl	%eax, %eax
	callq	_devwarn
	jmp	LBB0_93
LBB0_94:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_13:
	movq	_PM_CTL_PHY_RST_@GOTPCREL(%rip), %rax
	movq	%rax, %r14
	movl	(%rax), %edx
	movq	_PM_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_95
## %bb.14:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_smsc95xx_read_reg
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	movl	$10, %edi
	callq	_msleep
	movl	(%r14), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$99, %ebx
	jb	LBB0_15
LBB0_20:
	cmpl	$99, %ebx
	jb	LBB0_22
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_95:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_22:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_smsc95xx_init_mac_address
	movq	%rbx, %rdi
	callq	_smsc95xx_set_mac_address
	testl	%eax, %eax
	js	LBB0_23
## %bb.24:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_26:
	movq	_HW_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_27
## %bb.28:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movl	-44(%rbp), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_30:
	movq	_HW_CFG_BIR_@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_31
## %bb.32:
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_27
## %bb.33:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movl	-44(%rbp), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_35:
	movq	_turbo_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_36
## %bb.37:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_USB_SPEED_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
## %bb.38:
	movq	_DEFAULT_HS_BURST_CAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_HS_USB_PKT_SIZE@GOTPCREL(%rip), %rsi
	jmp	LBB0_40
LBB0_23:
	movl	%eax, %r12d
	jmp	LBB0_93
LBB0_31:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_6
LBB0_36:
	movq	_MAX_SINGLE_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_41
LBB0_39:
	movq	_DEFAULT_FS_BURST_CAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FS_USB_PKT_SIZE@GOTPCREL(%rip), %rsi
LBB0_40:
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%eax, %r15d
LBB0_41:
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movl	(%rbx), %edx
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_43:
	movq	_BURST_CAP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_44
## %bb.45:
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.47:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	movl	-44(%rbp), %edx
	leaq	L_.str.14(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_49:
	movq	_DEFAULT_BULK_IN_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	_BULK_IN_DLY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_50
## %bb.51:
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_52
## %bb.53:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_55
## %bb.54:
	movl	-44(%rbp), %edx
	leaq	L_.str.17(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_55:
	movq	_HW_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_27
## %bb.56:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_58
## %bb.57:
	movl	-44(%rbp), %edx
	leaq	L_.str.18(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_58:
	movq	_turbo_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_59
## %bb.60:
	movq	_HW_CFG_MEF_@GOTPCREL(%rip), %rcx
	movq	_HW_CFG_BCE_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	-44(%rbp), %eax
	jmp	LBB0_61
LBB0_44:
	movl	%eax, %r12d
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_6
LBB0_46:
	movl	%eax, %r12d
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_6
LBB0_50:
	movl	%eax, %r12d
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_6
LBB0_52:
	movl	%eax, %r12d
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_6
LBB0_59:
	movl	-44(%rbp), %eax
LBB0_61:
	movq	_HW_CFG_RXDOFF_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$9, %edx
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_62
## %bb.63:
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_27
## %bb.64:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_66
## %bb.65:
	movl	-44(%rbp), %edx
	leaq	L_.str.20(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_66:
	movq	_INT_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_67
## %bb.68:
	movq	_ID_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_69
## %bb.70:
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_72
## %bb.71:
	movl	-44(%rbp), %edx
	leaq	L_.str.23(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_72:
	movq	_LED_GPIO_CFG_SPD_LED@GOTPCREL(%rip), %rax
	movq	_LED_GPIO_CFG_LNK_LED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LED_GPIO_CFG_FDX_LED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_LED_GPIO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_73
## %bb.74:
	movq	_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_75
## %bb.76:
	movq	_AFC_CFG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	_AFC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_77
## %bb.78:
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_79
## %bb.80:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VLAN1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_81
## %bb.82:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ethtool_op_set_tx_hw_csum
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_smsc95xx_set_csums
	testl	%eax, %eax
	js	LBB0_83
## %bb.84:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_smsc95xx_set_multicast
	movq	%rbx, %rdi
	callq	_smsc95xx_phy_initialize
	testq	%rax, %rax
	js	LBB0_85
## %bb.86:
	movq	_INT_EP_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_87
## %bb.88:
	movq	_INT_EP_CTL_PHY_INT_@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_89
## %bb.90:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_smsc95xx_start_tx_path
	movq	%rbx, %rdi
	callq	_smsc95xx_start_rx_path
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_91
## %bb.92:
	leaq	L_.str.32(%rip), %rsi
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_devdbg
	jmp	LBB0_93
LBB0_27:
	movl	%eax, %r12d
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
LBB0_7:
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_devwarn
LBB0_93:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_62:
	movl	%eax, %r12d
	leaq	L_.str.19(%rip), %rsi
	jmp	LBB0_6
LBB0_67:
	movl	%eax, %r12d
	leaq	L_.str.21(%rip), %rsi
	jmp	LBB0_6
LBB0_69:
	movl	%eax, %r12d
	leaq	L_.str.22(%rip), %rsi
	jmp	LBB0_6
LBB0_73:
	movl	%eax, %r12d
	leaq	L_.str.24(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_75:
	movl	%eax, %r12d
	leaq	L_.str.25(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_77:
	movl	%eax, %r12d
	leaq	L_.str.26(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_79:
	movl	%eax, %r12d
	leaq	L_.str.27(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_81:
	movl	%eax, %r12d
	leaq	L_.str.28(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_83:
	movl	%eax, %r12d
	leaq	L_.str.29(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_85:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_93
LBB0_87:
	movl	%eax, %r12d
	leaq	L_.str.30(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_89:
	movl	%eax, %r12d
	leaq	L_.str.31(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_91:
	xorl	%r12d, %r12d
	jmp	LBB0_93
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entering smsc95xx_reset"

	.comm	_HW_CFG_LRST_,4,2               ## @HW_CFG_LRST_
	.comm	_HW_CFG,4,2                     ## @HW_CFG
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write HW_CFG_LRST_ bit in HW_CFG register, ret = %d"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to read HW_CFG: %d"

L_.str.3:                               ## @.str.3
	.asciz	"timeout waiting for completion of Lite Reset"

	.comm	_PM_CTL_PHY_RST_,4,2            ## @PM_CTL_PHY_RST_
	.comm	_PM_CTRL,4,2                    ## @PM_CTRL
L_.str.4:                               ## @.str.4
	.asciz	"Failed to write PM_CTRL: %d"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to read PM_CTRL: %d"

L_.str.6:                               ## @.str.6
	.asciz	"timeout waiting for PHY Reset"

L_.str.7:                               ## @.str.7
	.asciz	"MAC Address: %pM"

L_.str.8:                               ## @.str.8
	.asciz	"Read Value from HW_CFG : 0x%08x"

	.comm	_HW_CFG_BIR_,4,2                ## @HW_CFG_BIR_
L_.str.9:                               ## @.str.9
	.asciz	"Failed to write HW_CFG_BIR_ bit in HW_CFG register, ret = %d"

L_.str.10:                              ## @.str.10
	.asciz	"Read Value from HW_CFG after writing HW_CFG_BIR_: 0x%08x"

	.comm	_turbo_mode,8,3                 ## @turbo_mode
	.comm	_MAX_SINGLE_PACKET_SIZE,4,2     ## @MAX_SINGLE_PACKET_SIZE
	.comm	_USB_SPEED_HIGH,8,3             ## @USB_SPEED_HIGH
	.comm	_DEFAULT_HS_BURST_CAP_SIZE,4,2  ## @DEFAULT_HS_BURST_CAP_SIZE
	.comm	_HS_USB_PKT_SIZE,4,2            ## @HS_USB_PKT_SIZE
	.comm	_DEFAULT_FS_BURST_CAP_SIZE,4,2  ## @DEFAULT_FS_BURST_CAP_SIZE
	.comm	_FS_USB_PKT_SIZE,4,2            ## @FS_USB_PKT_SIZE
L_.str.11:                              ## @.str.11
	.asciz	"rx_urb_size=%ld"

	.comm	_BURST_CAP,4,2                  ## @BURST_CAP
L_.str.12:                              ## @.str.12
	.asciz	"Failed to write BURST_CAP: %d"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to read BURST_CAP: %d"

L_.str.14:                              ## @.str.14
	.asciz	"Read Value from BURST_CAP after writing: 0x%08x"

	.comm	_DEFAULT_BULK_IN_DELAY,4,2      ## @DEFAULT_BULK_IN_DELAY
	.comm	_BULK_IN_DLY,4,2                ## @BULK_IN_DLY
L_.str.15:                              ## @.str.15
	.asciz	"ret = %d"

L_.str.16:                              ## @.str.16
	.asciz	"Failed to read BULK_IN_DLY: %d"

L_.str.17:                              ## @.str.17
	.asciz	"Read Value from BULK_IN_DLY after writing: 0x%08x"

L_.str.18:                              ## @.str.18
	.asciz	"Read Value from HW_CFG: 0x%08x"

	.comm	_HW_CFG_MEF_,4,2                ## @HW_CFG_MEF_
	.comm	_HW_CFG_BCE_,4,2                ## @HW_CFG_BCE_
	.comm	_HW_CFG_RXDOFF_,4,2             ## @HW_CFG_RXDOFF_
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
L_.str.19:                              ## @.str.19
	.asciz	"Failed to write HW_CFG register, ret=%d"

L_.str.20:                              ## @.str.20
	.asciz	"Read Value from HW_CFG after writing: 0x%08x"

	.comm	_INT_STS,4,2                    ## @INT_STS
L_.str.21:                              ## @.str.21
	.asciz	"Failed to write INT_STS register, ret=%d"

	.comm	_ID_REV,4,2                     ## @ID_REV
L_.str.22:                              ## @.str.22
	.asciz	"Failed to read ID_REV: %d"

L_.str.23:                              ## @.str.23
	.asciz	"ID_REV = 0x%08x"

	.comm	_LED_GPIO_CFG_SPD_LED,4,2       ## @LED_GPIO_CFG_SPD_LED
	.comm	_LED_GPIO_CFG_LNK_LED,4,2       ## @LED_GPIO_CFG_LNK_LED
	.comm	_LED_GPIO_CFG_FDX_LED,4,2       ## @LED_GPIO_CFG_FDX_LED
	.comm	_LED_GPIO_CFG,4,2               ## @LED_GPIO_CFG
L_.str.24:                              ## @.str.24
	.asciz	"Failed to write LED_GPIO_CFG register, ret=%d"

	.comm	_FLOW,4,2                       ## @FLOW
L_.str.25:                              ## @.str.25
	.asciz	"Failed to write FLOW: %d"

	.comm	_AFC_CFG_DEFAULT,4,2            ## @AFC_CFG_DEFAULT
	.comm	_AFC_CFG,4,2                    ## @AFC_CFG
L_.str.26:                              ## @.str.26
	.asciz	"Failed to write AFC_CFG: %d"

	.comm	_MAC_CR,4,2                     ## @MAC_CR
L_.str.27:                              ## @.str.27
	.asciz	"Failed to read MAC_CR: %d"

	.comm	_ETH_P_8021Q,8,3                ## @ETH_P_8021Q
	.comm	_VLAN1,4,2                      ## @VLAN1
L_.str.28:                              ## @.str.28
	.asciz	"Failed to write VAN1: %d"

L_.str.29:                              ## @.str.29
	.asciz	"Failed to set csum offload: %d"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_INT_EP_CTL,4,2                 ## @INT_EP_CTL
L_.str.30:                              ## @.str.30
	.asciz	"Failed to read INT_EP_CTL: %d"

	.comm	_INT_EP_CTL_PHY_INT_,4,2        ## @INT_EP_CTL_PHY_INT_
L_.str.31:                              ## @.str.31
	.asciz	"Failed to write INT_EP_CTL: %d"

L_.str.32:                              ## @.str.32
	.asciz	"smsc95xx_reset, return 0"

	.no_dead_strip	_smsc95xx_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_reset
_smsc95xx_reset:                        ; @smsc95xx_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldr	x20, [x0, #8]
	bl	_netif_msg_ifup
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_2:
Lloh2:
	adrp	x24, _HW_CFG_LRST_@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HW_CFG_LRST_@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh4:
	adrp	x23, _HW_CFG@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HW_CFG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	w25, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	mov	w0, #10
	bl	_msleep
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, #99
	b.lo	LBB0_4
LBB0_7:
	cmp	w25, #99
	b.lo	LBB0_13
; %bb.8:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x22, x0
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x8, x22
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_devwarn
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh12:
	adrp	x24, _PM_CTL_PHY_RST_@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PM_CTL_PHY_RST_@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh14:
	adrp	x25, _PM_CTRL@GOTPAGE
Lloh15:
	ldr	x25, [x25, _PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_20
; %bb.14:
	mov	w26, #-1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w26, w26, #1
	mov	w0, #10
	bl	_msleep
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w26, #99
	b.lo	LBB0_15
LBB0_18:
	cmp	w26, #99
	b.lo	LBB0_23
; %bb.19:
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_20:
	mov	x22, x0
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_devwarn
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_12
LBB0_22:
	mov	x8, x22
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_23:
	mov	x0, x19
	bl	_smsc95xx_init_mac_address
	mov	x0, x19
	bl	_smsc95xx_set_mac_address
	tbnz	w0, #31, LBB0_36
; %bb.24:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_26:
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_81
; %bb.27:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_29
; %bb.28:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_29:
Lloh26:
	adrp	x8, _HW_CFG_BIR_@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HW_CFG_BIR_@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_37
; %bb.30:
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_81
; %bb.31:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_33
; %bb.32:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_33:
Lloh31:
	adrp	x24, _turbo_mode@GOTPAGE
Lloh32:
	ldr	x24, [x24, _turbo_mode@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_38
; %bb.34:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh33:
	adrp	x9, _USB_SPEED_HIGH@GOTPAGE
Lloh34:
	ldr	x9, [x9, _USB_SPEED_HIGH@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_39
; %bb.35:
Lloh36:
	adrp	x8, _DEFAULT_HS_BURST_CAP_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DEFAULT_HS_BURST_CAP_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _HS_USB_PKT_SIZE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HS_USB_PKT_SIZE@GOTPAGEOFF]
	b	LBB0_40
LBB0_36:
	mov	x22, x0
	b	LBB0_12
LBB0_37:
	mov	x22, x0
	str	x22, [sp]
Lloh41:
	adrp	x1, l_.str.9@PAGE
Lloh42:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_21
LBB0_38:
	mov	w22, #0
Lloh43:
	adrp	x8, _MAX_SINGLE_PACKET_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MAX_SINGLE_PACKET_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	b	LBB0_41
LBB0_39:
Lloh46:
	adrp	x8, _DEFAULT_FS_BURST_CAP_SIZE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DEFAULT_FS_BURST_CAP_SIZE@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _FS_USB_PKT_SIZE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _FS_USB_PKT_SIZE@GOTPAGEOFF]
LBB0_40:
	ldr	w9, [x9]
	sdiv	w22, w8, w9
LBB0_41:
	str	w8, [x19]
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_43
; %bb.42:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh51:
	adrp	x1, l_.str.11@PAGE
Lloh52:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_43:
Lloh53:
	adrp	x25, _BURST_CAP@GOTPAGE
Lloh54:
	ldr	x25, [x25, _BURST_CAP@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x22
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_56
; %bb.44:
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_57
; %bb.45:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_47
; %bb.46:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh55:
	adrp	x1, l_.str.14@PAGE
Lloh56:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_47:
Lloh57:
	adrp	x8, _DEFAULT_BULK_IN_DELAY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DEFAULT_BULK_IN_DELAY@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	str	w2, [sp, #12]
Lloh60:
	adrp	x25, _BULK_IN_DLY@GOTPAGE
Lloh61:
	ldr	x25, [x25, _BULK_IN_DLY@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_58
; %bb.48:
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_59
; %bb.49:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_51
; %bb.50:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh62:
	adrp	x1, l_.str.17@PAGE
Lloh63:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_51:
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_81
; %bb.52:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_54
; %bb.53:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh64:
	adrp	x1, l_.str.18@PAGE
Lloh65:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_54:
	ldr	x8, [x24]
	cbz	x8, LBB0_60
; %bb.55:
Lloh66:
	adrp	x8, _HW_CFG_MEF_@GOTPAGE
Lloh67:
	ldr	x8, [x8, _HW_CFG_MEF_@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
Lloh69:
	adrp	x9, _HW_CFG_BCE_@GOTPAGE
Lloh70:
	ldr	x9, [x9, _HW_CFG_BCE_@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	b	LBB0_61
LBB0_56:
	mov	x22, x0
	str	x22, [sp]
Lloh72:
	adrp	x1, l_.str.12@PAGE
Lloh73:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_21
LBB0_57:
	mov	x22, x0
	str	x22, [sp]
Lloh74:
	adrp	x1, l_.str.13@PAGE
Lloh75:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_21
LBB0_58:
	mov	x22, x0
	str	x22, [sp]
Lloh76:
	adrp	x1, l_.str.15@PAGE
Lloh77:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_21
LBB0_59:
	mov	x22, x0
	str	x22, [sp]
Lloh78:
	adrp	x1, l_.str.16@PAGE
Lloh79:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_21
LBB0_60:
	ldr	w8, [sp, #12]
LBB0_61:
Lloh80:
	adrp	x9, _HW_CFG_RXDOFF_@GOTPAGE
Lloh81:
	ldr	x9, [x9, _HW_CFG_RXDOFF_@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh83:
	adrp	x9, _NET_IP_ALIGN@GOTPAGE
Lloh84:
	ldr	x9, [x9, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	orr	w2, w8, w9, lsl #9
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_82
; %bb.62:
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_81
; %bb.63:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_65
; %bb.64:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh86:
	adrp	x1, l_.str.20@PAGE
Lloh87:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_65:
Lloh88:
	adrp	x8, _INT_STS@GOTPAGE
Lloh89:
	ldr	x8, [x8, _INT_STS@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_83
; %bb.66:
Lloh91:
	adrp	x8, _ID_REV@GOTPAGE
Lloh92:
	ldr	x8, [x8, _ID_REV@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_84
; %bb.67:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_69
; %bb.68:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh94:
	adrp	x1, l_.str.23@PAGE
Lloh95:
	add	x1, x1, l_.str.23@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_69:
Lloh96:
	adrp	x8, _LED_GPIO_CFG_SPD_LED@GOTPAGE
Lloh97:
	ldr	x8, [x8, _LED_GPIO_CFG_SPD_LED@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
Lloh99:
	adrp	x9, _LED_GPIO_CFG_LNK_LED@GOTPAGE
Lloh100:
	ldr	x9, [x9, _LED_GPIO_CFG_LNK_LED@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
Lloh102:
	adrp	x10, _LED_GPIO_CFG_FDX_LED@GOTPAGE
Lloh103:
	ldr	x10, [x10, _LED_GPIO_CFG_FDX_LED@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh104:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh105:
	adrp	x8, _LED_GPIO_CFG@GOTPAGE
Lloh106:
	ldr	x8, [x8, _LED_GPIO_CFG@GOTPAGEOFF]
Lloh107:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_85
; %bb.70:
Lloh108:
	adrp	x8, _FLOW@GOTPAGE
Lloh109:
	ldr	x8, [x8, _FLOW@GOTPAGEOFF]
Lloh110:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_86
; %bb.71:
Lloh111:
	adrp	x8, _AFC_CFG_DEFAULT@GOTPAGE
Lloh112:
	ldr	x8, [x8, _AFC_CFG_DEFAULT@GOTPAGEOFF]
Lloh113:
	ldr	w2, [x8]
	str	w2, [sp, #12]
Lloh114:
	adrp	x8, _AFC_CFG@GOTPAGE
Lloh115:
	ldr	x8, [x8, _AFC_CFG@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_87
; %bb.72:
Lloh117:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh118:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
Lloh119:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_88
; %bb.73:
Lloh120:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh121:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh122:
	ldr	w2, [x8]
Lloh123:
	adrp	x8, _VLAN1@GOTPAGE
Lloh124:
	ldr	x8, [x8, _VLAN1@GOTPAGEOFF]
Lloh125:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_89
; %bb.74:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ethtool_op_set_tx_hw_csum
	mov	x0, x19
	bl	_smsc95xx_set_csums
	tbnz	w0, #31, LBB0_90
; %bb.75:
	ldr	x0, [x19, #8]
	bl	_smsc95xx_set_multicast
	mov	x0, x19
	bl	_smsc95xx_phy_initialize
	tbnz	x0, #63, LBB0_91
; %bb.76:
Lloh126:
	adrp	x20, _INT_EP_CTL@GOTPAGE
Lloh127:
	ldr	x20, [x20, _INT_EP_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_92
; %bb.77:
Lloh128:
	adrp	x8, _INT_EP_CTL_PHY_INT_@GOTPAGE
Lloh129:
	ldr	x8, [x8, _INT_EP_CTL_PHY_INT_@GOTPAGEOFF]
Lloh130:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_93
; %bb.78:
	mov	x0, x19
	bl	_smsc95xx_start_tx_path
	mov	x0, x19
	bl	_smsc95xx_start_rx_path
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_80
; %bb.79:
Lloh131:
	adrp	x1, l_.str.32@PAGE
Lloh132:
	add	x1, x1, l_.str.32@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_80:
	mov	w22, #0
	b	LBB0_12
LBB0_81:
	mov	x22, x0
	str	x22, [sp]
Lloh133:
	adrp	x1, l_.str.2@PAGE
Lloh134:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_82:
	mov	x22, x0
	str	x22, [sp]
Lloh135:
	adrp	x1, l_.str.19@PAGE
Lloh136:
	add	x1, x1, l_.str.19@PAGEOFF
	b	LBB0_21
LBB0_83:
	mov	x22, x0
	str	x22, [sp]
Lloh137:
	adrp	x1, l_.str.21@PAGE
Lloh138:
	add	x1, x1, l_.str.21@PAGEOFF
	b	LBB0_21
LBB0_84:
	mov	x22, x0
	str	x22, [sp]
Lloh139:
	adrp	x1, l_.str.22@PAGE
Lloh140:
	add	x1, x1, l_.str.22@PAGEOFF
	b	LBB0_21
LBB0_85:
	mov	x22, x0
	str	x22, [sp]
Lloh141:
	adrp	x1, l_.str.24@PAGE
Lloh142:
	add	x1, x1, l_.str.24@PAGEOFF
	b	LBB0_21
LBB0_86:
	mov	x22, x0
	str	x22, [sp]
Lloh143:
	adrp	x1, l_.str.25@PAGE
Lloh144:
	add	x1, x1, l_.str.25@PAGEOFF
	b	LBB0_21
LBB0_87:
	mov	x22, x0
	str	x22, [sp]
Lloh145:
	adrp	x1, l_.str.26@PAGE
Lloh146:
	add	x1, x1, l_.str.26@PAGEOFF
	b	LBB0_21
LBB0_88:
	mov	x22, x0
	str	x22, [sp]
Lloh147:
	adrp	x1, l_.str.27@PAGE
Lloh148:
	add	x1, x1, l_.str.27@PAGEOFF
	b	LBB0_21
LBB0_89:
	mov	x22, x0
	str	x22, [sp]
Lloh149:
	adrp	x1, l_.str.28@PAGE
Lloh150:
	add	x1, x1, l_.str.28@PAGEOFF
	b	LBB0_21
LBB0_90:
	mov	x22, x0
	str	x22, [sp]
Lloh151:
	adrp	x1, l_.str.29@PAGE
Lloh152:
	add	x1, x1, l_.str.29@PAGEOFF
	b	LBB0_21
LBB0_91:
Lloh153:
	adrp	x8, _EIO@GOTPAGE
Lloh154:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh155:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_92:
	mov	x22, x0
	str	x22, [sp]
Lloh156:
	adrp	x1, l_.str.30@PAGE
Lloh157:
	add	x1, x1, l_.str.30@PAGEOFF
	b	LBB0_21
LBB0_93:
	mov	x22, x0
	str	x22, [sp]
Lloh158:
	adrp	x1, l_.str.31@PAGE
Lloh159:
	add	x1, x1, l_.str.31@PAGEOFF
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGot	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpAdd	Lloh131, Lloh132
	.loh AdrpAdd	Lloh133, Lloh134
	.loh AdrpAdd	Lloh135, Lloh136
	.loh AdrpAdd	Lloh137, Lloh138
	.loh AdrpAdd	Lloh139, Lloh140
	.loh AdrpAdd	Lloh141, Lloh142
	.loh AdrpAdd	Lloh143, Lloh144
	.loh AdrpAdd	Lloh145, Lloh146
	.loh AdrpAdd	Lloh147, Lloh148
	.loh AdrpAdd	Lloh149, Lloh150
	.loh AdrpAdd	Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpAdd	Lloh156, Lloh157
	.loh AdrpAdd	Lloh158, Lloh159
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entering smsc95xx_reset"

	.comm	_HW_CFG_LRST_,4,2               ; @HW_CFG_LRST_
	.comm	_HW_CFG,4,2                     ; @HW_CFG
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write HW_CFG_LRST_ bit in HW_CFG register, ret = %d"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to read HW_CFG: %d"

l_.str.3:                               ; @.str.3
	.asciz	"timeout waiting for completion of Lite Reset"

	.comm	_PM_CTL_PHY_RST_,4,2            ; @PM_CTL_PHY_RST_
	.comm	_PM_CTRL,4,2                    ; @PM_CTRL
l_.str.4:                               ; @.str.4
	.asciz	"Failed to write PM_CTRL: %d"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to read PM_CTRL: %d"

l_.str.6:                               ; @.str.6
	.asciz	"timeout waiting for PHY Reset"

l_.str.7:                               ; @.str.7
	.asciz	"MAC Address: %pM"

l_.str.8:                               ; @.str.8
	.asciz	"Read Value from HW_CFG : 0x%08x"

	.comm	_HW_CFG_BIR_,4,2                ; @HW_CFG_BIR_
l_.str.9:                               ; @.str.9
	.asciz	"Failed to write HW_CFG_BIR_ bit in HW_CFG register, ret = %d"

l_.str.10:                              ; @.str.10
	.asciz	"Read Value from HW_CFG after writing HW_CFG_BIR_: 0x%08x"

	.comm	_turbo_mode,8,3                 ; @turbo_mode
	.comm	_MAX_SINGLE_PACKET_SIZE,4,2     ; @MAX_SINGLE_PACKET_SIZE
	.comm	_USB_SPEED_HIGH,8,3             ; @USB_SPEED_HIGH
	.comm	_DEFAULT_HS_BURST_CAP_SIZE,4,2  ; @DEFAULT_HS_BURST_CAP_SIZE
	.comm	_HS_USB_PKT_SIZE,4,2            ; @HS_USB_PKT_SIZE
	.comm	_DEFAULT_FS_BURST_CAP_SIZE,4,2  ; @DEFAULT_FS_BURST_CAP_SIZE
	.comm	_FS_USB_PKT_SIZE,4,2            ; @FS_USB_PKT_SIZE
l_.str.11:                              ; @.str.11
	.asciz	"rx_urb_size=%ld"

	.comm	_BURST_CAP,4,2                  ; @BURST_CAP
l_.str.12:                              ; @.str.12
	.asciz	"Failed to write BURST_CAP: %d"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to read BURST_CAP: %d"

l_.str.14:                              ; @.str.14
	.asciz	"Read Value from BURST_CAP after writing: 0x%08x"

	.comm	_DEFAULT_BULK_IN_DELAY,4,2      ; @DEFAULT_BULK_IN_DELAY
	.comm	_BULK_IN_DLY,4,2                ; @BULK_IN_DLY
l_.str.15:                              ; @.str.15
	.asciz	"ret = %d"

l_.str.16:                              ; @.str.16
	.asciz	"Failed to read BULK_IN_DLY: %d"

l_.str.17:                              ; @.str.17
	.asciz	"Read Value from BULK_IN_DLY after writing: 0x%08x"

l_.str.18:                              ; @.str.18
	.asciz	"Read Value from HW_CFG: 0x%08x"

	.comm	_HW_CFG_MEF_,4,2                ; @HW_CFG_MEF_
	.comm	_HW_CFG_BCE_,4,2                ; @HW_CFG_BCE_
	.comm	_HW_CFG_RXDOFF_,4,2             ; @HW_CFG_RXDOFF_
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
l_.str.19:                              ; @.str.19
	.asciz	"Failed to write HW_CFG register, ret=%d"

l_.str.20:                              ; @.str.20
	.asciz	"Read Value from HW_CFG after writing: 0x%08x"

	.comm	_INT_STS,4,2                    ; @INT_STS
l_.str.21:                              ; @.str.21
	.asciz	"Failed to write INT_STS register, ret=%d"

	.comm	_ID_REV,4,2                     ; @ID_REV
l_.str.22:                              ; @.str.22
	.asciz	"Failed to read ID_REV: %d"

l_.str.23:                              ; @.str.23
	.asciz	"ID_REV = 0x%08x"

	.comm	_LED_GPIO_CFG_SPD_LED,4,2       ; @LED_GPIO_CFG_SPD_LED
	.comm	_LED_GPIO_CFG_LNK_LED,4,2       ; @LED_GPIO_CFG_LNK_LED
	.comm	_LED_GPIO_CFG_FDX_LED,4,2       ; @LED_GPIO_CFG_FDX_LED
	.comm	_LED_GPIO_CFG,4,2               ; @LED_GPIO_CFG
l_.str.24:                              ; @.str.24
	.asciz	"Failed to write LED_GPIO_CFG register, ret=%d"

	.comm	_FLOW,4,2                       ; @FLOW
l_.str.25:                              ; @.str.25
	.asciz	"Failed to write FLOW: %d"

	.comm	_AFC_CFG_DEFAULT,4,2            ; @AFC_CFG_DEFAULT
	.comm	_AFC_CFG,4,2                    ; @AFC_CFG
l_.str.26:                              ; @.str.26
	.asciz	"Failed to write AFC_CFG: %d"

	.comm	_MAC_CR,4,2                     ; @MAC_CR
l_.str.27:                              ; @.str.27
	.asciz	"Failed to read MAC_CR: %d"

	.comm	_ETH_P_8021Q,8,3                ; @ETH_P_8021Q
	.comm	_VLAN1,4,2                      ; @VLAN1
l_.str.28:                              ; @.str.28
	.asciz	"Failed to write VAN1: %d"

l_.str.29:                              ; @.str.29
	.asciz	"Failed to set csum offload: %d"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_INT_EP_CTL,4,2                 ; @INT_EP_CTL
l_.str.30:                              ; @.str.30
	.asciz	"Failed to read INT_EP_CTL: %d"

	.comm	_INT_EP_CTL_PHY_INT_,4,2        ; @INT_EP_CTL_PHY_INT_
l_.str.31:                              ; @.str.31
	.asciz	"Failed to write INT_EP_CTL: %d"

l_.str.32:                              ; @.str.32
	.asciz	"smsc95xx_reset, return 0"

	.no_dead_strip	_smsc95xx_reset
.subsections_via_symbols
