	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_probe
_alx_probe:                             ## @alx_probe
	.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	%rsi, %r15
	movq	%rdi, %r13
	callq	_pci_enable_device_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_37
## %bb.1:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_dbg
LBB0_3:
	movq	_alx_drv_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_pci_request_mem_regions
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_33
LBB0_8:
	movq	%r13, %rdi
	callq	_pci_enable_pcie_error_reporting
	movq	%r13, %rdi
	callq	_pci_set_master
	cmpl	$0, 8(%r13)
	je	LBB0_9
## %bb.10:
	movq	_ALX_MAX_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$112, %edi
	movl	$1, %edx
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	88(%rax), %rdi
	callq	_spin_lock_init
	leaq	108(%r12), %rdi
	callq	_spin_lock_init
	leaq	104(%r12), %rdi
	callq	_spin_lock_init
	movq	%r14, 96(%r12)
	movq	%r13, 80(%r12)
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_MSG_TX_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_MSG_RX_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_MSG_WOL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_pci_set_drvdata
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_pci_ioremap_bar
	movl	%eax, 16(%r12)
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	_alx_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	_alx_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movl	%eax, 20(%r14)
	movq	_ALX_WATCHDOG_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_16
## %bb.15:
	movq	_PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r13)
LBB0_16:
	leaq	16(%r12), %r15
	movq	%r12, %rdi
	callq	_alx_init_sw
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
LBB0_18:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_19:
	movq	%r15, %rdi
	callq	_alx_reset_pcie
	movq	%r15, %rdi
	callq	_alx_phy_configured
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_20
## %bb.23:
	callq	_alx_reset_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
LBB0_26:
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	64(%r12), %esi
	movq	%r15, %rdi
	callq	_alx_get_perm_macaddr
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_eth_hw_addr_random
	movl	64(%r12), %edi
	movl	4(%r14), %esi
	movl	12(%r14), %edx
	callq	_memcpy
LBB0_28:
	movl	64(%r12), %esi
	movl	68(%r12), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	movl	4(%r14), %edi
	movl	68(%r12), %esi
	movl	(%rbx), %edx
	callq	_memcpy
	movl	8(%r14), %edi
	movl	64(%r12), %esi
	movl	(%rbx), %edx
	callq	_memcpy
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movq	%r14, 40(%r12)
	movq	_MDIO_SUPPORTS_C45@GOTPCREL(%rip), %rax
	movq	_MDIO_SUPPORTS_C22@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MDIO_EMULATE_C22@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%r12)
	movq	_alx_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_alx_mdio_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	%r15, %rdi
	callq	_alx_get_phy_info
	testl	%eax, %eax
	je	LBB0_29
## %bb.34:
	leaq	8(%r12), %rdi
	movq	_alx_link_check@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	addq	$4, %r12
	movq	_alx_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_WORK
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_18
LBB0_20:
	callq	_alx_reset_phy
	movq	%r15, %rdi
	callq	_alx_reset_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_21
LBB0_24:
	leaq	L_.str.6(%rip), %rsi
LBB0_25:
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_30:
	movl	(%r15), %edi
	callq	_iounmap
LBB0_31:
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_32:
	movq	%r13, %rdi
	callq	_pci_release_mem_regions
LBB0_33:
	movq	%r13, %rdi
	callq	_pci_disable_device
LBB0_37:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	72(%r12), %edx
	movl	76(%r12), %esi
	movq	%r15, %rdi
	callq	_alx_setup_speed_duplex
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_25
LBB0_29:
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_36:
	movl	4(%r14), %edx
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	xorl	%ebx, %ebx
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA to 64-BIT addresses\n"

L_.str.1:                               ## @.str.1
	.asciz	"No usable DMA config, aborting\n"

	.comm	_alx_drv_name,4,2               ## @alx_drv_name
