	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_probe
_ag71xx_probe:                          ## @ag71xx_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movl	$136, %esi
	callq	_devm_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, (%rax)
	movq	_ar71xx_addr_ar7100@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	(%rdi,%rbx,8), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	jmp	LBB0_6
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rbx)
	js	LBB0_16
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_20
## %bb.13:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	movq	8(%rbx), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_16:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netif_err
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, 128(%rbx)
	movq	%r13, 120(%rbx)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 112(%rbx)
	movq	_AG71XX_DEFAULT_MSG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edi
	callq	_netif_msg_init
	movl	%eax, 108(%rbx)
	movl	104(%rbx), %edi
	movq	(%r13), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_38
LBB0_22:
	movq	(%r14), %r13
	movq	%r14, %rdi
	callq	_resource_size
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_devm_ioremap_nocache
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 32(%rcx)
	testq	%rax, %rax
	je	LBB0_36
## %bb.23:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 4(%r14)
	movq	_ag71xx_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %r13d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %r8d
	leaq	L_.str.5(%rip), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_38
LBB0_25:
	movq	_ag71xx_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	leaq	100(%r13), %rdi
	movq	_ag71xx_restart_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	96(%r13), %rdi
	movq	_ag71xx_oom_timer_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_AG71XX_TX_RING_SIZE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_AG71XX_RX_RING_SIZE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ag71xx_ring_size_order
	movq	%rax, 88(%r13)
	movl	$68, (%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	xorl	%edi, %edi
	callq	_ag71xx_max_frame_len
	subq	%rax, %rbx
	movq	%rbx, 16(%r14)
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r13)
	movq	_AR7100@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_ag71xx_is
	testq	%rax, %rax
	jne	LBB0_28
## %bb.26:
	movq	_AR9130@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ag71xx_is
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 80(%r13)
LBB0_28:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_ag71xx_is
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	_AG71XX_TX_RING_SPLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13)
	movq	_AG71XX_TX_RING_DS_PER_PKT@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	imull	(%rax), %edi
	jmp	LBB0_31
LBB0_30:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
LBB0_31:
	callq	_ag71xx_ring_size_order
	movq	%rax, 64(%r13)
	leaq	48(%r13), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$4, %esi
	movq	%r14, %rdx
	callq	_dmam_alloc_coherent
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_36
## %bb.32:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	(%r14), %rcx
	movq	%rcx, (%rax)
	movq	%r12, %rdi
	callq	_of_get_mac_address
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_34
## %bb.33:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
LBB0_34:
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_39
LBB0_35:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rcx
	movq	%r13, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	movl	8(%rbx), %edi
	callq	_eth_random_addr
	jmp	LBB0_40
LBB0_36:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_37:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_38:
	movq	%r14, %rdi
	callq	_free_netdev
	jmp	LBB0_19
LBB0_39:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_35
LBB0_40:
	movq	%r12, %rdi
	callq	_of_get_phy_mode
	movl	%eax, 24(%r13)
	testl	%eax, %eax
	js	LBB0_43
## %bb.41:
	movq	%r13, %rsi
	addq	$40, %rsi
	movq	_ag71xx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AG71XX_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_napi_add
	movq	8(%r13), %rdi
	callq	_clk_prepare_enable
	movq	%r13, %rbx
	testl	%eax, %eax
	je	LBB0_44
## %bb.42:
	movl	%eax, %r13d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_38
LBB0_43:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rcx
	movq	%r13, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	movl	24(%r13), %r13d
	jmp	LBB0_38
LBB0_44:
	movq	_AG71XX_REG_MAC_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ag71xx_wr
	movq	%rbx, %rdi
	callq	_ag71xx_hw_init
	movq	%rbx, %rdi
	callq	_ag71xx_mdio_probe
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_47
## %bb.45:
	movq	%r15, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	callq	_register_netdev
	movl	%eax, %r13d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r13d, %r13d
	je	LBB0_48
## %bb.46:
	leaq	L_.str.9(%rip), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_ag71xx_mdio_remove
LBB0_47:
	movq	8(%rbx), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_37
