	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemini_ethernet_port_probe
_gemini_ethernet_port_probe:            ## @gemini_ethernet_port_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	$1, %r14d
LBB0_5:
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_TX_QUEUE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$104, %edi
	callq	_alloc_etherdev_mq
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	movq	%rax, %rbx
	callq	_netdev_priv
	movq	%r13, %r12
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 8(%r13)
	movl	%r14d, (%r13)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, 96(%r13)
	movq	%r15, 16(%r13)
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DEFAULT_MSG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 88(%r13)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rax, %rbx
	callq	_devm_ioremap_resource
	movq	%rax, 80(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	80(%r13), %rdi
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 72(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	72(%r13), %rdi
	jmp	LBB0_9
LBB0_18:
	leaq	L_.str.7(%rip), %rsi
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_19:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_22
## %bb.20:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, 4(%r13)
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 64(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	64(%r13), %rdi
	jmp	LBB0_9
LBB0_22:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	testl	%ebx, %ebx
	cmovnel	%ebx, %r12d
	jmp	LBB0_14
LBB0_23:
	movq	64(%r13), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.24:
	movq	%r13, %rdi
	callq	_gemini_port_save_mac_addr
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_reset_control_get_exclusive
	movq	%rax, 56(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	56(%r13), %rdi
	jmp	LBB0_9
LBB0_26:
	xorl	%r14d, %r14d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	sete	%r14b
	movq	56(%r13), %rdi
	callq	_reset_control_reset
	movl	$100, %edi
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_usleep_range
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, (%rdi,%r14,8)
	callq	_gemini_ethernet_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movl	(%r13), %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movl	%ebx, 4(%r14)
	movq	_gmac_351x_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	_gmac_351x_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	leaq	48(%r13), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	callq	_gmac_clear_hw_stats
	movq	_GMAC_OFFLOAD_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, 12(%r14)
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	$10236, %ecx                    ## imm = 0x27FC
	subq	(%rax), %rcx
	movq	%rcx, 24(%r14)
	movq	$0, 40(%r13)
	movq	%r13, %rsi
	addq	$32, %rsi
	movq	_gmac_napi_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DEFAULT_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_netif_napi_add
	movq	24(%r13), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	16(%r14), %edi
	movq	24(%r13), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	jmp	LBB0_29
LBB0_28:
	movq	24(%r13), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	8(%rax), %r8d
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movl	16(%r14), %edi
	callq	_eth_random_addr
LBB0_29:
	movq	%r14, %rdi
	callq	_gmac_write_mac_address
	movq	16(%r13), %rdi
	movl	(%r13), %eax
	movl	4(%r13), %esi
	movq	_gemini_port_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_gemini_port_irq_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leaq	l_reltable.gemini_ethernet_port_probe(%rip), %rbx
	movslq	(%rbx,%rax,4), %r9
	addq	%rbx, %r9
	movq	%r13, (%rsp)
	callq	_devm_request_threaded_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.30:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %r12d
	movq	$0, 8(%r13)
	movq	%r15, %rdi
	callq	_free_netdev
	jmp	LBB0_14
LBB0_32:
	movl	4(%r13), %edx
	leaq	L_.str.13(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r15, %rdi
	callq	_gmac_setup_phy
	testl	%eax, %eax
	je	LBB0_14
## %bb.33:
	leaq	L_.str.14(%rip), %rsi
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ethernet0"

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

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.gemini_ethernet_port_probe
l_reltable.gemini_ethernet_port_probe:
	.long	L_.str-l_reltable.gemini_ethernet_port_probe
	.long	L_.str.1-l_reltable.gemini_ethernet_port_probe

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"60008000.ethernet-port"

L_.str.3:                               ## @.str.3
	.asciz	"6000c000.ethernet-port"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"probe %s ID %d\n"

	.comm	_TX_QUEUE_NUM,4,2               ## @TX_QUEUE_NUM
L_.str.5:                               ## @.str.5
	.asciz	"Can't allocate ethernet device #%d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_debug,4,2                      ## @debug
	.comm	_DEFAULT_MSG_ENABLE,4,2         ## @DEFAULT_MSG_ENABLE
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.6:                               ## @.str.6
	.asciz	"no DMA resource\n"

L_.str.7:                               ## @.str.7
	.asciz	"no GMAC resource\n"

L_.str.8:                               ## @.str.8
	.asciz	"PCLK"

L_.str.9:                               ## @.str.9
	.asciz	"no PCLK\n"

L_.str.10:                              ## @.str.10
	.asciz	"no reset\n"

	.comm	_gmac_351x_ops,4,2              ## @gmac_351x_ops
	.comm	_gmac_351x_ethtool_ops,4,2      ## @gmac_351x_ethtool_ops
	.comm	_GMAC_OFFLOAD_FEATURES,4,2      ## @GMAC_OFFLOAD_FEATURES
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.comm	_gmac_napi_poll,4,2             ## @gmac_napi_poll
	.comm	_DEFAULT_NAPI_WEIGHT,4,2        ## @DEFAULT_NAPI_WEIGHT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.11:                              ## @.str.11
	.asciz	"ethernet address 0x%08x%08x%08x invalid\n"

L_.str.12:                              ## @.str.12
	.asciz	"using a random ethernet address\n"

	.comm	_gemini_port_irq,4,2            ## @gemini_port_irq
	.comm	_gemini_port_irq_thread,4,2     ## @gemini_port_irq_thread
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.13:                              ## @.str.13
	.asciz	"irq %d, DMA @ 0x%pap, GMAC @ 0x%pap\n"

L_.str.14:                              ## @.str.14
	.asciz	"PHY init failed, deferring to ifup time\n"

	.no_dead_strip	_gemini_ethernet_port_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemini_ethernet_port_probe
_gemini_ethernet_port_probe:            ; @gemini_ethernet_port_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x0, [x0]
	bl	_dev_get_drvdata
	mov	x24, x0
	mov	x0, x19
	bl	_dev_name
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	mov	x25, x0
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_dev_name
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_12
; %bb.2:
	mov	w22, #1
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x0, x19
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x22, [sp]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh6:
	adrp	x8, _TX_QUEUE_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_QUEUE_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #104
	bl	_alloc_etherdev_mq
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	str	w22, [x21]
	str	x24, [x21, #96]
	stp	x20, x19, [x21, #8]
Lloh9:
	adrp	x8, _debug@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _DEFAULT_MSG_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEFAULT_MSG_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x21, #88]
Lloh15:
	adrp	x23, _IORESOURCE_MEM@GOTPAGE
Lloh16:
	ldr	x23, [x23, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x21, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.7:
	ldr	x0, [x21, #80]
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_PTR_ERR
LBB0_9:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_14:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	cbz	x0, LBB0_18
; %bb.16:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_devm_ioremap_resource
	str	x0, [x21, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x0, [x21, #72]
	b	LBB0_8
LBB0_18:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_19:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x26, x0
	cmp	w0, #0
	b.le	LBB0_22
; %bb.20:
	str	w26, [x21, #4]
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.21:
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #64]
	b	LBB0_8
LBB0_22:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	csneg	w27, w26, w8, ne
	b	LBB0_14
LBB0_23:
	ldr	x0, [x21, #64]
	bl	_clk_prepare_enable
	mov	x27, x0
	cbnz	w0, LBB0_14
; %bb.24:
	mov	x0, x21
	bl	_gemini_port_save_mac_addr
	mov	x0, x19
	mov	x1, #0
	bl	_devm_reset_control_get_exclusive
	str	x0, [x21, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_26
; %bb.25:
Lloh34:
	adrp	x1, l_.str.10@PAGE
Lloh35:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #56]
	b	LBB0_8
LBB0_26:
	cmp	w25, #0
	cset	w25, eq
	ldr	x0, [x21, #56]
	bl	_reset_control_reset
	mov	w0, #100
	mov	w1, #500
	bl	_usleep_range
	str	x21, [x24, w25, uxtw #3]
	mov	x0, x24
	bl	_gemini_ethernet_init
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	w8, [x21]
Lloh36:
	adrp	x9, _gmac_351x_ops@GOTPAGE
Lloh37:
	ldr	x9, [x9, _gmac_351x_ops@GOTPAGEOFF]
	stp	w8, w26, [x20]
Lloh38:
	adrp	x8, _gmac_351x_ethtool_ops@GOTPAGE
Lloh39:
	ldr	x8, [x8, _gmac_351x_ethtool_ops@GOTPAGEOFF]
	stp	x8, x9, [x20, #40]
	add	x0, x21, #48
	bl	_spin_lock_init
	mov	x0, x20
	bl	_gmac_clear_hw_stats
Lloh40:
	adrp	x8, _GMAC_OFFLOAD_FEATURES@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GMAC_OFFLOAD_FEATURES@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh44:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	w10, [x20, #12]
	orr	w9, w9, w10
	stp	w8, w9, [x20, #8]
Lloh46:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh49:
	adrp	x8, _VLAN_ETH_HLEN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	mov	w9, #10236
	sub	x8, x9, x8
	str	x8, [x20, #24]
	str	xzr, [x21, #40]
	add	x1, x21, #32
Lloh52:
	adrp	x8, _gmac_napi_poll@GOTPAGE
Lloh53:
	ldr	x8, [x8, _gmac_napi_poll@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
Lloh55:
	adrp	x8, _DEFAULT_NAPI_WEIGHT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _DEFAULT_NAPI_WEIGHT@GOTPAGEOFF]
Lloh57:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_netif_napi_add
	ldr	x0, [x21, #24]
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_28
; %bb.27:
	ldr	w0, [x20, #16]
	ldr	x1, [x21, #24]
Lloh58:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	bl	_memcpy
	b	LBB0_29
LBB0_28:
	ldr	x8, [x21, #24]
	ldp	w2, w3, [x8]
	ldr	w4, [x8, #8]
Lloh61:
	adrp	x1, l_.str.11@PAGE
Lloh62:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh63:
	adrp	x1, l_.str.12@PAGE
Lloh64:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w0, [x20, #16]
	bl	_eth_random_addr
LBB0_29:
	mov	x0, x20
	bl	_gmac_write_mac_address
	ldr	x0, [x21, #16]
Lloh65:
	adrp	x8, _gemini_port_irq@GOTPAGE
Lloh66:
	ldr	x8, [x8, _gemini_port_irq@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
Lloh68:
	adrp	x8, _gemini_port_irq_thread@GOTPAGE
Lloh69:
	ldr	x8, [x8, _gemini_port_irq_thread@GOTPAGEOFF]
Lloh70:
	ldr	w3, [x8]
Lloh71:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh72:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh73:
	ldr	w4, [x8]
	ldp	w8, w1, [x21]
Lloh74:
	adrp	x9, l___const.gemini_ethernet_port_probe.port_names@PAGE
Lloh75:
	add	x9, x9, l___const.gemini_ethernet_port_probe.port_names@PAGEOFF
	ldr	x5, [x9, x8, lsl #3]
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x27, x0
	cbnz	w0, LBB0_14
; %bb.30:
	mov	x0, x20
	bl	_register_netdev
	cbz	w0, LBB0_32
; %bb.31:
	mov	x27, x0
	str	xzr, [x21, #8]
	mov	x0, x20
	bl	_free_netdev
	b	LBB0_14
LBB0_32:
	ldr	w8, [x21, #4]
	stp	x22, x23, [sp, #8]
	str	x8, [sp]
Lloh76:
	adrp	x1, l_.str.13@PAGE
Lloh77:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	x0, x20
	bl	_gmac_setup_phy
	cbz	w0, LBB0_34
; %bb.33:
Lloh78:
	adrp	x1, l_.str.14@PAGE
Lloh79:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
LBB0_34:
	mov	w27, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.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	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ethernet0"

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

	.section	__DATA,__const
	.p2align	3                               ; @__const.gemini_ethernet_port_probe.port_names
l___const.gemini_ethernet_port_probe.port_names:
	.quad	l_.str
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"60008000.ethernet-port"

l_.str.3:                               ; @.str.3
	.asciz	"6000c000.ethernet-port"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"probe %s ID %d\n"

	.comm	_TX_QUEUE_NUM,4,2               ; @TX_QUEUE_NUM
l_.str.5:                               ; @.str.5
	.asciz	"Can't allocate ethernet device #%d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_debug,4,2                      ; @debug
	.comm	_DEFAULT_MSG_ENABLE,4,2         ; @DEFAULT_MSG_ENABLE
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.6:                               ; @.str.6
	.asciz	"no DMA resource\n"

l_.str.7:                               ; @.str.7
	.asciz	"no GMAC resource\n"

l_.str.8:                               ; @.str.8
	.asciz	"PCLK"

l_.str.9:                               ; @.str.9
	.asciz	"no PCLK\n"

l_.str.10:                              ; @.str.10
	.asciz	"no reset\n"

	.comm	_gmac_351x_ops,4,2              ; @gmac_351x_ops
	.comm	_gmac_351x_ethtool_ops,4,2      ; @gmac_351x_ethtool_ops
	.comm	_GMAC_OFFLOAD_FEATURES,4,2      ; @GMAC_OFFLOAD_FEATURES
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.comm	_gmac_napi_poll,4,2             ; @gmac_napi_poll
	.comm	_DEFAULT_NAPI_WEIGHT,4,2        ; @DEFAULT_NAPI_WEIGHT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.11:                              ; @.str.11
	.asciz	"ethernet address 0x%08x%08x%08x invalid\n"

l_.str.12:                              ; @.str.12
	.asciz	"using a random ethernet address\n"

	.comm	_gemini_port_irq,4,2            ; @gemini_port_irq
	.comm	_gemini_port_irq_thread,4,2     ; @gemini_port_irq_thread
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.13:                              ; @.str.13
	.asciz	"irq %d, DMA @ 0x%pap, GMAC @ 0x%pap\n"

l_.str.14:                              ; @.str.14
	.asciz	"PHY init failed, deferring to ifup time\n"

	.no_dead_strip	_gemini_ethernet_port_probe
.subsections_via_symbols
