	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_open
_smsc911x_open:                         ## @smsc911x_open
	.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
	callq	_netdev_priv
	movq	%rax, %r13
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_smsc911x_mii_probe
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	callq	_smsc911x_soft_reset
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_WARN
	jmp	LBB0_26
LBB0_5:
	movq	_HW_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$327680, %edx                   ## imm = 0x50000
	callq	_smsc911x_reg_write
	movq	_AFC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$7223104, %edx                  ## imm = 0x6E3740
	callq	_smsc911x_reg_write
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_VLAN1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_smsc911x_mac_write
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_E2P_CMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_read
	movq	_E2P_CMD_EPC_BUSY_@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.7:
	movl	$-50, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_read
	testl	%eax, (%rbx)
	jne	LBB0_8
LBB0_10:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	jmp	LBB0_11
LBB0_2:
	movl	%eax, %r12d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_WARN
	jmp	LBB0_27
LBB0_6:
	xorl	%edi, %edi
LBB0_11:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_WARN
LBB0_13:
	movq	_GPIO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1879506944, %edx               ## imm = 0x70070000
	callq	_smsc911x_reg_write
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	16(%r14), %esi
	movq	%r13, %rdi
	callq	_smsc911x_set_hw_mac_address
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_smsc911x_disable_irq_chip
	movq	_INT_CFG_IRQ_EN_@GOTPCREL(%rip), %rax
	movl	$167772160, %r12d               ## imm = 0xA000000
	orl	(%rax), %r12d
	cmpq	$0, 40(%r13)
	movq	_ifup@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movq	_INT_CFG_IRQ_POL_@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