L_.str.2:                               ## @.str.2
	.asciz	"pci_request_mem_regions failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"Can't find power management capability, aborting\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ALX_MAX_TX_QUEUES,4,2          ## @ALX_MAX_TX_QUEUES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_TX_ERR,4,2           ## @NETIF_MSG_TX_ERR
	.comm	_NETIF_MSG_RX_ERR,4,2           ## @NETIF_MSG_RX_ERR
	.comm	_NETIF_MSG_WOL,4,2              ## @NETIF_MSG_WOL
L_.str.4:                               ## @.str.4
	.asciz	"cannot map device registers\n"

	.comm	_alx_netdev_ops,4,2             ## @alx_netdev_ops
	.comm	_alx_ethtool_ops,4,2            ## @alx_ethtool_ops
	.comm	_ALX_WATCHDOG_TIME,4,2          ## @ALX_WATCHDOG_TIME
	.comm	_ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG,4,2 ## @ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG
	.comm	_PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG,4,2 ## @PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG
L_.str.5:                               ## @.str.5
	.asciz	"net device private data init failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"MAC Reset failed, error = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to configure PHY speed/duplex (err=%d)\n"

	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
L_.str.8:                               ## @.str.8
	.asciz	"Invalid permanent address programmed, using random one\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MDIO_SUPPORTS_C45,4,2          ## @MDIO_SUPPORTS_C45
	.comm	_MDIO_SUPPORTS_C22,4,2          ## @MDIO_SUPPORTS_C22
	.comm	_MDIO_EMULATE_C22,4,2           ## @MDIO_EMULATE_C22
	.comm	_alx_mdio_read,4,2              ## @alx_mdio_read
	.comm	_alx_mdio_write,4,2             ## @alx_mdio_write
L_.str.9:                               ## @.str.9
	.asciz	"failed to identify PHY\n"

	.comm	_alx_link_check,4,2             ## @alx_link_check
	.comm	_alx_reset,4,2                  ## @alx_reset
L_.str.10:                              ## @.str.10
	.asciz	"register netdevice failed\n"

L_.str.11:                              ## @.str.11
	.asciz	"Qualcomm Atheros AR816x/AR817x Ethernet [%pM]\n"

	.no_dead_strip	_alx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_probe
_alx_probe:                             ; @alx_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x1
	mov	x19, x0
	bl	_pci_enable_device_mem
	mov	x24, x0
	cbnz	w0, LBB0_33
; %bb.1:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	cbz	w0, LBB0_5
; %bb.3:
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_5:
Lloh4:
	adrp	x8, _alx_drv_name@GOTPAGE