LBB0_48:
	movq	%r12, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%rbx), %r15
	movl	4(%r12), %r12d
	movl	24(%rbx), %edi
	callq	_phy_modes
	movl	%eax, (%rsp)
	leaq	L_.str.10(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%r15, %r8
	movl	%r12d, %r9d
	callq	_netif_info
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ar71xx_addr_ar7100,8,3         ## @ar71xx_addr_ar7100
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown mac idx\n"

L_.str.1:                               ## @.str.1
	.asciz	"eth"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get eth clk.\n"

	.comm	_AG71XX_DEFAULT_MSG_ENABLE,4,2  ## @AG71XX_DEFAULT_MSG_ENABLE
L_.str.3:                               ## @.str.3
	.asciz	"mac"

L_.str.4:                               ## @.str.4
	.asciz	"missing mac reset\n"

	.comm	_ag71xx_interrupt,4,2           ## @ag71xx_interrupt
L_.str.5:                               ## @.str.5
	.asciz	"unable to request IRQ %d\n"

	.comm	_ag71xx_netdev_ops,4,2          ## @ag71xx_netdev_ops
	.comm	_ag71xx_restart_work_func,4,2   ## @ag71xx_restart_work_func
	.comm	_ag71xx_oom_timer_handler,4,2   ## @ag71xx_oom_timer_handler
	.comm	_AG71XX_TX_RING_SIZE_DEFAULT,4,2 ## @AG71XX_TX_RING_SIZE_DEFAULT
	.comm	_AG71XX_RX_RING_SIZE_DEFAULT,4,2 ## @AG71XX_RX_RING_SIZE_DEFAULT
	.comm	_NET_SKB_PAD,4,2                ## @NET_SKB_PAD
	.comm	_AR7100,4,2                     ## @AR7100
	.comm	_AR9130,4,2                     ## @AR9130
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_AG71XX_TX_RING_SPLIT,4,2       ## @AG71XX_TX_RING_SPLIT
	.comm	_AG71XX_TX_RING_DS_PER_PKT,4,2  ## @AG71XX_TX_RING_DS_PER_PKT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.6:                               ## @.str.6
	.asciz	"invalid MAC address, using random address\n"

L_.str.7:                               ## @.str.7
	.asciz	"missing phy-mode property in DT\n"

	.comm	_ag71xx_poll,4,2                ## @ag71xx_poll
	.comm	_AG71XX_NAPI_WEIGHT,4,2         ## @AG71XX_NAPI_WEIGHT
L_.str.8:                               ## @.str.8
	.asciz	"Failed to enable eth clk.\n"

	.comm	_AG71XX_REG_MAC_CFG1,4,2        ## @AG71XX_REG_MAC_CFG1
L_.str.9:                               ## @.str.9
	.asciz	"unable to register net device\n"

L_.str.10:                              ## @.str.10
	.asciz	"Atheros AG71xx at 0x%08lx, irq %d, mode:%s\n"

	.no_dead_strip	_ag71xx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_probe
_ag71xx_probe:                          ; @ag71xx_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
	ldr	x22, [x0]
	cbz	x22, LBB0_9
; %bb.1:
	mov	x21, x0
	mov	w1, #136
	bl	_devm_alloc_etherdev
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_15
; %bb.3:
	mov	x24, x0
	mov	x0, x21
	bl	_of_device_get_match_data
	cbz	x0, LBB0_15
; %bb.4:
	mov	x23, x0
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	mov	w8, #-1
	str	w8, [x0]
Lloh3:
	adrp	x25, _ar71xx_addr_ar7100@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ar71xx_addr_ar7100@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x26, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	ldr	x8, [x0, x26, lsl #3]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w26, [x20]
	b	LBB0_6
LBB0_9:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_14
; %bb.12:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.13:
Lloh11:
	adrp	x8, _probe@GOTPAGE
Lloh12:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str.2@PAGE
Lloh15:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	ldr	x0, [x20, #8]
	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
	b	_PTR_ERR
LBB0_14:
Lloh16:
	adrp	x8, _probe@GOTPAGE
Lloh17:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
LBB0_15:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_17:
	mov	x0, x24
	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_18:
	mov	x0, x19
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	stp	x19, x21, [x20, #120]
	str	x23, [x20, #112]
Lloh23:
	adrp	x8, _AG71XX_DEFAULT_MSG_ENABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AG71XX_DEFAULT_MSG_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w0, #-1
	bl	_netif_msg_init
	str	w0, [x20, #108]
	ldr	w0, [x20, #104]
	ldr	x1, [x23]
	mov	w2, #4
	bl	_memcpy
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_devm_reset_control_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
Lloh28:
	adrp	x8, _probe@GOTPAGE
Lloh29:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x3, l_.str.4@PAGE
Lloh32:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_35
LBB0_20:
	ldr	x25, [x24]
	mov	x0, x24
	bl	_resource_size
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_devm_ioremap_nocache
	str	x0, [x20, #32]
	cbz	x0, LBB0_34
; %bb.21:
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x24, x0
	str	w0, [x19, #4]
Lloh33:
	adrp	x8, _ag71xx_interrupt@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ag71xx_interrupt@GOTPAGEOFF]
Lloh35:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_dev_name
	mov	x4, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_24
; %bb.22:
	mov	x24, x0
Lloh36:
	adrp	x8, _probe@GOTPAGE
Lloh37:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh39:
	adrp	x3, l_.str.5@PAGE
Lloh40:
	add	x3, x3, l_.str.5@PAGEOFF
LBB0_23:
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	b	LBB0_35
LBB0_24:
Lloh41:
	adrp	x8, _ag71xx_netdev_ops@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ag71xx_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	add	x0, x20, #100
Lloh43:
	adrp	x8, _ag71xx_restart_work_func@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ag71xx_restart_work_func@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #96
Lloh46:
	adrp	x8, _ag71xx_oom_timer_handler@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ag71xx_oom_timer_handler@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh49:
	adrp	x8, _AG71XX_TX_RING_SIZE_DEFAULT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AG71XX_TX_RING_SIZE_DEFAULT@GOTPAGEOFF]
Lloh51:
	ldr	w24, [x8]
Lloh52:
	adrp	x8, _AG71XX_RX_RING_SIZE_DEFAULT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AG71XX_RX_RING_SIZE_DEFAULT@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_ag71xx_ring_size_order
	str	x0, [x20, #88]
	mov	w8, #68
	str	w8, [x19]
	ldr	x23, [x23, #8]
	mov	w0, #0
	bl	_ag71xx_max_frame_len
	sub	x8, x23, x0
Lloh55:
	adrp	x9, _NET_SKB_PAD@GOTPAGE
Lloh56:
	ldr	x9, [x9, _NET_SKB_PAD@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh57:
	ldr	w8, [x9]
	str	w8, [x20, #80]
Lloh58:
	adrp	x23, _AR7100@GOTPAGE
Lloh59:
	ldr	x23, [x23, _AR7100@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_ag71xx_is
	cbnz	x0, LBB0_27
; %bb.25:
Lloh60:
	adrp	x8, _AR9130@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AR9130@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ag71xx_is
	cbnz	x0, LBB0_27
; %bb.26:
Lloh63:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh64:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	ldr	w9, [x20, #80]
	add	w8, w9, w8
	str	w8, [x20, #80]
LBB0_27:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_ag71xx_is
	cbz	x0, LBB0_29
; %bb.28:
Lloh66:
	adrp	x8, _AG71XX_TX_RING_SPLIT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AG71XX_TX_RING_SPLIT@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	str	w8, [x20, #72]
Lloh69:
	adrp	x8, _AG71XX_TX_RING_DS_PER_PKT@GOTPAGE
Lloh70:
	ldr	x8, [x8, _AG71XX_TX_RING_DS_PER_PKT@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	mul	w24, w8, w24
LBB0_29:
	mov	x0, x24
	bl	_ag71xx_ring_size_order
	str	x0, [x20, #64]
	add	x23, x20, #48
Lloh72:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh74:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w1, #4
	mov	x2, x23
	bl	_dmam_alloc_coherent
	str	x0, [x20, #56]
	cbz	x0, LBB0_34
; %bb.30:
	stp	xzr, xzr, [x0, #8]
	ldr	x8, [x23]
	str	x8, [x0]
	mov	x0, x22
	bl	_of_get_mac_address
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_32
; %bb.31:
	ldr	w0, [x19, #8]
Lloh75:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh77:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
LBB0_32:
	mov	x0, x23
	bl	_IS_ERR
	cbz	x0, LBB0_36
LBB0_33:
Lloh78:
	adrp	x8, _probe@GOTPAGE
Lloh79:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x3, l_.str.6@PAGE
Lloh82:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	ldr	w0, [x19, #8]
	bl	_eth_random_addr
	b	LBB0_37
LBB0_34:
Lloh83:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_35:
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_17
LBB0_36:
	ldr	w0, [x19, #8]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_33
LBB0_37:
	mov	x0, x22
	bl	_of_get_phy_mode
	str	w0, [x20, #24]
	tbnz	w0, #31, LBB0_40
; %bb.38:
	add	x1, x20, #40
Lloh86:
	adrp	x8, _ag71xx_poll@GOTPAGE
Lloh87:
	ldr	x8, [x8, _ag71xx_poll@GOTPAGEOFF]
Lloh88:
	ldr	w2, [x8]
Lloh89:
	adrp	x8, _AG71XX_NAPI_WEIGHT@GOTPAGE
Lloh90:
	ldr	x8, [x8, _AG71XX_NAPI_WEIGHT@GOTPAGEOFF]
Lloh91:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_netif_napi_add
	ldr	x0, [x20, #8]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_41
; %bb.39:
	mov	x24, x0
Lloh92:
	adrp	x8, _probe@GOTPAGE
Lloh93:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x3, l_.str.8@PAGE
Lloh96:
	add	x3, x3, l_.str.8@PAGEOFF
	b	LBB0_23
LBB0_40:
Lloh97:
	adrp	x8, _probe@GOTPAGE
Lloh98:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
Lloh100:
	adrp	x3, l_.str.7@PAGE
Lloh101:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	ldr	w24, [x20, #24]
	b	LBB0_35
LBB0_41:
Lloh102:
	adrp	x8, _AG71XX_REG_MAC_CFG1@GOTPAGE
Lloh103:
	ldr	x8, [x8, _AG71XX_REG_MAC_CFG1@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ag71xx_wr
	mov	x0, x20
	bl	_ag71xx_hw_init
	mov	x0, x20
	bl	_ag71xx_mdio_probe
	mov	x24, x0
	cbnz	w0, LBB0_44
; %bb.42:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_register_netdev
	mov	x24, x0
Lloh105:
	adrp	x8, _probe@GOTPAGE
Lloh106:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh107:
	ldr	w22, [x8]
	cbz	w0, LBB0_45
; %bb.43:
Lloh108:
	adrp	x3, l_.str.9@PAGE
Lloh109:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_netif_err
	mov	x0, x21
	mov	x1, #0
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_ag71xx_mdio_remove
LBB0_44:
	ldr	x0, [x20, #8]
	bl	_clk_disable_unprepare
	b	LBB0_35
LBB0_45:
	ldr	x21, [x20, #32]
	ldr	w23, [x19, #4]
	ldr	w0, [x20, #24]
	bl	_phy_modes
	mov	x6, x0
Lloh110:
	adrp	x3, l_.str.10@PAGE
Lloh111:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x4, x21
	mov	x5, x23
	bl	_netif_info
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh110, Lloh111
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ar71xx_addr_ar7100,8,3         ; @ar71xx_addr_ar7100
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown mac idx\n"

l_.str.1:                               ; @.str.1
	.asciz	"eth"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get eth clk.\n"

	.comm	_AG71XX_DEFAULT_MSG_ENABLE,4,2  ; @AG71XX_DEFAULT_MSG_ENABLE
l_.str.3:                               ; @.str.3
	.asciz	"mac"

l_.str.4:                               ; @.str.4
	.asciz	"missing mac reset\n"

	.comm	_ag71xx_interrupt,4,2           ; @ag71xx_interrupt
l_.str.5:                               ; @.str.5
	.asciz	"unable to request IRQ %d\n"

	.comm	_ag71xx_netdev_ops,4,2          ; @ag71xx_netdev_ops
	.comm	_ag71xx_restart_work_func,4,2   ; @ag71xx_restart_work_func
	.comm	_ag71xx_oom_timer_handler,4,2   ; @ag71xx_oom_timer_handler
	.comm	_AG71XX_TX_RING_SIZE_DEFAULT,4,2 ; @AG71XX_TX_RING_SIZE_DEFAULT
	.comm	_AG71XX_RX_RING_SIZE_DEFAULT,4,2 ; @AG71XX_RX_RING_SIZE_DEFAULT
	.comm	_NET_SKB_PAD,4,2                ; @NET_SKB_PAD
	.comm	_AR7100,4,2                     ; @AR7100
	.comm	_AR9130,4,2                     ; @AR9130
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_AG71XX_TX_RING_SPLIT,4,2       ; @AG71XX_TX_RING_SPLIT
	.comm	_AG71XX_TX_RING_DS_PER_PKT,4,2  ; @AG71XX_TX_RING_DS_PER_PKT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.6:                               ; @.str.6
	.asciz	"invalid MAC address, using random address\n"

l_.str.7:                               ; @.str.7
	.asciz	"missing phy-mode property in DT\n"

	.comm	_ag71xx_poll,4,2                ; @ag71xx_poll
	.comm	_AG71XX_NAPI_WEIGHT,4,2         ; @AG71XX_NAPI_WEIGHT
l_.str.8:                               ; @.str.8
	.asciz	"Failed to enable eth clk.\n"

	.comm	_AG71XX_REG_MAC_CFG1,4,2        ; @AG71XX_REG_MAC_CFG1
l_.str.9:                               ; @.str.9
	.asciz	"unable to register net device\n"

l_.str.10:                              ; @.str.10
	.asciz	"Atheros AG71xx at 0x%08lx, irq %d, mode:%s\n"

	.no_dead_strip	_ag71xx_probe
.subsections_via_symbols
