	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_probe
_ftgmac100_probe:                       ## @ftgmac100_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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_47
## %bb.6:
	movl	$96, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_SET_NETDEV_DEV
	movq	_ftgmac100_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_ftgmac100_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, 48(%rax)
	movq	%rbx, 88(%rax)
	leaq	80(%rax), %rdi
	movq	_ftgmac100_reset_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_resource_size
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_dev_name
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_request_mem_region
	movl	%eax, 20(%r15)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r14d
	movq	%r12, %rdi
	callq	_resource_size
	movl	%r14d, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r13d, 4(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
	movq	%rbx, %rdi
	callq	_ftgmac100_initial_mac
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_29
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:
	movl	$30, %edi
	callq	_BIT
	movq	%rax, 72(%rbx)
	movl	$30, %edi
	callq	_BIT
	movq	%rax, 64(%rbx)
	movl	$1, 12(%rbx)
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	_CONFIG_NET_NCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	$1, 16(%rbx)
	movq	_ftgmac100_ncsi_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ncsi_register_dev
	movl	%eax, 56(%rbx)
	testl	%eax, %eax
	jne	LBB0_30
## %bb.22:
	xorl	%r13d, %r13d
	jmp	LBB0_43
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_47
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_47
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_46
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_29:
	movl	$15, %edi
	callq	_BIT
	movq	%rax, 72(%rbx)
	movl	$15, %edi
	callq	_BIT
	movq	%rax, 64(%rbx)
LBB0_30:
	cmpl	$0, 12(%rbx)
	je	LBB0_32
## %bb.31:
	movq	%rbx, %rdi
	callq	_ftgmac100_setup_clk
LBB0_32:
	movq	_DEF_RX_QUEUE_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	%eax, 40(%rbx)
	movq	_DEF_TX_QUEUE_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %r14
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%r14), %eax
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r15)
	cmpl	$0, 16(%rdx)
	je	LBB0_34
## %bb.33:
	movq	_NETIF_F_HW_VLAN_CTAG_FILTER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r15)
LBB0_34:
	testq	%r12, %r12
	je	LBB0_40
## %bb.35:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 8(%r15)
LBB0_37:
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_38
## %bb.39:
	movl	(%r14), %eax
	orl	(%rbx), %eax
	notl	%eax
	andl	8(%r15), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_40
LBB0_23:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	movq	48(%rbx), %rdi
	movq	_ftgmac100_adjust_link@GOTPCREL(%rip), %rdx
	movq	%r12, %rsi
	callq	_of_phy_get_and_connect
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_phy_support_asym_pause
	movq	%rbx, %rdi
	callq	_phy_attached_info
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_38:
	movl	8(%r15), %eax
