	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgmac_probe
_xgmac_probe:                           ## @xgmac_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	4(%r15), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	$56, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_xgmac_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	_xgmac_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	leaq	52(%rbx), %rdi
	callq	_spin_lock_init
	leaq	48(%rbx), %rdi
	movq	_xgmac_tx_timeout_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, 32(%rbx)
	movq	%r14, 40(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	(%r12), %r13d
	movq	%r12, %rdi
	callq	_resource_size
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	movq	_XGMAC_VERSION@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_netdev_info
	movq	16(%rbx), %rbx
	movl	$31, %edi
	callq	_XGMAC_ADDR_HIGH
	addq	%rax, %rbx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	16(%r13), %rbx
	movl	$31, %edi
	callq	_XGMAC_ADDR_HIGH
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	cmpl	$1, %eax
	movl	$7, %eax
	movl	$31, %ecx
	cmovel	%ecx, %eax
	movl	%eax, 8(%r13)
	movq	_XGMAC_DMA_INTR_ENA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	addq	16(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, %rbx
	movl	%ebx, (%r14)
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	(%r14), %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_29
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_29
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_28
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_27
LBB0_10:
	movq	_xgmac_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	movq	%rax, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%ebx, 12(%r13)
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%r13, %rbx
	movl	12(%r13), %r13d
	jmp	LBB0_25
LBB0_11:
	movl	%eax, %r13d
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_14:
	movq	_xgmac_pmt_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%rbx), %rdi
	callq	_device_can_wakeup
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_18:
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	movq	_XGMAC_DMA_HW_FEATURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_DMA_HW_FEAT_TXCOESEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.20:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	4(%r14), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_21
LBB0_15:
	movl	%eax, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_25
LBB0_19:
	movl	4(%r14), %eax
LBB0_21:
	orl	%eax, 8(%r14)
	movq	_IFF_UNICAST_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 24(%r14)
	movq	_XGMAC_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	16(%rbx), %rdi
	movl	12(%r14), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_xgmac_get_mac_addr
	movl	12(%r14), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movl	12(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_23:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	$24, %r15
	movq	_xgmac_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$64, %ecx
	callq	_netif_napi_add
	movq	%r14, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_29
## %bb.24:
	movq	%r15, %rdi
	movl	%eax, %r13d
	callq	_netif_napi_del
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_25:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_26:
	movq	16(%rbx), %rdi
	callq	_iounmap
LBB0_27:
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_28:
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_29:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_xgmac_netdev_ops,4,2           ## @xgmac_netdev_ops
	.comm	_xgmac_ethtool_ops,4,2          ## @xgmac_ethtool_ops
	.comm	_xgmac_tx_timeout_work,4,2      ## @xgmac_tx_timeout_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioremap failed\n"

	.comm	_XGMAC_VERSION,8,3              ## @XGMAC_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"h/w version is 0x%x\n"

	.comm	_XGMAC_DMA_INTR_ENA,8,3         ## @XGMAC_DMA_INTR_ENA
	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"No irq resource\n"

	.comm	_xgmac_interrupt,4,2            ## @xgmac_interrupt
L_.str.3:                               ## @.str.3
	.asciz	"Could not request irq %d - ret %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"No pmt irq resource\n"

	.comm	_xgmac_pmt_interrupt,4,2        ## @xgmac_pmt_interrupt
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_XGMAC_DMA_HW_FEATURE,8,3       ## @XGMAC_DMA_HW_FEATURE
	.comm	_DMA_HW_FEAT_TXCOESEL,4,2       ## @DMA_HW_FEAT_TXCOESEL
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_IFF_UNICAST_FLT,4,2            ## @IFF_UNICAST_FLT
	.comm	_ETH_ZLEN,8,3                   ## @ETH_ZLEN
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_XGMAC_MAX_MTU,4,2              ## @XGMAC_MAX_MTU
L_.str.5:                               ## @.str.5
	.asciz	"MAC address %pM not valid"

	.comm	_xgmac_poll,4,2                 ## @xgmac_poll
	.no_dead_strip	_xgmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgmac_probe
_xgmac_probe:                           ; @xgmac_probe
	.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	x22, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0]
	bl	_resource_size
	mov	x1, x0
	ldr	w2, [x22, #4]
	mov	x0, x20
	bl	_request_mem_region
	cbz	w0, LBB0_7
; %bb.2:
	mov	w0, #56
	bl	_alloc_etherdev
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _xgmac_netdev_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xgmac_netdev_ops@GOTPAGEOFF]
Lloh5:
	adrp	x9, _xgmac_ethtool_ops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _xgmac_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x20, #40]
	add	x0, x21, #52
	bl	_spin_lock_init
	add	x0, x21, #48
Lloh7:
	adrp	x8, _xgmac_tx_timeout_work@GOTPAGE
Lloh8:
	ldr	x8, [x8, _xgmac_tx_timeout_work@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_INIT_WORK
	stp	x22, x20, [x21, #32]
	movi.2s	v0, #1
	str	d0, [x21]
	ldr	w23, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap
	str	x0, [x21, #16]
	cbz	x0, LBB0_10
; %bb.4:
Lloh10:
	adrp	x8, _XGMAC_VERSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XGMAC_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x0, x8, x0
	bl	_readl
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	ldr	x23, [x21, #16]
	mov	w24, #31
	mov	w0, #31
	bl	_XGMAC_ADDR_HIGH
	add	x1, x0, x23
	mov	w0, #1
	bl	_writel
	ldr	x23, [x21, #16]
	mov	w0, #31
	bl	_XGMAC_ADDR_HIGH
	add	x0, x0, x23
	bl	_readl
	mov	w8, #7
	cmp	w0, #1
	csel	w8, w24, w8, eq
	str	w8, [x21, #8]
	ldr	x8, [x21, #16]
Lloh15:
	adrp	x9, _XGMAC_DMA_INTR_ENA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XGMAC_DMA_INTR_ENA@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	str	w23, [x20]
Lloh18:
	adrp	x25, _ENXIO@GOTPAGE
Lloh19:
	ldr	x25, [x25, _ENXIO@GOTPAGEOFF]
	ldr	w8, [x25]
	cmn	w23, w8
	b.ne	LBB0_11
; %bb.5:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	w23, [x20]
	b	LBB0_27
LBB0_6:
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_30
LBB0_9:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_29
LBB0_10:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_28
LBB0_11:
Lloh34:
	adrp	x8, _xgmac_interrupt@GOTPAGE
Lloh35:
	ldr	x8, [x8, _xgmac_interrupt@GOTPAGEOFF]
Lloh36:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_dev_name
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x22
	mov	w1, #1
	bl	_platform_get_irq
	mov	x23, x0
	str	w23, [x21, #12]
	ldr	w8, [x25]
	cmn	w23, w8
	b.ne	LBB0_15
; %bb.13:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	w23, [x21, #12]
	b	LBB0_26
LBB0_14:
	mov	x23, x0
	ldr	w8, [x20]
	stp	x8, x23, [sp]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_27
LBB0_15:
Lloh41:
	adrp	x8, _xgmac_pmt_interrupt@GOTPAGE
Lloh42:
	ldr	x8, [x8, _xgmac_pmt_interrupt@GOTPAGEOFF]
Lloh43:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_dev_name
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	tbnz	w0, #31, LBB0_20
; %bb.16:
	mov	x0, x22
	mov	w1, #1
	bl	_device_set_wakeup_capable
	ldr	x0, [x21, #32]
	bl	_device_can_wakeup
	cbz	x0, LBB0_18
; %bb.17:
Lloh44:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x21, #28]
LBB0_18:
Lloh47:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _NETIF_F_HIGHDMA@GOTPAGE
Lloh51:
	ldr	x9, [x9, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	x8, [x21, #16]
Lloh53:
	adrp	x9, _XGMAC_DMA_HW_FEATURE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _XGMAC_DMA_HW_FEATURE@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh56:
	adrp	x8, _DMA_HW_FEAT_TXCOESEL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DMA_HW_FEAT_TXCOESEL@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.19:
Lloh59:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
Lloh62:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh63:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
Lloh65:
	adrp	x10, _NETIF_F_RXCSUM@GOTPAGE
Lloh66:
	ldr	x10, [x10, _NETIF_F_RXCSUM@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh67:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x20, #4]
	orr	w8, w8, w9
	str	w8, [x20, #4]
	b	LBB0_22
LBB0_20:
	mov	x23, x0
	ldr	w8, [x21, #12]
	stp	x8, x23, [sp]
Lloh68:
	adrp	x1, l_.str.3@PAGE
Lloh69:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_26
LBB0_21:
	ldr	w8, [x20, #4]
LBB0_22:
	ldp	w9, w1, [x20, #8]
	orr	w8, w9, w8
Lloh70:
	adrp	x9, _IFF_UNICAST_FLT@GOTPAGE
Lloh71:
	ldr	x9, [x9, _IFF_UNICAST_FLT@GOTPAGEOFF]
	str	w8, [x20, #8]
Lloh72:
	ldr	w8, [x9]
	ldr	w9, [x20, #32]
	orr	w8, w9, w8
Lloh73:
	adrp	x9, _ETH_ZLEN@GOTPAGE
Lloh74:
	ldr	x9, [x9, _ETH_ZLEN@GOTPAGEOFF]
	str	w8, [x20, #32]
Lloh75:
	ldr	x8, [x9]
Lloh76:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh77:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [x20, #24]
Lloh79:
	adrp	x8, _XGMAC_MAX_MTU@GOTPAGE
Lloh80:
	ldr	x8, [x8, _XGMAC_MAX_MTU@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x0, [x21, #16]
	mov	w2, #0
	bl	_xgmac_get_mac_addr
	ldr	w0, [x20, #12]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_24
; %bb.23:
	ldr	w2, [x20, #12]
Lloh82:
	adrp	x1, l_.str.5@PAGE
Lloh83:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
LBB0_24:
	add	x22, x21, #24
Lloh84:
	adrp	x8, _xgmac_poll@GOTPAGE
Lloh85:
	ldr	x8, [x8, _xgmac_poll@GOTPAGEOFF]
Lloh86:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #64
	bl	_netif_napi_add
	mov	x0, x20
	bl	_register_netdev
	mov	x23, x0
	cbz	w0, LBB0_30
; %bb.25:
	mov	x0, x22
	bl	_netif_napi_del
	ldr	w0, [x21, #12]
	mov	x1, x20
	bl	_free_irq
LBB0_26:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
LBB0_27:
	ldr	x0, [x21, #16]
	bl	_iounmap
LBB0_28:
	mov	x0, x20
	bl	_free_netdev
LBB0_29:
	ldr	w20, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
LBB0_30:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_xgmac_netdev_ops,4,2           ; @xgmac_netdev_ops
	.comm	_xgmac_ethtool_ops,4,2          ; @xgmac_ethtool_ops
	.comm	_xgmac_tx_timeout_work,4,2      ; @xgmac_tx_timeout_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioremap failed\n"

	.comm	_XGMAC_VERSION,8,3              ; @XGMAC_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"h/w version is 0x%x\n"

	.comm	_XGMAC_DMA_INTR_ENA,8,3         ; @XGMAC_DMA_INTR_ENA
	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"No irq resource\n"

	.comm	_xgmac_interrupt,4,2            ; @xgmac_interrupt
l_.str.3:                               ; @.str.3
	.asciz	"Could not request irq %d - ret %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"No pmt irq resource\n"

	.comm	_xgmac_pmt_interrupt,4,2        ; @xgmac_pmt_interrupt
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_XGMAC_DMA_HW_FEATURE,8,3       ; @XGMAC_DMA_HW_FEATURE
	.comm	_DMA_HW_FEAT_TXCOESEL,4,2       ; @DMA_HW_FEAT_TXCOESEL
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_IFF_UNICAST_FLT,4,2            ; @IFF_UNICAST_FLT
	.comm	_ETH_ZLEN,8,3                   ; @ETH_ZLEN
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_XGMAC_MAX_MTU,4,2              ; @XGMAC_MAX_MTU
l_.str.5:                               ; @.str.5
	.asciz	"MAC address %pM not valid"

	.comm	_xgmac_poll,4,2                 ; @xgmac_poll
	.no_dead_strip	_xgmac_probe
.subsections_via_symbols
