	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greth_of_probe
_greth_of_probe:                        ## @greth_of_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, %r13
	movl	$104, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r14, 96(%rax)
	leaq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 48(%r12)
	movq	_greth_debug@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jg	LBB0_4
## %bb.3:
	movq	_GRETH_DEF_MSG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	%rax, 88(%r12)
	leaq	80(%r12), %rdi
	callq	_spin_lock_init
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	callq	_resource_size
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_of_ioremap
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %r15
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r12)
	movq	48(%r12), %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	48(%r12), %rsi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_SET_NETDEV_DEV
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	48(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
LBB0_10:
	movl	12(%r15), %edi
	movq	_GRETH_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_GRETH_REGSAVE
	movq	_jiffies@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rbx
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r15), %edi
	callq	_GRETH_REGLOAD
	testl	%eax, (%r13)
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	48(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_50
LBB0_5:
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	48(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_49
LBB0_16:
	movl	16(%r15), %edi
	callq	_GRETH_REGLOAD
	shrl	$11, %eax
	andl	$31, %eax
	movl	%eax, (%r12)
	movl	12(%r15), %edi
	callq	_GRETH_REGLOAD
	movl	%eax, %ebx
	shrl	$27, %eax
	andl	$1, %eax
	movl	%eax, 4(%r12)
	movl	%ebx, %eax
	shrl	$25, %eax
	andl	$1, %eax
	movl	%eax, 8(%r12)
	movl	%ebx, %eax
	shrl	$31, %eax
	movl	%eax, 12(%r12)
	testl	%ebx, %ebx
	jns	LBB0_18
## %bb.17:
	movl	12(%r15), %edi
	movq	_GRETH_CTRL_DISDUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GRETH_REGORIN
LBB0_18:
	shrl	$26, %ebx
	andl	$1, %ebx
	movl	%ebx, 16(%r12)
	movq	%r12, %rdi
	callq	_greth_mdio_init
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_21
## %bb.19:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_48
## %bb.20:
	movq	48(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_48
LBB0_21:
	movq	48(%r12), %rdi
	leaq	36(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	$1024, %esi                     ## imm = 0x400
	callq	_dma_alloc_coherent
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	48(%r12), %rdi
	leaq	56(%r12), %rdx
	movl	(%rbx), %ecx
	movl	$1024, %esi                     ## imm = 0x400
	callq	_dma_alloc_coherent
	movq	%rax, 64(%r12)
	testq	%rax, %rax
	je	LBB0_51
## %bb.24:
	movq	_macaddr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_33
## %bb.25:
	xorl	%eax, %eax
	cmpl	$0, 4(%rcx)
	jne	LBB0_33
## %bb.26:
	cmpl	$0, 8(%rcx)
	jne	LBB0_33
## %bb.27:
	cmpl	$0, 12(%rcx)
	jne	LBB0_33
## %bb.28:
	cmpl	$0, 16(%rcx)
	jne	LBB0_33
## %bb.29:
	cmpl	$0, 20(%rcx)
	jne	LBB0_33
## %bb.30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_of_get_mac_address
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	(%rcx), %eax
	jmp	LBB0_33
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_47
LBB0_51:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_46
LBB0_32:
	movl	(%r13), %eax
	movl	%eax, (%rcx)
	movdqu	8(%r13), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 4(%rcx)
	movdqu	24(%r13), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 12(%rcx)
	movl	40(%r13), %edx
	movl	%edx, 20(%rcx)
LBB0_33:
	movq	(%r14), %rdi
	movl	%eax, (%rdi)
	movl	4(%rcx), %eax
	movl	%eax, 4(%rdi)
	movl	8(%rcx), %eax
	movl	%eax, 8(%rdi)
	movl	12(%rcx), %eax
	movl	%eax, 12(%rdi)
	movl	16(%rcx), %eax
	movl	%eax, 16(%rdi)
	movl	20(%rcx), %eax
	movl	%eax, 20(%rdi)
	incl	20(%rcx)
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_34
## %bb.37:
	movl	8(%r15), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	shll	$8, %esi
	orl	4(%rax), %esi
	callq	_GRETH_REGSAVE
	movl	4(%r15), %edi
	movq	(%r14), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	16(%rax), %esi
	shll	$8, %esi
	orl	%edx, %esi
	orl	20(%rax), %esi
	callq	_GRETH_REGSAVE
	movl	(%r15), %edi
	movl	$255, %esi
	callq	_GRETH_REGSAVE
	cmpl	$0, 4(%r12)
	je	LBB0_39
## %bb.38:
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%r14)
	movq	_greth_start_xmit_gbit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_greth_netdev_ops@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
LBB0_39:
	cmpl	$0, 8(%r12)
	je	LBB0_41
## %bb.40:
	movq	_greth_set_multicast_list@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_greth_netdev_ops@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
	jmp	LBB0_42
LBB0_34:
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	48(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_err
LBB0_36:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_45
LBB0_41:
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%r14)
LBB0_42:
	movq	_greth_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_greth_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_52
## %bb.43:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movq	48(%r12), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_err
LBB0_45:
	movq	48(%r12), %rdi
	movq	64(%r12), %rdx
	movl	56(%r12), %ecx
	movl	$1024, %esi                     ## imm = 0x400
	callq	_dma_free_coherent
LBB0_46:
	movq	48(%r12), %rdi
	movq	40(%r12), %rdx
	movl	36(%r12), %ecx
	movl	$1024, %esi                     ## imm = 0x400
	callq	_dma_free_coherent
LBB0_47:
	movl	32(%r12), %edi
	callq	_mdiobus_unregister
LBB0_48:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	24(%r12), %r15
	movq	%rbx, %rdi
	callq	_resource_size
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_of_iounmap
LBB0_49:
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_50:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	addq	$72, %r12
	movq	_greth_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$64, %ecx
	callq	_netif_napi_add
	xorl	%r13d, %r13d
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_greth_debug,8,3                ## @greth_debug
	.comm	_GRETH_DEF_MSG_ENABLE,8,3       ## @GRETH_DEF_MSG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"grlib-greth regs"

L_.str.1:                               ## @.str.1
	.asciz	"ioremap failure.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"resetting controller.\n"

	.comm	_GRETH_RESET,4,2                ## @GRETH_RESET
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
L_.str.3:                               ## @.str.3
	.asciz	"timeout when waiting for reset.\n"

	.comm	_GRETH_CTRL_DISDUPLEX,4,2       ## @GRETH_CTRL_DISDUPLEX
L_.str.4:                               ## @.str.4
	.asciz	"failed to register MDIO bus\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_macaddr,8,3                    ## @macaddr
L_.str.5:                               ## @.str.5
	.asciz	"no valid ethernet address, aborting.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_greth_start_xmit_gbit,4,2      ## @greth_start_xmit_gbit
	.comm	_greth_netdev_ops,8,2           ## @greth_netdev_ops
	.comm	_greth_set_multicast_list,4,2   ## @greth_set_multicast_list
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_greth_ethtool_ops,4,2          ## @greth_ethtool_ops
L_.str.6:                               ## @.str.6
	.asciz	"netdevice registration failed.\n"

	.comm	_greth_poll,4,2                 ## @greth_poll
	.comm	_idprom,8,3                     ## @idprom
	.no_dead_strip	_greth_of_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function greth_of_probe
lCPI0_0:
	.long	4294967269                      ; 0xffffffe5
	.long	4294967271                      ; 0xffffffe7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_greth_of_probe:                        ; @greth_of_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
	mov	x20, x0
	mov	w0, #104
	bl	_alloc_etherdev
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x24, x20, #8
	str	x24, [x0, #48]
Lloh0:
	adrp	x8, _greth_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _greth_debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GRETH_DEF_MSG_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRETH_DEF_MSG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x8, x9, gt
	stp	x8, x19, [x0, #88]
	add	x0, x0, #80
	bl	_spin_lock_init
	ldr	x22, [x20]
	mov	x0, x22
	bl	_resource_size
	mov	x2, x0
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	bl	_of_ioremap
	str	x0, [x21, #24]
	cbz	x0, LBB0_10
; %bb.2:
	mov	x22, x0
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	str	w8, [x21, #76]
	ldr	x0, [x21, #48]
	mov	x1, x19
	bl	_dev_set_drvdata
	ldr	x1, [x21, #48]
	mov	x0, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x21, #48]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	ldr	w0, [x22, #12]
Lloh10:
	adrp	x25, _GRETH_RESET@GOTPAGE
Lloh11:
	ldr	x25, [x25, _GRETH_RESET@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_GRETH_REGSAVE
Lloh12:
	adrp	x26, _jiffies@GOTPAGE
Lloh13:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldrsw	x8, [x26]
Lloh14:
	adrp	x9, _HZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	add	x23, x8, w9, sxtw
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #12]
	bl	_GRETH_REGLOAD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	mov	x1, x23
	bl	_time_after
	cbz	x0, LBB0_5
; %bb.7:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w23, w8
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_44
; %bb.8:
	ldr	x0, [x21, #48]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_44
LBB0_9:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_46
LBB0_10:
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x21, #48]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_12:
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_45
LBB0_13:
	ldr	w0, [x22, #16]
	bl	_GRETH_REGLOAD
	ubfx	w8, w0, #11, #5
	str	w8, [x21]
	ldr	w0, [x22, #12]
	bl	_GRETH_REGLOAD
	mov	x23, x0
	dup.2s	v0, w0
Lloh30:
	adrp	x8, lCPI0_0@PAGE
Lloh31:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #1
	and.8b	v0, v0, v1
	stur	d0, [x21, #4]
	lsr	w8, w0, #31
	str	w8, [x21, #12]
	tbz	w0, #31, LBB0_15
; %bb.14:
	ldr	w0, [x22, #12]
Lloh32:
	adrp	x8, _GRETH_CTRL_DISDUPLEX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GRETH_CTRL_DISDUPLEX@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_GRETH_REGORIN
LBB0_15:
	ubfx	w8, w23, #26, #1
	str	w8, [x21, #16]
	mov	x0, x21
	bl	_greth_mdio_init
	cbz	w0, LBB0_18
; %bb.16:
	mov	x23, x0
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_44
; %bb.17:
	ldr	x0, [x21, #48]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_44
LBB0_18:
	ldr	x0, [x21, #48]
	add	x2, x21, #36
Lloh37:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh38:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	w1, #1024
	bl	_dma_alloc_coherent
	str	x0, [x21, #40]
	cbz	x0, LBB0_32
; %bb.19:
	ldr	x0, [x21, #48]
	add	x2, x21, #56
	ldr	w3, [x23]
	mov	w1, #1024
	bl	_dma_alloc_coherent
	str	x0, [x21, #64]
	cbz	x0, LBB0_33
; %bb.20:
Lloh39:
	adrp	x25, _macaddr@GOTPAGE
Lloh40:
	ldr	x25, [x25, _macaddr@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w9, [x8]
	cbnz	w9, LBB0_27
; %bb.21:
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_26
; %bb.22:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_26
; %bb.23:
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_26
; %bb.24:
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_26
; %bb.25:
	ldr	w9, [x8, #20]
	cbz	w9, LBB0_48
LBB0_26:
	mov	w9, #0
LBB0_27:
	ldr	x0, [x19]
	str	w9, [x0]
	ldr	w9, [x8, #4]
	str	w9, [x0, #4]
	ldr	w9, [x8, #8]
	str	w9, [x0, #8]
	ldr	w9, [x8, #12]
	str	w9, [x0, #12]
	ldr	w9, [x8, #16]
	str	w9, [x0, #16]
	ldr	w9, [x8, #20]
	str	w9, [x0, #20]
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_34
; %bb.28:
	ldr	w0, [x22, #8]
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	orr	w1, w8, w9, lsl #8
	bl	_GRETH_REGSAVE
	ldr	w0, [x22, #4]
	ldr	x8, [x19]
	ldp	w9, w10, [x8, #8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #16]
	orr	w9, w9, w10, lsl #8
	orr	w1, w9, w8
	bl	_GRETH_REGSAVE
	ldr	w0, [x22]
	mov	w1, #255
	bl	_GRETH_REGSAVE
	ldr	w9, [x21, #4]
Lloh41:
	adrp	x8, _greth_netdev_ops@GOTPAGE
Lloh42:
	ldr	x8, [x8, _greth_netdev_ops@GOTPAGEOFF]
	cbz	w9, LBB0_30
; %bb.29:
Lloh43:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh44:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x10, _NETIF_F_IP_CSUM@GOTPAGE
Lloh47:
	ldr	x10, [x10, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh49:
	adrp	x10, _NETIF_F_RXCSUM@GOTPAGE
Lloh50:
	ldr	x10, [x10, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh52:
	adrp	x10, _NETIF_F_HIGHDMA@GOTPAGE
Lloh53:
	ldr	x10, [x10, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	orr	w10, w10, w9
	stp	w9, w10, [x19, #8]
Lloh55:
	adrp	x9, _greth_start_xmit_gbit@GOTPAGE
Lloh56:
	ldr	x9, [x9, _greth_start_xmit_gbit@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	str	w9, [x8, #4]
LBB0_30:
	ldr	w9, [x21, #8]
	cbz	w9, LBB0_37
; %bb.31:
Lloh58:
	adrp	x9, _greth_set_multicast_list@GOTPAGE
Lloh59:
	ldr	x9, [x9, _greth_set_multicast_list@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	str	w9, [x8]
Lloh61:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh62:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	orr	w9, w10, w9
	b	LBB0_38
LBB0_32:
Lloh64:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_43
LBB0_33:
Lloh67:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_42
LBB0_34:
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_36
; %bb.35:
	ldr	x0, [x21, #48]
Lloh70:
	adrp	x1, l_.str.5@PAGE
Lloh71:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
LBB0_36:
Lloh72:
	adrp	x8, _EINVAL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_41
LBB0_37:
Lloh75:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh76:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	bic	w9, w10, w9
LBB0_38:
	str	w9, [x19, #32]
Lloh78:
	adrp	x9, _greth_ethtool_ops@GOTPAGE
Lloh79:
	ldr	x9, [x9, _greth_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	mov	x0, x19
	bl	_register_netdev
	mov	x23, x0
	cbz	w0, LBB0_47
; %bb.39:
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_41
; %bb.40:
	ldr	x0, [x21, #48]
Lloh80:
	adrp	x1, l_.str.6@PAGE
Lloh81:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
LBB0_41:
	ldr	x0, [x21, #48]
	ldr	x2, [x21, #64]
	ldr	w3, [x21, #56]
	mov	w1, #1024
	bl	_dma_free_coherent
LBB0_42:
	ldp	x2, x0, [x21, #40]
	ldr	w3, [x21, #36]
	mov	w1, #1024
	bl	_dma_free_coherent
LBB0_43:
	ldr	w0, [x21, #32]
	bl	_mdiobus_unregister
LBB0_44:
	ldr	x20, [x20]
	ldr	x21, [x21, #24]
	mov	x0, x20
	bl	_resource_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_of_iounmap
LBB0_45:
	mov	x0, x19
	bl	_free_netdev
LBB0_46:
	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_47:
	add	x1, x21, #72
Lloh82:
	adrp	x8, _greth_poll@GOTPAGE
Lloh83:
	ldr	x8, [x8, _greth_poll@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #64
	bl	_netif_napi_add
	b	LBB0_46
LBB0_48:
	ldr	w0, [x24]
	bl	_of_get_mac_address
	mov	x23, x0
	bl	_IS_ERR
	ldr	x8, [x25]
	cbz	w0, LBB0_50
; %bb.49:
	ldr	w9, [x8]
	b	LBB0_27
LBB0_50:
	ldp	q0, q1, [x23]
	xtn.2s	v0, v0
	xtn.2s	v1, v1
	stp	d0, d1, [x8]
	ldr	q1, [x23, #32]
	xtn.2s	v1, v1
	str	d1, [x8, #16]
	fmov	w9, s0
	b	LBB0_27
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.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 AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_greth_debug,8,3                ; @greth_debug
	.comm	_GRETH_DEF_MSG_ENABLE,8,3       ; @GRETH_DEF_MSG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"grlib-greth regs"

l_.str.1:                               ; @.str.1
	.asciz	"ioremap failure.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"resetting controller.\n"

	.comm	_GRETH_RESET,4,2                ; @GRETH_RESET
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
l_.str.3:                               ; @.str.3
	.asciz	"timeout when waiting for reset.\n"

	.comm	_GRETH_CTRL_DISDUPLEX,4,2       ; @GRETH_CTRL_DISDUPLEX
l_.str.4:                               ; @.str.4
	.asciz	"failed to register MDIO bus\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_macaddr,8,3                    ; @macaddr
l_.str.5:                               ; @.str.5
	.asciz	"no valid ethernet address, aborting.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_greth_start_xmit_gbit,4,2      ; @greth_start_xmit_gbit
	.comm	_greth_netdev_ops,8,2           ; @greth_netdev_ops
	.comm	_greth_set_multicast_list,4,2   ; @greth_set_multicast_list
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_greth_ethtool_ops,4,2          ; @greth_ethtool_ops
l_.str.6:                               ; @.str.6
	.asciz	"netdevice registration failed.\n"

	.comm	_greth_poll,4,2                 ; @greth_poll
	.comm	_idprom,8,3                     ; @idprom
	.no_dead_strip	_greth_of_probe
.subsections_via_symbols