LBB0_40:
	orl	%eax, 12(%r15)
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_48
## %bb.41:
	movl	%eax, %r13d
	leaq	L_.str.12(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_48:
	movl	4(%r15), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %ecx
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_info
	xorl	%r13d, %r13d
	jmp	LBB0_47
LBB0_20:
	leaq	L_.str.6(%rip), %rsi
LBB0_42:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_43:
	movq	%r15, %rdi
	callq	_ftgmac100_destroy_mdio
LBB0_44:
	movl	24(%rbx), %edi
	callq	_iounmap
LBB0_45:
	movl	20(%rbx), %edi
	callq	_release_resource
LBB0_46:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_47:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_get_child_by_name
	testl	%eax, %eax
	jne	LBB0_30
## %bb.28:
	movl	$0, 16(%rbx)
	movq	%r15, %rdi
	callq	_ftgmac100_setup_mdio
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_44
	jmp	LBB0_30
LBB0_26:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_17:
	movl	$15, %edi
	callq	_BIT
	movq	%rax, 72(%rbx)
	movl	$15, %edi
	callq	_BIT
	movq	%rax, 64(%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ftgmac100_ethtool_ops,4,2      ## @ftgmac100_ethtool_ops
	.comm	_ftgmac100_netdev_ops,4,2       ## @ftgmac100_netdev_ops
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ftgmac100_reset_task,4,2       ## @ftgmac100_reset_task
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not reserve memory region\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to ioremap ethernet registers\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"aspeed,ast2400-mac"

L_.str.3:                               ## @.str.3
	.asciz	"aspeed,ast2500-mac"

L_.str.4:                               ## @.str.4
	.asciz	"aspeed,ast2600-mac"

L_.str.5:                               ## @.str.5
	.asciz	"use-ncsi"

	.comm	_CONFIG_NET_NCSI,4,2            ## @CONFIG_NET_NCSI
L_.str.6:                               ## @.str.6
	.asciz	"NCSI stack not enabled\n"

L_.str.7:                               ## @.str.7
	.asciz	"Using NCSI interface\n"

	.comm	_ftgmac100_ncsi_handler,4,2     ## @ftgmac100_ncsi_handler
L_.str.8:                               ## @.str.8
	.asciz	"phy-handle"

	.comm	_ftgmac100_adjust_link,4,2      ## @ftgmac100_adjust_link
L_.str.9:                               ## @.str.9
	.asciz	"Failed to connect to phy\n"

L_.str.10:                              ## @.str.10
	.asciz	"mdio"

	.comm	_DEF_RX_QUEUE_ENTRIES,4,2       ## @DEF_RX_QUEUE_ENTRIES
	.comm	_DEF_TX_QUEUE_ENTRIES,4,2       ## @DEF_TX_QUEUE_ENTRIES
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ## @NETIF_F_HW_VLAN_CTAG_FILTER
L_.str.11:                              ## @.str.11
	.asciz	"no-hw-checksum"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to register netdev\n"

L_.str.13:                              ## @.str.13
	.asciz	"irq %d, mapped at %p\n"

	.no_dead_strip	_ftgmac100_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_probe
_ftgmac100_probe:                       ; @ftgmac100_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, 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_16
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	tbnz	w0, #31, LBB0_19
; %bb.3:
	mov	w0, #96
	bl	_alloc_etherdev
	cbz	x0, LBB0_17
; %bb.4:
	mov	x19, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
Lloh3:
	adrp	x8, _ftgmac100_ethtool_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ftgmac100_ethtool_ops@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ftgmac100_netdev_ops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ftgmac100_netdev_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
Lloh7:
	adrp	x8, _HZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	str	x19, [x0, #48]
	str	x20, [x0, #88]
	add	x0, x0, #80
Lloh10:
	adrp	x8, _ftgmac100_reset_task@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ftgmac100_reset_task@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w24, [x22]
	mov	x0, x22
	bl	_resource_size
	mov	x25, x0
	mov	x0, x20
	bl	_dev_name
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_request_mem_region
	str	w0, [x21, #20]
	cbz	w0, LBB0_20
; %bb.5:
	ldr	w24, [x22]
	mov	x0, x22
	bl	_resource_size
	mov	x1, x0
	mov	x0, x24
	bl	_ioremap
	str	w0, [x21, #24]
	cbz	w0, LBB0_21
; %bb.6:
	str	w23, [x19, #4]
	movi.2s	v0, #1
	str	d0, [x21]
	mov	w8, #1
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_ftgmac100_initial_mac
	ldr	x22, [x20]
	cbz	x22, LBB0_22
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_10
; %bb.8:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbz	x0, LBB0_48
LBB0_10:
	mov	w0, #30
	bl	_BIT
	str	x0, [x21, #72]
	mov	w0, #30
	bl	_BIT
	str	x0, [x21, #64]
	mov	w8, #1
	str	w8, [x21, #12]
LBB0_11:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_32
; %bb.12:
Lloh21:
	adrp	x8, _CONFIG_NET_NCSI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONFIG_NET_NCSI@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_39
; %bb.13:
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w8, #1
	str	w8, [x21, #16]
Lloh26:
	adrp	x8, _ftgmac100_ncsi_handler@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ftgmac100_ncsi_handler@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ncsi_register_dev
	str	w0, [x21, #56]
	cbnz	w0, LBB0_23
; %bb.14:
	mov	w23, #0
	b	LBB0_41
LBB0_15:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh31:
	adrp	x8, _ENXIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_19:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_44
LBB0_21:
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh42:
	adrp	x8, _EIO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_43
LBB0_22:
	mov	w0, #15
	bl	_BIT
	str	x0, [x21, #72]
	mov	w0, #15
	bl	_BIT
	str	x0, [x21, #64]
LBB0_23:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_25
; %bb.24:
	mov	x0, x21
	bl	_ftgmac100_setup_clk
LBB0_25:
Lloh45:
	adrp	x8, _DEF_RX_QUEUE_ENTRIES@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DEF_RX_QUEUE_ENTRIES@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	stp	w8, w8, [x21, #36]
Lloh48:
	adrp	x8, _DEF_TX_QUEUE_ENTRIES@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DEF_TX_QUEUE_ENTRIES@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x23, _NETIF_F_RXCSUM@GOTPAGE
Lloh52:
	ldr	x23, [x23, _NETIF_F_RXCSUM@GOTPAGEOFF]
	stp	w8, w8, [x21, #28]
	ldr	w8, [x23]
Lloh53:
	adrp	x24, _NETIF_F_HW_CSUM@GOTPAGE
Lloh54:
	ldr	x24, [x24, _NETIF_F_HW_CSUM@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh55:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh56:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh58:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh59:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh61:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh62:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh64:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh65:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w9, [x21, #16]
	cbz	w9, LBB0_27
; %bb.26:
Lloh67:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGE
Lloh68:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_27:
	cbz	x22, LBB0_36
; %bb.28:
Lloh70:
	adrp	x1, l_.str.2@PAGE
Lloh71:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbz	x0, LBB0_30
; %bb.29:
	ldr	w8, [x24]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
LBB0_30:
Lloh72:
	adrp	x1, l_.str.11@PAGE
Lloh73:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_35
; %bb.31:
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_36
LBB0_32:
Lloh74:
	adrp	x1, l_.str.8@PAGE
Lloh75:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_45
; %bb.33:
	ldr	x0, [x21, #48]
Lloh76:
	adrp	x2, _ftgmac100_adjust_link@GOTPAGE
Lloh77:
	ldr	x2, [x2, _ftgmac100_adjust_link@GOTPAGEOFF]
	mov	x1, x22
	bl	_of_phy_get_and_connect
	mov	x23, x0
	cbz	x0, LBB0_47
; %bb.34:
	mov	x0, x23
	bl	_phy_support_asym_pause
	mov	x0, x23
	bl	_phy_attached_info
	b	LBB0_23
LBB0_35:
	ldr	w8, [x19, #8]
LBB0_36:
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_register_netdev
	mov	x23, x0
	cbz	w0, LBB0_38
; %bb.37:
Lloh78:
	adrp	x1, l_.str.12@PAGE
Lloh79:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_40
LBB0_38:
	ldr	w2, [x19, #4]
	ldr	w3, [x21, #24]
Lloh80:
	adrp	x1, l_.str.13@PAGE
Lloh81:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	b	LBB0_19
LBB0_39:
	mov	w23, #0
Lloh82:
	adrp	x1, l_.str.6@PAGE
Lloh83:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_40:
	mov	x0, x20
	bl	_dev_err
LBB0_41:
	mov	x0, x19
	bl	_ftgmac100_destroy_mdio
LBB0_42:
	ldr	w0, [x21, #24]
	bl	_iounmap
LBB0_43:
	ldr	w0, [x21, #20]
	bl	_release_resource
LBB0_44:
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_19
LBB0_45:
Lloh84:
	adrp	x1, l_.str.10@PAGE
Lloh85:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_of_get_child_by_name
	cbnz	w0, LBB0_23
; %bb.46:
	str	wzr, [x21, #16]
	mov	x0, x19
	bl	_ftgmac100_setup_mdio
	mov	x23, x0
	cbnz	w0, LBB0_42
	b	LBB0_23
LBB0_47:
Lloh86:
	adrp	x1, l_.str.9@PAGE
Lloh87:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_42
LBB0_48:
	mov	w0, #15
	bl	_BIT
	str	x0, [x21, #72]
	mov	w0, #15
	bl	_BIT
	str	x0, [x21, #64]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ftgmac100_ethtool_ops,4,2      ; @ftgmac100_ethtool_ops
	.comm	_ftgmac100_netdev_ops,4,2       ; @ftgmac100_netdev_ops
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ftgmac100_reset_task,4,2       ; @ftgmac100_reset_task
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not reserve memory region\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to ioremap ethernet registers\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"aspeed,ast2400-mac"

l_.str.3:                               ; @.str.3
	.asciz	"aspeed,ast2500-mac"

l_.str.4:                               ; @.str.4
	.asciz	"aspeed,ast2600-mac"

l_.str.5:                               ; @.str.5
	.asciz	"use-ncsi"

	.comm	_CONFIG_NET_NCSI,4,2            ; @CONFIG_NET_NCSI
l_.str.6:                               ; @.str.6
	.asciz	"NCSI stack not enabled\n"

l_.str.7:                               ; @.str.7
	.asciz	"Using NCSI interface\n"

	.comm	_ftgmac100_ncsi_handler,4,2     ; @ftgmac100_ncsi_handler
l_.str.8:                               ; @.str.8
	.asciz	"phy-handle"

	.comm	_ftgmac100_adjust_link,4,2      ; @ftgmac100_adjust_link
l_.str.9:                               ; @.str.9
	.asciz	"Failed to connect to phy\n"

l_.str.10:                              ; @.str.10
	.asciz	"mdio"

	.comm	_DEF_RX_QUEUE_ENTRIES,4,2       ; @DEF_RX_QUEUE_ENTRIES
	.comm	_DEF_TX_QUEUE_ENTRIES,4,2       ; @DEF_TX_QUEUE_ENTRIES
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ; @NETIF_F_HW_VLAN_CTAG_FILTER
l_.str.11:                              ; @.str.11
	.asciz	"no-hw-checksum"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to register netdev\n"

l_.str.13:                              ; @.str.13
	.asciz	"irq %d, mapped at %p\n"

	.no_dead_strip	_ftgmac100_probe
.subsections_via_symbols