LBB0_16:
	cmpq	$0, 32(%r13)
	movl	(%r15), %esi
	je	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movq	_INT_CFG_IRQ_TYPE_@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.6(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
LBB0_19:
	movq	_INT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_smsc911x_reg_write
	movl	(%r15), %esi
	movl	8(%r14), %ecx
	leaq	L_.str.7(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movq	$0, 24(%r13)
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	8(%r14), %edi
	callq	_irq_get_trigger_type
	movq	_smsc911x_irqhandler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	8(%r14), %edi
	movl	12(%r14), %ecx
	movl	%eax, %edx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r12d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %ecx
	leaq	L_.str.8(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_WARN
LBB0_26:
	movq	(%r14), %rdi
	callq	_phy_disconnect
	movq	$0, (%r14)
LBB0_27:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_INT_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_read
	movq	_INT_EN_SW_INT_EN_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_smsc911x_reg_write
	movl	$-1000, %ebx                    ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%r13)
	jne	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$1, %edi
	callq	_msleep
	incl	%ebx
	jne	LBB0_22
## %bb.24:
	cmpq	$0, 24(%r13)
	je	LBB0_25
LBB0_28:
	movl	(%r15), %esi
	movl	8(%r14), %ecx
	leaq	L_.str.10(%rip), %rdx
	movq	%r12, %r15
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movq	16(%r13), %rdx
	movl	8(%r14), %ecx
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	$-1, (%r13)
	movq	(%r14), %rdi
	callq	_phy_start
	movq	_HW_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_read
	movq	_HW_CFG_TX_FIF_SZ_@GOTPCREL(%rip), %rcx
	movl	$4095, %edx                     ## imm = 0xFFF
	orl	(%rcx), %edx
	andl	%eax, %edx
	movq	_HW_CFG_SF_@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_write
	movq	_FIFO_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_read
	movq	_FIFO_INT_TX_AVAIL_LEVEL_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FIFO_INT_RX_STS_LEVEL_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_write
	movq	_RX_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	movq	%r13, %rdi
	callq	_smsc911x_reg_write
	movq	%r13, %rdi
	addq	$12, %rdi
	callq	_napi_enable
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_smsc911x_reg_read
	movq	_INT_EN_TDFA_EN_@GOTPCREL(%rip), %rcx
	movq	_INT_EN_RSFL_EN_@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_INT_EN_RXSTOP_INT_EN_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_smsc911x_reg_write
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_MAC_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_smsc911x_mac_read
	movq	_MAC_CR_TXEN_@GOTPCREL(%rip), %rcx
	movq	_MAC_CR_RXEN_@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_MAC_CR_HBDIS_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_smsc911x_mac_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_TX_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_CFG_TX_ON_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_smsc911x_reg_write
	movq	%r14, %rdi
	callq	_netif_start_queue
	jmp	LBB0_27
LBB0_25:
	movl	8(%r14), %edx
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movl	8(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error starting phy"

	.comm	_hw,4,2                         ## @hw
L_.str.1:                               ## @.str.1
	.asciz	"soft reset failed"

	.comm	_HW_CFG,4,2                     ## @HW_CFG
	.comm	_AFC_CFG,4,2                    ## @AFC_CFG
	.comm	_VLAN1,4,2                      ## @VLAN1
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_E2P_CMD,4,2                    ## @E2P_CMD
	.comm	_E2P_CMD_EPC_BUSY_,4,2          ## @E2P_CMD_EPC_BUSY_
	.comm	_ifup,4,2                       ## @ifup
L_.str.2:                               ## @.str.2
	.asciz	"Timed out waiting for EEPROM busy bit to clear"

	.comm	_GPIO_CFG,4,2                   ## @GPIO_CFG
	.comm	_INT_CFG_IRQ_EN_,4,2            ## @INT_CFG_IRQ_EN_
L_.str.3:                               ## @.str.3
	.asciz	"irq polarity: active high"

	.comm	_INT_CFG_IRQ_POL_,4,2           ## @INT_CFG_IRQ_POL_
L_.str.4:                               ## @.str.4
	.asciz	"irq polarity: active low"

L_.str.5:                               ## @.str.5
	.asciz	"irq type: push-pull"

	.comm	_INT_CFG_IRQ_TYPE_,4,2          ## @INT_CFG_IRQ_TYPE_
L_.str.6:                               ## @.str.6
	.asciz	"irq type: open drain"

	.comm	_INT_CFG,4,2                    ## @INT_CFG
L_.str.7:                               ## @.str.7
	.asciz	"Testing irq handler using IRQ %d"

	.comm	_smsc911x_irqhandler,4,2        ## @smsc911x_irqhandler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.8:                               ## @.str.8
	.asciz	"Unable to claim requested irq: %d"

	.comm	_INT_EN,4,2                     ## @INT_EN
	.comm	_INT_EN_SW_INT_EN_,4,2          ## @INT_EN_SW_INT_EN_
L_.str.9:                               ## @.str.9
	.asciz	"ISR failed signaling test (IRQ %d)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.10:                              ## @.str.10
	.asciz	"IRQ handler passed test using IRQ %d"

L_.str.11:                              ## @.str.11
	.asciz	"SMSC911x/921x identified at %#08lx, IRQ: %d\n"

	.comm	_HW_CFG_TX_FIF_SZ_,4,2          ## @HW_CFG_TX_FIF_SZ_
	.comm	_HW_CFG_SF_,4,2                 ## @HW_CFG_SF_
	.comm	_FIFO_INT,4,2                   ## @FIFO_INT
	.comm	_FIFO_INT_TX_AVAIL_LEVEL_,4,2   ## @FIFO_INT_TX_AVAIL_LEVEL_
	.comm	_FIFO_INT_RX_STS_LEVEL_,4,2     ## @FIFO_INT_RX_STS_LEVEL_
	.comm	_RX_CFG,4,2                     ## @RX_CFG
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_INT_EN_TDFA_EN_,4,2            ## @INT_EN_TDFA_EN_
	.comm	_INT_EN_RSFL_EN_,4,2            ## @INT_EN_RSFL_EN_
	.comm	_INT_EN_RXSTOP_INT_EN_,4,2      ## @INT_EN_RXSTOP_INT_EN_
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_MAC_CR_TXEN_,4,2               ## @MAC_CR_TXEN_
	.comm	_MAC_CR_RXEN_,4,2               ## @MAC_CR_RXEN_
	.comm	_MAC_CR_HBDIS_,4,2              ## @MAC_CR_HBDIS_
	.comm	_TX_CFG,4,2                     ## @TX_CFG
	.comm	_TX_CFG_TX_ON_,4,2              ## @TX_CFG_TX_ON_
	.no_dead_strip	_smsc911x_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_open
_smsc911x_open:                         ; @smsc911x_open
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_smsc911x_mii_probe
	tbnz	w0, #31, LBB0_9
LBB0_2:
	mov	x0, x20
	bl	_smsc911x_soft_reset
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh0:
	adrp	x8, _hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_4:
Lloh5:
	adrp	x23, _HW_CFG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HW_CFG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #327680
	bl	_smsc911x_reg_write
Lloh7:
	adrp	x8, _AFC_CFG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AFC_CFG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #14144
	movk	w2, #110, lsl #16
	bl	_smsc911x_reg_write
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irq
Lloh10:
	adrp	x8, _VLAN1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VLAN1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_smsc911x_mac_write
	mov	x0, x21
	bl	_spin_unlock_irq
Lloh16:
	adrp	x22, _E2P_CMD@GOTPAGE
Lloh17:
	ldr	x22, [x22, _E2P_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_reg_read
Lloh18:
	adrp	x24, _E2P_CMD_EPC_BUSY_@GOTPAGE
Lloh19:
	ldr	x24, [x24, _E2P_CMD_EPC_BUSY_@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.5:
	mov	w25, #-50
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	adds	w25, w25, #1
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_reg_read
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_6
LBB0_8:
	cmp	w25, #0
	cset	w0, eq
	b	LBB0_11
LBB0_9:
	mov	x22, x0
Lloh20:
	adrp	x8, _probe@GOTPAGE
Lloh21:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_SMSC_WARN
	b	LBB0_23
LBB0_10:
	mov	w0, #0
LBB0_11:
	bl	_unlikely
Lloh25:
	adrp	x24, _ifup@GOTPAGE
Lloh26:
	ldr	x24, [x24, _ifup@GOTPAGEOFF]
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x24]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_SMSC_WARN
LBB0_13:
Lloh29:
	adrp	x8, _GPIO_CFG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GPIO_CFG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1879506944
	bl	_smsc911x_reg_write
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_smsc911x_set_hw_mac_address
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_smsc911x_disable_irq_chip
Lloh32:
	adrp	x8, _INT_CFG_IRQ_EN_@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INT_CFG_IRQ_EN_@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	mov	w9, #167772160
	orr	w22, w8, w9
	ldr	x8, [x20, #40]
	ldr	w1, [x24]
	cbz	x8, LBB0_15
; %bb.14:
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_SMSC_TRACE
Lloh37:
	adrp	x8, _INT_CFG_IRQ_POL_@GOTPAGE
Lloh38:
	ldr	x8, [x8, _INT_CFG_IRQ_POL_@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w22, w8, w22
	b	LBB0_16
LBB0_15:
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_SMSC_TRACE
LBB0_16:
	ldr	x8, [x20, #32]
	ldr	w1, [x24]
	cbz	x8, LBB0_18
; %bb.17:
Lloh42:
	adrp	x2, l_.str.5@PAGE
Lloh43:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_SMSC_TRACE
Lloh44:
	adrp	x8, _INT_CFG_IRQ_TYPE_@GOTPAGE
Lloh45:
	ldr	x8, [x8, _INT_CFG_IRQ_TYPE_@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	orr	w22, w8, w22
	b	LBB0_19
LBB0_18:
Lloh47:
	adrp	x2, l_.str.6@PAGE
Lloh48:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_SMSC_TRACE
LBB0_19:
Lloh49:
	adrp	x8, _INT_CFG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _INT_CFG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_smsc911x_reg_write
	ldr	w1, [x24]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh52:
	adrp	x2, l_.str.7@PAGE
Lloh53:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_SMSC_TRACE
	str	xzr, [x20, #24]
	bl	_smp_wmb
	ldr	w0, [x19, #8]
	bl	_irq_get_trigger_type
Lloh54:
	adrp	x8, _smsc911x_irqhandler@GOTPAGE
Lloh55:
	ldr	x8, [x8, _smsc911x_irqhandler@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh58:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldp	w0, w3, [x19, #8]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_24
; %bb.20:
	mov	x22, x0
Lloh60:
	adrp	x8, _probe@GOTPAGE
Lloh61:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh63:
	adrp	x2, l_.str.8@PAGE
Lloh64:
	add	x2, x2, l_.str.8@PAGEOFF
LBB0_21:
	mov	x0, x20
	bl	_SMSC_WARN
LBB0_22:
	ldr	x0, [x19]
	bl	_phy_disconnect
	str	xzr, [x19]
LBB0_23:
	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_24:
Lloh65:
	adrp	x22, _INT_EN@GOTPAGE
Lloh66:
	ldr	x22, [x22, _INT_EN@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_reg_read
Lloh67:
	adrp	x8, _INT_EN_SW_INT_EN_@GOTPAGE
Lloh68:
	ldr	x8, [x8, _INT_EN_SW_INT_EN_@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_reg_write
	mov	w25, #-1000
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w0, #1
	bl	_msleep
	adds	w25, w25, #1
	b.lo	LBB0_25
; %bb.27:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_29
LBB0_28:
	ldr	w1, [x24]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh70:
	adrp	x2, l_.str.10@PAGE
Lloh71:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_SMSC_TRACE
	ldr	x2, [x20, #16]
	ldr	w3, [x19, #8]
Lloh72:
	adrp	x1, l_.str.11@PAGE
Lloh73:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x20]
	ldr	x0, [x19]
	bl	_phy_start
	ldr	w1, [x23]
	mov	x0, x20
	bl	_smsc911x_reg_read
Lloh74:
	adrp	x8, _HW_CFG_TX_FIF_SZ_@GOTPAGE
Lloh75:
	ldr	x8, [x8, _HW_CFG_TX_FIF_SZ_@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	orr	w8, w8, #0xfff
	and	w8, w8, w0
Lloh77:
	adrp	x9, _HW_CFG_SF_@GOTPAGE
Lloh78:
	ldr	x9, [x9, _HW_CFG_SF_@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x20
	bl	_smsc911x_reg_write
Lloh80:
	adrp	x23, _FIFO_INT@GOTPAGE
Lloh81:
	ldr	x23, [x23, _FIFO_INT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_smsc911x_reg_read
Lloh82:
	adrp	x8, _FIFO_INT_TX_AVAIL_LEVEL_@GOTPAGE
Lloh83:
	ldr	x8, [x8, _FIFO_INT_TX_AVAIL_LEVEL_@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh85:
	adrp	x9, _FIFO_INT_RX_STS_LEVEL_@GOTPAGE
Lloh86:
	ldr	x9, [x9, _FIFO_INT_RX_STS_LEVEL_@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x20
	bl	_smsc911x_reg_write
Lloh88:
	adrp	x8, _RX_CFG@GOTPAGE
Lloh89:
	ldr	x8, [x8, _RX_CFG@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
Lloh91:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh92:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh93:
	ldr	w8, [x8]
	lsl	w2, w8, #8
	mov	x0, x20
	bl	_smsc911x_reg_write
	add	x0, x20, #12
	bl	_napi_enable
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_reg_read
Lloh94:
	adrp	x8, _INT_EN_TDFA_EN_@GOTPAGE
Lloh95:
	ldr	x8, [x8, _INT_EN_TDFA_EN_@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
Lloh97:
	adrp	x9, _INT_EN_RSFL_EN_@GOTPAGE
Lloh98:
	ldr	x9, [x9, _INT_EN_RSFL_EN_@GOTPAGEOFF]
Lloh99:
	adrp	x10, _INT_EN_RXSTOP_INT_EN_@GOTPAGE
Lloh100:
	ldr	x10, [x10, _INT_EN_RXSTOP_INT_EN_@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
Lloh102:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w2, w8, w10
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_reg_write
	mov	x0, x21
	bl	_spin_lock_irq
Lloh103:
	adrp	x22, _MAC_CR@GOTPAGE
Lloh104:
	ldr	x22, [x22, _MAC_CR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_mac_read
Lloh105:
	adrp	x8, _MAC_CR_TXEN_@GOTPAGE
Lloh106:
	ldr	x8, [x8, _MAC_CR_TXEN_@GOTPAGEOFF]
Lloh107:
	ldr	w8, [x8]
Lloh108:
	adrp	x9, _MAC_CR_RXEN_@GOTPAGE
Lloh109:
	ldr	x9, [x9, _MAC_CR_RXEN_@GOTPAGEOFF]
Lloh110:
	adrp	x10, _MAC_CR_HBDIS_@GOTPAGE
Lloh111:
	ldr	x10, [x10, _MAC_CR_HBDIS_@GOTPAGEOFF]
Lloh112:
	ldr	w9, [x9]
Lloh113:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w2, w8, w10
	ldr	w1, [x22]
	mov	x0, x20
	bl	_smsc911x_mac_write
	mov	x0, x21
	bl	_spin_unlock_irq
Lloh114:
	adrp	x8, _TX_CFG@GOTPAGE
Lloh115:
	ldr	x8, [x8, _TX_CFG@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x8]
Lloh117:
	adrp	x8, _TX_CFG_TX_ON_@GOTPAGE
Lloh118:
	ldr	x8, [x8, _TX_CFG_TX_ON_@GOTPAGEOFF]
Lloh119:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_smsc911x_reg_write
	mov	x0, x19
	bl	_netif_start_queue
	mov	w22, #0
	b	LBB0_23
LBB0_29:
	ldr	w2, [x19, #8]
Lloh120:
	adrp	x1, l_.str.9@PAGE
Lloh121:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
Lloh122:
	adrp	x8, _ENODEV@GOTPAGE
Lloh123:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh124:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_22
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh112
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh101
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpAdd	Lloh120, Lloh121
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error starting phy"

	.comm	_hw,4,2                         ; @hw
l_.str.1:                               ; @.str.1
	.asciz	"soft reset failed"

	.comm	_HW_CFG,4,2                     ; @HW_CFG
	.comm	_AFC_CFG,4,2                    ; @AFC_CFG
	.comm	_VLAN1,4,2                      ; @VLAN1
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_E2P_CMD,4,2                    ; @E2P_CMD
	.comm	_E2P_CMD_EPC_BUSY_,4,2          ; @E2P_CMD_EPC_BUSY_
	.comm	_ifup,4,2                       ; @ifup
l_.str.2:                               ; @.str.2
	.asciz	"Timed out waiting for EEPROM busy bit to clear"

	.comm	_GPIO_CFG,4,2                   ; @GPIO_CFG
	.comm	_INT_CFG_IRQ_EN_,4,2            ; @INT_CFG_IRQ_EN_
l_.str.3:                               ; @.str.3
	.asciz	"irq polarity: active high"

	.comm	_INT_CFG_IRQ_POL_,4,2           ; @INT_CFG_IRQ_POL_
l_.str.4:                               ; @.str.4
	.asciz	"irq polarity: active low"

l_.str.5:                               ; @.str.5
	.asciz	"irq type: push-pull"

	.comm	_INT_CFG_IRQ_TYPE_,4,2          ; @INT_CFG_IRQ_TYPE_
l_.str.6:                               ; @.str.6
	.asciz	"irq type: open drain"

	.comm	_INT_CFG,4,2                    ; @INT_CFG
l_.str.7:                               ; @.str.7
	.asciz	"Testing irq handler using IRQ %d"

	.comm	_smsc911x_irqhandler,4,2        ; @smsc911x_irqhandler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.8:                               ; @.str.8
	.asciz	"Unable to claim requested irq: %d"

	.comm	_INT_EN,4,2                     ; @INT_EN
	.comm	_INT_EN_SW_INT_EN_,4,2          ; @INT_EN_SW_INT_EN_
l_.str.9:                               ; @.str.9
	.asciz	"ISR failed signaling test (IRQ %d)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.10:                              ; @.str.10
	.asciz	"IRQ handler passed test using IRQ %d"

l_.str.11:                              ; @.str.11
	.asciz	"SMSC911x/921x identified at %#08lx, IRQ: %d\n"

	.comm	_HW_CFG_TX_FIF_SZ_,4,2          ; @HW_CFG_TX_FIF_SZ_
	.comm	_HW_CFG_SF_,4,2                 ; @HW_CFG_SF_
	.comm	_FIFO_INT,4,2                   ; @FIFO_INT
	.comm	_FIFO_INT_TX_AVAIL_LEVEL_,4,2   ; @FIFO_INT_TX_AVAIL_LEVEL_
	.comm	_FIFO_INT_RX_STS_LEVEL_,4,2     ; @FIFO_INT_RX_STS_LEVEL_
	.comm	_RX_CFG,4,2                     ; @RX_CFG
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_INT_EN_TDFA_EN_,4,2            ; @INT_EN_TDFA_EN_
	.comm	_INT_EN_RSFL_EN_,4,2            ; @INT_EN_RSFL_EN_
	.comm	_INT_EN_RXSTOP_INT_EN_,4,2      ; @INT_EN_RXSTOP_INT_EN_
	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.comm	_MAC_CR_TXEN_,4,2               ; @MAC_CR_TXEN_
	.comm	_MAC_CR_RXEN_,4,2               ; @MAC_CR_RXEN_
	.comm	_MAC_CR_HBDIS_,4,2              ; @MAC_CR_HBDIS_
	.comm	_TX_CFG,4,2                     ; @TX_CFG
	.comm	_TX_CFG_TX_ON_,4,2              ; @TX_CFG_TX_ON_
	.no_dead_strip	_smsc911x_open
.subsections_via_symbols
