	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_probe
_ravb_probe:                            ## @ravb_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, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	_NUM_TX_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NUM_RX_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$136, %edi
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r13
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r13)
	movq	%rax, 56(%r13)
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	(%r12), %rax
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	_RCAR_GEN3@GOTPCREL(%rip), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	%eax, (%rcx)
	jne	LBB0_9
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
LBB0_10:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, (%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r13, 128(%rax)
	movq	%r14, 120(%rax)
	movq	_BE_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	112(%rbx), %rcx
	movq	_RAVB_BE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_BE_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	104(%rbx), %rsi
	movl	%eax, (%rsi,%rdx,4)
	movq	_NC_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RAVB_NC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_NC_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi,%rdx,4)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 100(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movl	100(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_13:
	movq	%r13, %rdi
	callq	_free_netdev
	movq	%r14, %rdi
	callq	_pm_runtime_put
	movq	%r14, %rdi
	callq	_pm_runtime_disable
LBB0_14:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	96(%rbx), %rdi
	callq	_spin_lock_init
	leaq	92(%rbx), %rdi
	movq	_ravb_tx_timeout_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_of_get_phy_mode
	movl	%eax, 88(%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movq	%rax, 80(%rbx)
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 72(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	_RCAR_GEN3@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	movq	_NUM_TX_QUEUE@GOTPCREL(%rip), %r13
	jne	LBB0_25
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_29
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	_NUM_RX_QUEUE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_21
## %bb.18:
	xorl	%ebx, %ebx
	movq	_ravb_rx_irqs@GOTPCREL(%rip), %r12
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%r15d, (%rax,%rbx,4)
	incq	%rbx
	movq	_NUM_RX_QUEUE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_19
LBB0_21:
	cmpl	$0, (%r13)
	jle	LBB0_25
## %bb.22:
	xorl	%ebx, %ebx
	movq	_ravb_tx_irqs@GOTPCREL(%rip), %r12
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	%r15d, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_23
LBB0_25:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%r15d, 24(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 68(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	68(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_29:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_27:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	$2048, %ecx                     ## imm = 0x800
	subq	%rax, %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rcx, 48(%r13)
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	_RCAR_GEN2@GOTPCREL(%rip), %r12
	cmpl	%r15d, (%r12)
	jne	LBB0_30
## %bb.28:
	movq	_NUM_TX_DESC_GEN2@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_30:
	movq	_NUM_TX_DESC_GEN3@GOTPCREL(%rip), %rax
LBB0_31:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_ravb_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r13)
	movq	_ravb_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r13)
	movq	%r13, %rdi
	callq	_ravb_set_config_mode
	movq	%r13, %rdi
	callq	_ravb_set_gti
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.32:
	movq	_GCCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GCCR_LTI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%ecx, %edx
	callq	_ravb_modify
	movl	24(%rbx), %eax
	cmpl	(%r12), %eax
	je	LBB0_34
## %bb.33:
	movq	%r13, %rdi
	callq	_ravb_set_delay_mode
LBB0_34:
	movq	_DBAT_ENTRY_NUM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	shll	$2, %esi
	movl	%esi, 28(%rbx)
	movl	4(%r13), %edi
	leaq	32(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_46
## %bb.35:
	movq	_RAVB_BE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%ecx, (%r15)
	jle	LBB0_38
## %bb.36:
	movslq	%ecx, %rcx
	movq	_DT_EOS@GOTPCREL(%rip), %rdx
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	movl	%esi, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r15), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_37
LBB0_38:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %esi
	movq	_DBAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_ravb_write
	movq	%rbx, %rdi
	addq	$60, %rdi
	callq	_INIT_LIST_HEAD
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, (%r12)
	je	LBB0_40
## %bb.39:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ravb_ptp_init
LBB0_40:
	movq	_RAVB_DEF_MSG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_get_mac_address
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ravb_read_mac_address
	movl	8(%r13), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_42
## %bb.41:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	%r13, %rdi
	callq	_eth_hw_addr_random
LBB0_42:
	movq	%rbx, %rdi
	callq	_ravb_mdio_init
	testl	%eax, %eax
	je	LBB0_47
## %bb.43:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_49
LBB0_46:
	movl	28(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_47:
	movq	_RAVB_BE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	48(%rbx), %rsi
	movq	_ravb_poll@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$64, %ecx
	callq	_netif_napi_add
	movq	_RAVB_NC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	48(%rbx), %rsi
	movl	(%r15), %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	$64, %ecx
	callq	_netif_napi_add
	movq	%r13, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_51
## %bb.48:
	movl	%eax, %r15d
	movq	_RAVB_NC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	48(%rbx), %rdi
	callq	_netif_napi_del
	movq	_RAVB_BE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	48(%rbx), %rdi
	callq	_netif_napi_del
	movq	%rbx, %rdi
	callq	_ravb_mdio_release
LBB0_49:
	movl	4(%r13), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rdx
	movl	28(%rax), %esi
	movl	32(%rax), %ecx
	callq	_dma_free_coherent
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, (%r12)
	je	LBB0_13
## %bb.50:
	movq	%r13, %rdi
	callq	_ravb_ptp_stop
	jmp	LBB0_13
LBB0_51:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
	movl	16(%r13), %edx
	movl	(%r13), %r8d
	movl	8(%r13), %ecx
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_info
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"this driver is required to be instantiated from device tree\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"invalid resource\n"

	.comm	_NUM_TX_QUEUE,4,2               ## @NUM_TX_QUEUE
	.comm	_NUM_RX_QUEUE,4,2               ## @NUM_RX_QUEUE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NETIF_F_RXCSUM,8,3             ## @NETIF_F_RXCSUM
	.comm	_RCAR_GEN3,4,2                  ## @RCAR_GEN3
L_.str.2:                               ## @.str.2
	.asciz	"ch22"

	.comm	_BE_TX_RING_SIZE,4,2            ## @BE_TX_RING_SIZE
	.comm	_RAVB_BE,8,3                    ## @RAVB_BE
	.comm	_BE_RX_RING_SIZE,4,2            ## @BE_RX_RING_SIZE
	.comm	_NC_TX_RING_SIZE,4,2            ## @NC_TX_RING_SIZE
	.comm	_RAVB_NC,8,3                    ## @RAVB_NC
	.comm	_NC_RX_RING_SIZE,4,2            ## @NC_RX_RING_SIZE
	.comm	_ravb_tx_timeout_work,4,2       ## @ravb_tx_timeout_work
L_.str.3:                               ## @.str.3
	.asciz	"renesas,no-ether-link"

L_.str.4:                               ## @.str.4
	.asciz	"renesas,ether-link-active-low"

L_.str.5:                               ## @.str.5
	.asciz	"ch24"

	.comm	_ravb_rx_irqs,8,3               ## @ravb_rx_irqs
	.comm	_ravb_tx_irqs,8,3               ## @ravb_tx_irqs
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_RCAR_GEN2,4,2                  ## @RCAR_GEN2
	.comm	_NUM_TX_DESC_GEN2,4,2           ## @NUM_TX_DESC_GEN2
	.comm	_NUM_TX_DESC_GEN3,4,2           ## @NUM_TX_DESC_GEN3
	.comm	_ravb_netdev_ops,4,2            ## @ravb_netdev_ops
	.comm	_ravb_ethtool_ops,4,2           ## @ravb_ethtool_ops
	.comm	_GCCR,4,2                       ## @GCCR
	.comm	_GCCR_LTI,4,2                   ## @GCCR_LTI
	.comm	_DBAT_ENTRY_NUM,4,2             ## @DBAT_ENTRY_NUM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.6:                               ## @.str.6
	.asciz	"Cannot allocate desc base address table (size %d bytes)\n"

	.comm	_DT_EOS,4,2                     ## @DT_EOS
	.comm	_DBAT,4,2                       ## @DBAT
	.comm	_RAVB_DEF_MSG_ENABLE,4,2        ## @RAVB_DEF_MSG_ENABLE
L_.str.7:                               ## @.str.7
	.asciz	"no valid MAC address supplied, using a random one\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to initialize MDIO\n"

	.comm	_ravb_poll,4,2                  ## @ravb_poll
L_.str.9:                               ## @.str.9
	.asciz	"Base address at %#x, %pM, IRQ %d.\n"

	.no_dead_strip	_ravb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_probe
_ravb_probe:                            ; @ravb_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.2:
	mov	x25, x0
Lloh3:
	adrp	x28, _NUM_TX_QUEUE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _NUM_TX_QUEUE@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh5:
	adrp	x26, _NUM_RX_QUEUE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _NUM_RX_QUEUE@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	w0, #136
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
Lloh7:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #56]
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	ldr	x8, [x25]
	str	x8, [x20, #16]
	mov	x0, x19
	bl	_of_device_get_match_data
	mov	x21, x0
Lloh10:
	adrp	x27, _RCAR_GEN3@GOTPAGE
Lloh11:
	ldr	x27, [x27, _RCAR_GEN3@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.4:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x24, x0
	tbz	w0, #31, LBB0_11
	b	LBB0_14
LBB0_5:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_14
LBB0_11:
	str	w24, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_netdev_priv
	mov	x22, x0
Lloh22:
	adrp	x8, _BE_TX_RING_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BE_TX_RING_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _RAVB_BE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RAVB_BE@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldp	x11, x10, [x0, #104]
	str	w8, [x10, x9]
Lloh28:
	adrp	x8, _BE_RX_RING_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BE_RX_RING_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x11, x9]
Lloh31:
	adrp	x8, _NC_TX_RING_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NC_TX_RING_SIZE@GOTPAGEOFF]
Lloh33:
	adrp	x9, _RAVB_NC@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RAVB_NC@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	str	w8, [x10, x9]
	stp	x19, x20, [x0, #120]
Lloh37:
	adrp	x8, _NC_RX_RING_SIZE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NC_RX_RING_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x11, x9]
	mov	x0, x19
	mov	x1, x25
	bl	_devm_ioremap_resource
	str	w0, [x22, #100]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.12:
	ldr	w0, [x22, #100]
LBB0_13:
	bl	_PTR_ERR
	mov	x24, x0
LBB0_14:
	mov	x0, x20
	bl	_free_netdev
	mov	x0, x19
	bl	_pm_runtime_put
	mov	x0, x19
	bl	_pm_runtime_disable
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	add	x0, x22, #96
	bl	_spin_lock_init
	add	x0, x22, #92
Lloh40:
	adrp	x8, _ravb_tx_timeout_work@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ravb_tx_timeout_work@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x23
	bl	_of_get_phy_mode
	str	w0, [x22, #88]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_bool
	str	x0, [x22, #80]
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_bool
	str	x0, [x22, #72]
	ldr	w8, [x27]
	cmp	w8, w21
	b.ne	LBB0_26
; %bb.17:
Lloh47:
	adrp	x1, l_.str.5@PAGE
Lloh48:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x24, x0
	tbnz	w0, #31, LBB0_14
; %bb.18:
	str	w24, [x22]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.19:
	mov	x25, #0
Lloh49:
	adrp	x27, _ravb_rx_irqs@GOTPAGE
Lloh50:
	ldr	x27, [x27, _ravb_rx_irqs@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	x1, [x8, x25, lsl #3]
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x24, x0
	tbnz	w0, #31, LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x22, #8]
	str	w24, [x8, x25, lsl #2]
	add	x25, x25, #1
	ldrsw	x8, [x26]
	cmp	x25, x8
	b.lt	LBB0_20
LBB0_22:
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.23:
	mov	x25, #0
Lloh51:
	adrp	x26, _ravb_tx_irqs@GOTPAGE
Lloh52:
	ldr	x26, [x26, _ravb_tx_irqs@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x1, [x8, x25, lsl #3]
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x24, x0
	tbnz	w0, #31, LBB0_14
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x22, #16]
	str	w24, [x8, x25, lsl #2]
	add	x25, x25, #1
	ldrsw	x8, [x28]
	cmp	x25, x8
	b.lt	LBB0_24
LBB0_26:
	str	w21, [x22, #24]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x22, #68]
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.27:
	ldr	w0, [x22, #68]
	b	LBB0_13
LBB0_28:
Lloh53:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
Lloh56:
	adrp	x9, _VLAN_HLEN@GOTPAGE
Lloh57:
	ldr	x9, [x9, _VLAN_HLEN@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
Lloh59:
	adrp	x10, _ETH_FCS_LEN@GOTPAGE
Lloh60:
	ldr	x10, [x10, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh61:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x8, x8, x10
	mov	w9, #2048
	sub	x8, x9, x8
	str	x8, [x20, #48]
Lloh62:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh65:
	adrp	x25, _RCAR_GEN2@GOTPAGE
Lloh66:
	ldr	x25, [x25, _RCAR_GEN2@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh67:
	adrp	x9, _NUM_TX_DESC_GEN2@GOTPAGE
Lloh68:
	ldr	x9, [x9, _NUM_TX_DESC_GEN2@GOTPAGEOFF]
Lloh69:
	adrp	x10, _NUM_TX_DESC_GEN3@GOTPAGE
Lloh70:
	ldr	x10, [x10, _NUM_TX_DESC_GEN3@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x22, #64]
Lloh71:
	adrp	x8, _ravb_netdev_ops@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ravb_netdev_ops@GOTPAGEOFF]
Lloh73:
	adrp	x9, _ravb_ethtool_ops@GOTPAGE
Lloh74:
	ldr	x9, [x9, _ravb_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x20, #24]
	mov	x0, x20
	bl	_ravb_set_config_mode
	mov	x0, x20
	bl	_ravb_set_gti
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.29:
Lloh75:
	adrp	x8, _GCCR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _GCCR@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
Lloh78:
	adrp	x8, _GCCR_LTI@GOTPAGE
Lloh79:
	ldr	x8, [x8, _GCCR_LTI@GOTPAGEOFF]
Lloh80:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x2
	bl	_ravb_modify
	ldr	w8, [x22, #24]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_31
; %bb.30:
	mov	x0, x20
	bl	_ravb_set_delay_mode
LBB0_31:
Lloh81:
	adrp	x24, _DBAT_ENTRY_NUM@GOTPAGE
Lloh82:
	ldr	x24, [x24, _DBAT_ENTRY_NUM@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w1, w8, #2
	str	w1, [x22, #28]
	ldr	w0, [x20, #4]
	add	x2, x22, #32
Lloh83:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh84:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh85:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	x0, [x22, #40]
	cbz	x0, LBB0_41
; %bb.32:
Lloh86:
	adrp	x8, _RAVB_BE@GOTPAGE
Lloh87:
	ldr	x8, [x8, _RAVB_BE@GOTPAGEOFF]
Lloh88:
	ldr	x8, [x8]
	ldr	w9, [x24]
	cmp	w9, w8
	b.le	LBB0_35
; %bb.33:
	sxtw	x8, w8
Lloh89:
	adrp	x9, _DT_EOS@GOTPAGE
Lloh90:
	ldr	x9, [x9, _DT_EOS@GOTPAGEOFF]
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	str	w10, [x0, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x24]
	cmp	x8, x10
	b.lt	LBB0_34
LBB0_35:
	ldr	w1, [x22, #32]
Lloh91:
	adrp	x8, _DBAT@GOTPAGE
Lloh92:
	ldr	x8, [x8, _DBAT@GOTPAGEOFF]
Lloh93:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ravb_write
	add	x0, x22, #60
	bl	_INIT_LIST_HEAD
	ldr	w8, [x25]
	cmp	w8, w21
	b.eq	LBB0_37
; %bb.36:
	mov	x0, x20
	mov	x1, x19
	bl	_ravb_ptp_init
LBB0_37:
Lloh94:
	adrp	x8, _RAVB_DEF_MSG_ENABLE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _RAVB_DEF_MSG_ENABLE@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	str	w8, [x22, #56]
	mov	x0, x23
	bl	_of_get_mac_address
	mov	x1, x0
	mov	x0, x20
	bl	_ravb_read_mac_address
	ldr	w0, [x20, #8]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_39
; %bb.38:
Lloh97:
	adrp	x1, l_.str.7@PAGE
Lloh98:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	x0, x20
	bl	_eth_hw_addr_random
LBB0_39:
	mov	x0, x22
	bl	_ravb_mdio_init
	cbz	w0, LBB0_42
; %bb.40:
	mov	x24, x0
Lloh99:
	adrp	x1, l_.str.8@PAGE
Lloh100:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_44
LBB0_41:
	ldr	w8, [x22, #28]
	str	x8, [sp]
Lloh101:
	adrp	x1, l_.str.6@PAGE
Lloh102:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh103:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh104:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_42:
	ldr	x8, [x22, #48]
Lloh106:
	adrp	x26, _RAVB_BE@GOTPAGE
Lloh107:
	ldr	x26, [x26, _RAVB_BE@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x1, x8, x9, lsl #2
Lloh108:
	adrp	x23, _ravb_poll@GOTPAGE
Lloh109:
	ldr	x23, [x23, _ravb_poll@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	w3, #64
	bl	_netif_napi_add
	ldr	x8, [x22, #48]
Lloh110:
	adrp	x27, _RAVB_NC@GOTPAGE
Lloh111:
	ldr	x27, [x27, _RAVB_NC@GOTPAGEOFF]
	ldr	x9, [x27]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x23]
	mov	x0, x20
	mov	w3, #64
	bl	_netif_napi_add
	mov	x0, x20
	bl	_register_netdev
	mov	x24, x0
	cbz	w0, LBB0_46
; %bb.43:
	ldr	x8, [x22, #48]
	ldr	x9, [x27]
	add	x0, x8, x9, lsl #2
	bl	_netif_napi_del
	ldr	x8, [x22, #48]
	ldr	x9, [x26]
	add	x0, x8, x9, lsl #2
	bl	_netif_napi_del
	mov	x0, x22
	bl	_ravb_mdio_release
LBB0_44:
	ldr	w0, [x20, #4]
	ldr	x2, [x22, #40]
	ldp	w1, w3, [x22, #28]
	bl	_dma_free_coherent
	ldr	w8, [x25]
	cmp	w8, w21
	b.eq	LBB0_14
; %bb.45:
	mov	x0, x20
	bl	_ravb_ptp_stop
	b	LBB0_14
LBB0_46:
	mov	x0, x19
	mov	w1, #1
	bl	_device_set_wakeup_capable
	ldr	w2, [x20, #16]
	ldr	w3, [x20, #8]
	ldr	w4, [x20]
Lloh112:
	adrp	x1, l_.str.9@PAGE
Lloh113:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpAdd	Lloh112, Lloh113
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"this driver is required to be instantiated from device tree\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"invalid resource\n"

	.comm	_NUM_TX_QUEUE,4,2               ; @NUM_TX_QUEUE
	.comm	_NUM_RX_QUEUE,4,2               ; @NUM_RX_QUEUE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NETIF_F_RXCSUM,8,3             ; @NETIF_F_RXCSUM
	.comm	_RCAR_GEN3,4,2                  ; @RCAR_GEN3
l_.str.2:                               ; @.str.2
	.asciz	"ch22"

	.comm	_BE_TX_RING_SIZE,4,2            ; @BE_TX_RING_SIZE
	.comm	_RAVB_BE,8,3                    ; @RAVB_BE
	.comm	_BE_RX_RING_SIZE,4,2            ; @BE_RX_RING_SIZE
	.comm	_NC_TX_RING_SIZE,4,2            ; @NC_TX_RING_SIZE
	.comm	_RAVB_NC,8,3                    ; @RAVB_NC
	.comm	_NC_RX_RING_SIZE,4,2            ; @NC_RX_RING_SIZE
	.comm	_ravb_tx_timeout_work,4,2       ; @ravb_tx_timeout_work
l_.str.3:                               ; @.str.3
	.asciz	"renesas,no-ether-link"

l_.str.4:                               ; @.str.4
	.asciz	"renesas,ether-link-active-low"

l_.str.5:                               ; @.str.5
	.asciz	"ch24"

	.comm	_ravb_rx_irqs,8,3               ; @ravb_rx_irqs
	.comm	_ravb_tx_irqs,8,3               ; @ravb_tx_irqs
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_RCAR_GEN2,4,2                  ; @RCAR_GEN2
	.comm	_NUM_TX_DESC_GEN2,4,2           ; @NUM_TX_DESC_GEN2
	.comm	_NUM_TX_DESC_GEN3,4,2           ; @NUM_TX_DESC_GEN3
	.comm	_ravb_netdev_ops,4,2            ; @ravb_netdev_ops
	.comm	_ravb_ethtool_ops,4,2           ; @ravb_ethtool_ops
	.comm	_GCCR,4,2                       ; @GCCR
	.comm	_GCCR_LTI,4,2                   ; @GCCR_LTI
	.comm	_DBAT_ENTRY_NUM,4,2             ; @DBAT_ENTRY_NUM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.6:                               ; @.str.6
	.asciz	"Cannot allocate desc base address table (size %d bytes)\n"

	.comm	_DT_EOS,4,2                     ; @DT_EOS
	.comm	_DBAT,4,2                       ; @DBAT
	.comm	_RAVB_DEF_MSG_ENABLE,4,2        ; @RAVB_DEF_MSG_ENABLE
l_.str.7:                               ; @.str.7
	.asciz	"no valid MAC address supplied, using a random one\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to initialize MDIO\n"

	.comm	_ravb_poll,4,2                  ; @ravb_poll
l_.str.9:                               ; @.str.9
	.asciz	"Base address at %#x, %pM, IRQ %d.\n"

	.no_dead_strip	_ravb_probe
.subsections_via_symbols
