	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_platform_probe
_xgbe_platform_probe:                   ## @xgbe_platform_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
	callq	_xgbe_alloc_pdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_60
LBB0_2:
	movq	%r14, 48(%rbx)
	movq	%r14, %rdi
	callq	_ACPI_COMPANION
	movl	%eax, 152(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	sete	%al
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_xgbe_get_vdata
	movq	%rax, 56(%rbx)
	movq	%rbx, %rdi
	callq	_xgbe_get_phy_pdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, 144(%rbx)
	movq	%rax, 136(%rbx)
	cmpq	%r14, %rax
	je	LBB0_5
## %bb.6:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xgbe_resource_count
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_59
LBB0_5:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xgbe_resource_count
	movl	%eax, %r13d
	addl	$-3, %r13d
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xgbe_resource_count
	movl	%eax, %r12d
	decl	%r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 128(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	128(%rbx), %rdi
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	128(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 120(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	120(%rbx), %rdi
	jmp	LBB0_9
LBB0_14:
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	120(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_16:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 112(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	112(%rbx), %rdi
	jmp	LBB0_9
LBB0_18:
	leal	1(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	112(%rbx), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_20:
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_devm_platform_ioremap_resource
	movq	%rax, 104(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	104(%rbx), %rdi
	jmp	LBB0_9
LBB0_22:
	addl	$2, %r13d
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	104(%rbx), %rdx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_24:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 96(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	96(%rbx), %rdi
LBB0_9:
	callq	_PTR_ERR
	movl	%eax, %r13d
LBB0_58:
	movq	%r15, %rdi
	callq	_platform_device_put
LBB0_59:
	movq	%rbx, %rdi
	callq	_xgbe_free_pdata
LBB0_60:
	leaq	L_.str.14(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_notice
LBB0_61:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	96(%rbx), %rdx
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_28:
	movq	_XGBE_MAC_ADDR_PROPERTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	88(%rbx), %edx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_device_property_read_u8_array
	testl	%eax, %eax
	je	LBB0_29
## %bb.55:
	movl	%eax, %r13d
	movq	_XGBE_MAC_ADDR_PROPERTY@GOTPCREL(%rip), %rax
LBB0_57:
	movl	(%rax), %edx
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_58
LBB0_29:
	movq	_XGBE_MAC_ADDR_PROPERTY@GOTPCREL(%rip), %r13
	movl	88(%rbx), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_30
## %bb.32:
	movq	_XGBE_PHY_MODE_PROPERTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_string
	testl	%eax, %eax
	je	LBB0_33
## %bb.56:
	movl	%eax, %r13d
	movq	_XGBE_PHY_MODE_PROPERTY@GOTPCREL(%rip), %rax
	jmp	LBB0_57
LBB0_30:
	movl	(%r13), %edx
	jmp	LBB0_31
LBB0_33:
	movq	-72(%rbp), %r13
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_phy_modes
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	_XGBE_PHY_MODE_PROPERTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_31:
	leaq	L_.str.11(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_58
LBB0_35:
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_XGBE_DMA_IRQS_PROPERTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_device_property_present
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movl	$1, 4(%rbx)
	movq	_XGBE_IRQ_MODE_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
LBB0_37:
	cmpl	$0, (%rbx)
	je	LBB0_39
## %bb.38:
	movq	%rbx, %rdi
	callq	_xgbe_acpi_support
	jmp	LBB0_40
LBB0_39:
	movq	%rbx, %rdi
	callq	_xgbe_of_support
LBB0_40:
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_58
## %bb.41:
	movq	%r14, %rdi
	callq	_device_get_dma_attr
	movq	_DEV_DMA_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_43
## %bb.42:
	leaq	L_.str.12(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_58
LBB0_43:
	movq	_DEV_DMA_COHERENT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	%edx, 8(%rbx)
	movq	_XGBE_DMA_SYS_AWCR@GOTPCREL(%rip), %rax
	cmoveq	_XGBE_DMA_OS_AWCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_XGBE_DMA_SYS_ARCR@GOTPCREL(%rip), %rcx
	cmoveq	_XGBE_DMA_OS_ARCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 76(%rbx)
	movl	%eax, 72(%rbx)
	movq	56(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 68(%rbx)
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	%rbx, %rdi
	callq	_xgbe_set_counts
	movl	$2, 12(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_58
## %bb.44:
	movl	%r13d, 16(%rbx)
	cmpl	$0, 4(%rbx)
	je	LBB0_52
## %bb.45:
	movq	24(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_51
## %bb.46:
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_51
## %bb.47:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%rbx), %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_58
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=1
	movq	24(%rbx), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, -4(%rax,%rsi,4)
	cmpq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	jae	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=1
	incq	%rsi
	cmpl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	jb	LBB0_48
LBB0_51:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rbx)
	addl	%eax, 12(%rbx)
LBB0_52:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_58
## %bb.53:
	movl	%r13d, 36(%rbx)
	movq	%rbx, %rdi
	callq	_xgbe_config_netdev
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_58
## %bb.54:
	movl	40(%rbx), %edi
	leaq	L_.str.13(%rip), %rsi
	callq	_netdev_notice
	xorl	%r13d, %r13d
	jmp	LBB0_61
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to obtain phy device\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"xgmac ioremap failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"xgmac_regs = %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"xpcs ioremap failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"xpcs_regs  = %p\n"

L_.str.5:                               ## @.str.5
	.asciz	"rxtx ioremap failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"rxtx_regs  = %p\n"

L_.str.7:                               ## @.str.7
	.asciz	"sir0 ioremap failed\n"

L_.str.8:                               ## @.str.8
	.asciz	"sir0_regs  = %p\n"

L_.str.9:                               ## @.str.9
	.asciz	"sir1 ioremap failed\n"

L_.str.10:                              ## @.str.10
	.asciz	"sir1_regs  = %p\n"

	.comm	_XGBE_MAC_ADDR_PROPERTY,4,2     ## @XGBE_MAC_ADDR_PROPERTY
L_.str.11:                              ## @.str.11
	.asciz	"invalid %s property\n"

	.comm	_XGBE_PHY_MODE_PROPERTY,4,2     ## @XGBE_PHY_MODE_PROPERTY
	.comm	_PHY_INTERFACE_MODE_XGMII,4,2   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_XGBE_DMA_IRQS_PROPERTY,4,2     ## @XGBE_DMA_IRQS_PROPERTY
	.comm	_XGBE_IRQ_MODE_EDGE,4,2         ## @XGBE_IRQ_MODE_EDGE
	.comm	_DEV_DMA_NOT_SUPPORTED,4,2      ## @DEV_DMA_NOT_SUPPORTED
L_.str.12:                              ## @.str.12
	.asciz	"DMA is not supported"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DEV_DMA_COHERENT,4,2           ## @DEV_DMA_COHERENT
	.comm	_XGBE_DMA_OS_ARCR,4,2           ## @XGBE_DMA_OS_ARCR
	.comm	_XGBE_DMA_OS_AWCR,4,2           ## @XGBE_DMA_OS_AWCR
	.comm	_XGBE_DMA_SYS_ARCR,4,2          ## @XGBE_DMA_SYS_ARCR
	.comm	_XGBE_DMA_SYS_AWCR,4,2          ## @XGBE_DMA_SYS_AWCR
L_.str.13:                              ## @.str.13
	.asciz	"net device enabled\n"

L_.str.14:                              ## @.str.14
	.asciz	"net device not enabled\n"

	.no_dead_strip	_xgbe_platform_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_platform_probe
_xgbe_platform_probe:                   ; @xgbe_platform_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
	bl	_xgbe_alloc_pdata
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_28
LBB0_2:
	str	x19, [x20, #48]
	mov	x0, x19
	bl	_ACPI_COMPANION
	str	w0, [x20, #152]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x20]
	mov	x0, x20
	bl	_xgbe_get_vdata
	str	x0, [x20, #56]
	mov	x0, x20
	bl	_xgbe_get_phy_pdev
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	stp	x0, x0, [x20, #136]
	cmp	x0, x19
	b.eq	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_resource_count
	mov	x23, x0
	mov	w22, #0
	mov	w24, #0
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_27
LBB0_6:
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_resource_count
	sub	w24, w0, #3
Lloh11:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgbe_resource_count
	sub	w22, w0, #1
	mov	x23, x22
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #128]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #128]
	b	LBB0_25
LBB0_9:
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x2, [x20, #128]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #120]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #120]
	b	LBB0_25
LBB0_13:
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x2, [x20, #120]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_15:
	mov	x0, x21
	mov	x1, x24
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #112]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.16:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #112]
	b	LBB0_25
LBB0_17:
	add	w25, w24, #1
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x2, [x20, #112]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_19:
	mov	x0, x21
	mov	x1, x25
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #104]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.20:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #104]
	b	LBB0_25
LBB0_21:
	add	w24, w24, #2
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_23
; %bb.22:
	ldr	x2, [x20, #104]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_23:
	mov	x0, x21
	mov	x1, x24
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_30
; %bb.24:
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #96]
LBB0_25:
	bl	_PTR_ERR
	mov	x24, x0
LBB0_26:
	mov	x0, x21
	bl	_platform_device_put
LBB0_27:
	mov	x0, x20
	bl	_xgbe_free_pdata
LBB0_28:
Lloh32:
	adrp	x1, l_.str.14@PAGE
Lloh33:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_dev_notice
LBB0_29:
	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_30:
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_32
; %bb.31:
	ldr	x2, [x20, #96]
Lloh34:
	adrp	x1, l_.str.10@PAGE
Lloh35:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_32:
Lloh36:
	adrp	x25, _XGBE_MAC_ADDR_PROPERTY@GOTPAGE
Lloh37:
	ldr	x25, [x25, _XGBE_MAC_ADDR_PROPERTY@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x20, #88]
	mov	x0, x19
	mov	w3, #4
	bl	_device_property_read_u8_array
	cbz	w0, LBB0_34
LBB0_33:
	mov	x24, x0
	ldr	w8, [x25]
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_26
LBB0_34:
	ldr	w0, [x20, #88]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_37
; %bb.35:
Lloh40:
	adrp	x25, _XGBE_PHY_MODE_PROPERTY@GOTPAGE
Lloh41:
	ldr	x25, [x25, _XGBE_PHY_MODE_PROPERTY@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #8
	mov	x0, x19
	bl	_device_property_read_string
	cbnz	w0, LBB0_33
; %bb.36:
	ldr	x24, [sp, #8]
Lloh42:
	adrp	x26, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh43:
	ldr	x26, [x26, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_phy_modes
	mov	x1, x0
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_39
LBB0_37:
	ldr	w8, [x25]
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.11@PAGE
Lloh45:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_26
LBB0_39:
	ldr	w8, [x26]
	str	w8, [x20, #84]
Lloh48:
	adrp	x8, _XGBE_DMA_IRQS_PROPERTY@GOTPAGE
Lloh49:
	ldr	x8, [x8, _XGBE_DMA_IRQS_PROPERTY@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_device_property_present
	cbz	x0, LBB0_41
; %bb.40:
	mov	w8, #1
	str	w8, [x20, #4]
Lloh51:
	adrp	x8, _XGBE_IRQ_MODE_EDGE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _XGBE_IRQ_MODE_EDGE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x20, #80]
LBB0_41:
	ldr	w8, [x20]
	cbz	w8, LBB0_43
; %bb.42:
	mov	x0, x20
	bl	_xgbe_acpi_support
	b	LBB0_44
LBB0_43:
	mov	x0, x20
	bl	_xgbe_of_support
LBB0_44:
	mov	x24, x0
	cbnz	w0, LBB0_26
; %bb.45:
	mov	x0, x19
	bl	_device_get_dma_attr
Lloh54:
	adrp	x8, _DEV_DMA_NOT_SUPPORTED@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DEV_DMA_NOT_SUPPORTED@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_47
; %bb.46:
Lloh57:
	adrp	x1, l_.str.12@PAGE
Lloh58:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh59:
	adrp	x8, _ENODEV@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_38
LBB0_47:
Lloh61:
	adrp	x8, _DEV_DMA_COHERENT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _DEV_DMA_COHERENT@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w8, eq
	str	w8, [x20, #8]
Lloh64:
	adrp	x8, _XGBE_DMA_OS_AWCR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _XGBE_DMA_OS_AWCR@GOTPAGEOFF]
Lloh66:
	adrp	x9, _XGBE_DMA_SYS_AWCR@GOTPAGE
Lloh67:
	ldr	x9, [x9, _XGBE_DMA_SYS_AWCR@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh68:
	adrp	x9, _XGBE_DMA_OS_ARCR@GOTPAGE
Lloh69:
	ldr	x9, [x9, _XGBE_DMA_OS_ARCR@GOTPAGEOFF]
Lloh70:
	adrp	x10, _XGBE_DMA_SYS_ARCR@GOTPAGE
Lloh71:
	ldr	x10, [x10, _XGBE_DMA_SYS_ARCR@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x20, #72]
	ldr	x8, [x20, #56]
	ldr	d0, [x8]
	str	d0, [x20, #64]
	mov	x0, x20
	bl	_xgbe_set_counts
	mov	w8, #2
	str	w8, [x20, #12]
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_26
; %bb.48:
	str	w24, [x20, #16]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_56
; %bb.49:
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	mov	x27, x0
	cbz	w0, LBB0_55
; %bb.50:
	cmp	w23, #2
	b.lo	LBB0_55
; %bb.51:
	mov	x8, #0
	mov	w26, w27
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	add	w1, w8, #1
	ldr	x0, [x20, #48]
	bl	_platform_get_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_26
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=1
	ldr	x8, [x20, #24]
	str	w24, [x8, x25, lsl #2]
	add	x8, x25, #1
	cmp	x8, x26
	b.hs	LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_52 Depth=1
	add	w9, w25, #2
	cmp	w9, w23
	b.lo	LBB0_52
LBB0_55:
	str	w27, [x20, #32]
	ldr	w8, [x20, #12]
	add	w8, w8, w27
	str	w8, [x20, #12]
LBB0_56:
	mov	x0, x21
	mov	x1, x22
	bl	_platform_get_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_26
; %bb.57:
	str	w24, [x20, #36]
	mov	x0, x20
	bl	_xgbe_config_netdev
	mov	x24, x0
	cbnz	w0, LBB0_26
; %bb.58:
	ldr	w0, [x20, #40]
Lloh72:
	adrp	x1, l_.str.13@PAGE
Lloh73:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_netdev_notice
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to obtain phy device\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"xgmac ioremap failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"xgmac_regs = %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"xpcs ioremap failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"xpcs_regs  = %p\n"

l_.str.5:                               ; @.str.5
	.asciz	"rxtx ioremap failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"rxtx_regs  = %p\n"

l_.str.7:                               ; @.str.7
	.asciz	"sir0 ioremap failed\n"

l_.str.8:                               ; @.str.8
	.asciz	"sir0_regs  = %p\n"

l_.str.9:                               ; @.str.9
	.asciz	"sir1 ioremap failed\n"

l_.str.10:                              ; @.str.10
	.asciz	"sir1_regs  = %p\n"

	.comm	_XGBE_MAC_ADDR_PROPERTY,4,2     ; @XGBE_MAC_ADDR_PROPERTY
l_.str.11:                              ; @.str.11
	.asciz	"invalid %s property\n"

	.comm	_XGBE_PHY_MODE_PROPERTY,4,2     ; @XGBE_PHY_MODE_PROPERTY
	.comm	_PHY_INTERFACE_MODE_XGMII,4,2   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_XGBE_DMA_IRQS_PROPERTY,4,2     ; @XGBE_DMA_IRQS_PROPERTY
	.comm	_XGBE_IRQ_MODE_EDGE,4,2         ; @XGBE_IRQ_MODE_EDGE
	.comm	_DEV_DMA_NOT_SUPPORTED,4,2      ; @DEV_DMA_NOT_SUPPORTED
l_.str.12:                              ; @.str.12
	.asciz	"DMA is not supported"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DEV_DMA_COHERENT,4,2           ; @DEV_DMA_COHERENT
	.comm	_XGBE_DMA_OS_ARCR,4,2           ; @XGBE_DMA_OS_ARCR
	.comm	_XGBE_DMA_OS_AWCR,4,2           ; @XGBE_DMA_OS_AWCR
	.comm	_XGBE_DMA_SYS_ARCR,4,2          ; @XGBE_DMA_SYS_ARCR
	.comm	_XGBE_DMA_SYS_AWCR,4,2          ; @XGBE_DMA_SYS_AWCR
l_.str.13:                              ; @.str.13
	.asciz	"net device enabled\n"

l_.str.14:                              ; @.str.14
	.asciz	"net device not enabled\n"

	.no_dead_strip	_xgbe_platform_probe
.subsections_via_symbols