Lloh5:
	ldr	x8, [x8, _alx_drv_name@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_mem_regions
	cbz	w0, LBB0_8
; %bb.6:
	mov	x24, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_32
LBB0_8:
	mov	x0, x19
	bl	_pci_enable_pcie_error_reporting
	mov	x0, x19
	bl	_pci_set_master
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.9:
Lloh9:
	adrp	x8, _ALX_MAX_TX_QUEUES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ALX_MAX_TX_QUEUES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #112
	mov	w2, #1
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_16
; %bb.10:
	mov	x20, x0
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_netdev_priv
	mov	x22, x0
	add	x0, x0, #88
	bl	_spin_lock_init
	add	x0, x22, #108
	bl	_spin_lock_init
	add	x0, x22, #104
	bl	_spin_lock_init
Lloh12:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
	str	x20, [x22, #96]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _NETIF_MSG_HW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_MSG_HW@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _NETIF_MSG_IFUP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _NETIF_MSG_TX_ERR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NETIF_MSG_TX_ERR@GOTPAGEOFF]
	str	x19, [x22, #80]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _NETIF_MSG_RX_ERR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETIF_MSG_RX_ERR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _NETIF_MSG_WOL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NETIF_MSG_WOL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_pci_set_drvdata
	mov	x0, x19
	mov	w1, #0
	bl	_pci_ioremap_bar
	mov	x21, x22
	str	w0, [x21, #16]!
	cbz	w0, LBB0_18
; %bb.11:
Lloh30:
	adrp	x8, _alx_netdev_ops@GOTPAGE
Lloh31:
	ldr	x8, [x8, _alx_netdev_ops@GOTPAGEOFF]
Lloh32:
	adrp	x9, _alx_ethtool_ops@GOTPAGE
Lloh33:
	ldr	x9, [x9, _alx_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x20, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_irq_vector
Lloh34:
	adrp	x8, _ALX_WATCHDOG_TIME@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ALX_WATCHDOG_TIME@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #16]
	ldr	w8, [x23]
Lloh37:
	adrp	x9, _ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh40:
	adrp	x8, _PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_13:
	mov	x0, x22
	bl	_alx_init_sw
	cbz	w0, LBB0_19
; %bb.14:
	mov	x24, x0
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_15:
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh47:
	adrp	x8, _EIO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_31
LBB0_18:
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh53:
	adrp	x8, _EIO@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_30
LBB0_19:
	mov	x0, x21
	bl	_alx_reset_pcie
	mov	x0, x21
	bl	_alx_phy_configured
	cbz	w0, LBB0_26
; %bb.20:
	mov	x0, x21
	bl	_alx_reset_mac
	mov	x24, x0
	cbnz	w0, LBB0_27
LBB0_21:
Lloh56:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _NETIF_F_HW_CSUM@GOTPAGE
Lloh60:
	ldr	x9, [x9, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh62:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh63:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh65:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh66:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh68:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh69:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	ldr	w1, [x22, #64]
	mov	x0, x21
	bl	_alx_get_perm_macaddr
	cbz	x0, LBB0_23
; %bb.22:
Lloh71:
	adrp	x1, l_.str.8@PAGE
Lloh72:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	x0, x20
	bl	_eth_hw_addr_random
	ldr	w0, [x22, #64]
	ldr	w1, [x20, #4]
	ldr	w2, [x20, #12]
	bl	_memcpy
LBB0_23:
	ldp	w1, w0, [x22, #64]
Lloh73:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh74:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_memcpy
	ldr	w0, [x20, #4]
	ldr	w1, [x22, #68]
	ldr	w2, [x23]
	bl	_memcpy
	ldr	w0, [x20, #8]
	ldr	w1, [x22, #64]
	ldr	w2, [x23]
	bl	_memcpy
	str	xzr, [x22, #56]
Lloh75:
	adrp	x8, _MDIO_SUPPORTS_C45@GOTPAGE
Lloh76:
	ldr	x8, [x8, _MDIO_SUPPORTS_C45@GOTPAGEOFF]
Lloh77:
	adrp	x9, _MDIO_SUPPORTS_C22@GOTPAGE
Lloh78:
	ldr	x9, [x9, _MDIO_SUPPORTS_C22@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
Lloh80:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh81:
	adrp	x9, _MDIO_EMULATE_C22@GOTPAGE
Lloh82:
	ldr	x9, [x9, _MDIO_EMULATE_C22@GOTPAGEOFF]
	stp	x20, xzr, [x22, #40]
Lloh83:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh84:
	adrp	x9, _alx_mdio_read@GOTPAGE
Lloh85:
	ldr	x9, [x9, _alx_mdio_read@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	str	w9, [x22, #32]
Lloh87:
	adrp	x9, _alx_mdio_write@GOTPAGE
Lloh88:
	ldr	x9, [x9, _alx_mdio_write@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	stp	w8, w9, [x22, #24]
	mov	x0, x21
	bl	_alx_get_phy_info
	cbz	w0, LBB0_36
; %bb.24:
	add	x0, x22, #8
Lloh90:
	adrp	x8, _alx_link_check@GOTPAGE
Lloh91:
	ldr	x8, [x8, _alx_link_check@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x22, #4
Lloh93:
	adrp	x8, _alx_reset@GOTPAGE
Lloh94:
	ldr	x8, [x8, _alx_reset@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_register_netdev
	mov	x24, x0
	cbz	w0, LBB0_37
; %bb.25:
Lloh96:
	adrp	x1, l_.str.10@PAGE
Lloh97:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_28
LBB0_26:
	mov	x0, x21
	bl	_alx_reset_phy
	mov	x0, x21
	bl	_alx_reset_mac
	mov	x24, x0
	cbz	w0, LBB0_34
LBB0_27:
	str	x24, [sp]
Lloh98:
	adrp	x1, l_.str.6@PAGE
Lloh99:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_28:
	mov	x0, x19
	bl	_dev_err
LBB0_29:
	ldr	w0, [x21]
	bl	_iounmap
LBB0_30:
	mov	x0, x20
	bl	_free_netdev
LBB0_31:
	mov	x0, x19
	bl	_pci_release_mem_regions
LBB0_32:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_33:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_34:
	ldp	w2, w1, [x22, #72]
	mov	x0, x21
	bl	_alx_setup_speed_duplex
	cbz	w0, LBB0_21
; %bb.35:
	mov	x24, x0
	str	x24, [sp]
Lloh100:
	adrp	x1, l_.str.7@PAGE
Lloh101:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_29
LBB0_36:
Lloh102:
	adrp	x1, l_.str.9@PAGE
Lloh103:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh104:
	adrp	x8, _EIO@GOTPAGE
Lloh105:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_29
LBB0_37:
	ldr	w2, [x20, #4]
Lloh107:
	adrp	x1, l_.str.11@PAGE
Lloh108:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	b	LBB0_33
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh79
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh107, Lloh108
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA to 64-BIT addresses\n"

l_.str.1:                               ; @.str.1
	.asciz	"No usable DMA config, aborting\n"

	.comm	_alx_drv_name,4,2               ; @alx_drv_name
l_.str.2:                               ; @.str.2
	.asciz	"pci_request_mem_regions failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"Can't find power management capability, aborting\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ALX_MAX_TX_QUEUES,4,2          ; @ALX_MAX_TX_QUEUES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_TX_ERR,4,2           ; @NETIF_MSG_TX_ERR
	.comm	_NETIF_MSG_RX_ERR,4,2           ; @NETIF_MSG_RX_ERR
	.comm	_NETIF_MSG_WOL,4,2              ; @NETIF_MSG_WOL
l_.str.4:                               ; @.str.4
	.asciz	"cannot map device registers\n"

	.comm	_alx_netdev_ops,4,2             ; @alx_netdev_ops
	.comm	_alx_ethtool_ops,4,2            ; @alx_ethtool_ops
	.comm	_ALX_WATCHDOG_TIME,4,2          ; @ALX_WATCHDOG_TIME
	.comm	_ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG,4,2 ; @ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG
	.comm	_PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG,4,2 ; @PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG
l_.str.5:                               ; @.str.5
	.asciz	"net device private data init failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"MAC Reset failed, error = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to configure PHY speed/duplex (err=%d)\n"

	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
l_.str.8:                               ; @.str.8
	.asciz	"Invalid permanent address programmed, using random one\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MDIO_SUPPORTS_C45,4,2          ; @MDIO_SUPPORTS_C45
	.comm	_MDIO_SUPPORTS_C22,4,2          ; @MDIO_SUPPORTS_C22
	.comm	_MDIO_EMULATE_C22,4,2           ; @MDIO_EMULATE_C22
	.comm	_alx_mdio_read,4,2              ; @alx_mdio_read
	.comm	_alx_mdio_write,4,2             ; @alx_mdio_write
l_.str.9:                               ; @.str.9
	.asciz	"failed to identify PHY\n"

	.comm	_alx_link_check,4,2             ; @alx_link_check
	.comm	_alx_reset,4,2                  ; @alx_reset
l_.str.10:                              ; @.str.10
	.asciz	"register netdevice failed\n"

l_.str.11:                              ; @.str.11
	.asciz	"Qualcomm Atheros AR816x/AR817x Ethernet [%pM]\n"

	.no_dead_strip	_alx_probe
.subsections_via_symbols
