	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_probe
_xgene_enet_probe:                      ## @xgene_enet_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_XGENE_NUM_RX_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XGENE_NUM_TX_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %edi
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r12, 56(%rax)
	movq	%r15, 48(%rax)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_xgene_ndev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_xgene_enet_set_ethtool_ops
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_GSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	movq	_xgene_enet_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_xgene_enet_get_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.8:
	movq	%r14, %rdi
	callq	_xgene_enet_setup_ops
	leaq	44(%r14), %rdi
	callq	_spin_lock_init
	movq	8(%r14), %rax
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.9:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	leaq	40(%r14), %rdi
	callq	_spin_lock_init
LBB0_10:
	movl	(%r15), %eax
	movl	%eax, 4(%r15)
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_coerce_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	jmp	LBB0_27
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_3:
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	callq	_xgene_enet_check_phy_handle
	movq	%r14, %rdi
	callq	_xgene_enet_init_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.13:
	movq	8(%r14), %rdi
	movq	32(%r14), %rax
	movq	(%rax), %rbx
	cmpq	(%r13), %rdi
	jne	LBB0_14
LBB0_17:
	leaq	28(%r14), %rdi
	movq	%rbx, %rsi
	callq	_INIT_DELAYED_WORK
	jmp	LBB0_18
LBB0_14:
	cmpq	$0, 16(%r14)
	je	LBB0_15
LBB0_18:
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	callq	_xgene_extd_stats_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	%r14, %rdi
	callq	_xgene_enet_napi_add
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	jmp	LBB0_22
LBB0_15:
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_xgene_enet_mdio_config
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_18
LBB0_22:
	movq	%r14, %rdi
	callq	_xgene_enet_delete_desc_rings
LBB0_23:
	cmpq	$0, 16(%r14)
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_xgene_enet_phy_disconnect
	jmp	LBB0_27
LBB0_25:
	movq	8(%r14), %rdi
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	_xgene_enet_mdio_remove
	jmp	LBB0_27
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_NUM_RX_RING,4,2          ## @XGENE_NUM_RX_RING
	.comm	_XGENE_NUM_TX_RING,4,2          ## @XGENE_NUM_TX_RING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_xgene_ndev_ops,4,2             ## @xgene_ndev_ops
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_GSO,4,2                ## @NETIF_F_GSO
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_xgene_enet_of_match,4,2        ## @xgene_enet_of_match
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No usable DMA configuration\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to register netdev\n"

	.comm	_xgene_enet_acpi_match,4,2      ## @xgene_enet_acpi_match
	.no_dead_strip	_xgene_enet_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_probe
_xgene_enet_probe:                      ; @xgene_enet_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _XGENE_NUM_RX_RING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGENE_NUM_RX_RING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _XGENE_NUM_TX_RING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XGENE_NUM_TX_RING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #64
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	stp	x19, x21, [x0, #48]
	mov	x0, x19
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh6:
	adrp	x8, _xgene_ndev_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xgene_ndev_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_xgene_enet_set_ethtool_ops
Lloh8:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _NETIF_F_GSO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NETIF_F_GSO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh20:
	adrp	x8, _xgene_enet_of_match@GOTPAGE
Lloh21:
	ldr	x8, [x8, _xgene_enet_of_match@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_device
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x20]
	cbz	w8, LBB0_10
LBB0_3:
	mov	x0, x20
	bl	_xgene_enet_get_resources
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_xgene_enet_setup_ops
	add	x0, x20, #44
	bl	_spin_lock_init
	ldr	x8, [x20, #8]
Lloh23:
	adrp	x23, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh24:
	ldr	x23, [x23, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	add	x0, x20, #40
	bl	_spin_lock_init
LBB0_6:
	ldr	w8, [x19]
	str	w8, [x19, #4]
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x21
	bl	_dma_coerce_mask_and_coherent
	cbz	w0, LBB0_13
; %bb.7:
	mov	x22, x0
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_11
LBB0_8:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_9:
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
LBB0_10:
Lloh36:
	adrp	x8, _ENODEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x19
	bl	_free_netdev
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x20
	bl	_xgene_enet_check_phy_handle
	mov	x0, x20
	bl	_xgene_enet_init_hw
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.14:
	ldr	x8, [x20, #32]
	ldr	x21, [x8]
	ldr	x0, [x20, #8]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_16
LBB0_15:
	add	x0, x20, #28
	mov	x1, x21
	bl	_INIT_DELAYED_WORK
	b	LBB0_17
LBB0_16:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_20
LBB0_17:
	add	x0, x20, #24
	bl	_spin_lock_init
	mov	x0, x20
	bl	_xgene_extd_stats_init
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.18:
	mov	x0, x20
	bl	_xgene_enet_napi_add
	mov	x0, x19
	bl	_register_netdev
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.19:
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_22
LBB0_20:
	bl	_phy_interface_mode_is_rgmii
	cbz	x0, LBB0_15
; %bb.21:
	mov	x0, x20
	bl	_xgene_enet_mdio_config
	mov	x22, x0
	cbz	w0, LBB0_17
LBB0_22:
	mov	x0, x20
	bl	_xgene_enet_delete_desc_rings
LBB0_23:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_xgene_enet_phy_disconnect
	b	LBB0_11
LBB0_25:
	ldr	x0, [x20, #8]
	bl	_phy_interface_mode_is_rgmii
	cbz	x0, LBB0_11
; %bb.26:
	mov	x0, x20
	bl	_xgene_enet_mdio_remove
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_NUM_RX_RING,4,2          ; @XGENE_NUM_RX_RING
	.comm	_XGENE_NUM_TX_RING,4,2          ; @XGENE_NUM_TX_RING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_xgene_ndev_ops,4,2             ; @xgene_ndev_ops
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_GSO,4,2                ; @NETIF_F_GSO
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_xgene_enet_of_match,4,2        ; @xgene_enet_of_match
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No usable DMA configuration\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to register netdev\n"

	.comm	_xgene_enet_acpi_match,4,2      ; @xgene_enet_acpi_match
	.no_dead_strip	_xgene_enet_probe
.subsections_via_symbols
