	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xge_probe
_xge_probe:                             ## @xge_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$24, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r12, 16(%rax)
	movq	%r15, 8(%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	_NETIF_F_GSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	movq	%r14, %rdi
	callq	_xge_get_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movl	(%r15), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_xge_set_ethtool_ops
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_coerce_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_9:
	movq	%r15, %rdi
	callq	_netdev_err
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	%r15, %rdi
	callq	_xge_init_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r15, %rdi
	callq	_xge_mdio_config
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_xge_napi@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_netif_napi_add
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_xgene_ndev_ops,4,2             ## @xgene_ndev_ops
	.comm	_NETIF_F_GSO,4,2                ## @NETIF_F_GSO
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No usable DMA configuration\n"

	.comm	_xge_napi,4,2                   ## @xge_napi
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register netdev\n"

	.no_dead_strip	_xge_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xge_probe
_xge_probe:                             ; @xge_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	mov	w0, #24
	bl	_alloc_etherdev
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	stp	x19, x21, [x0, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh0:
	adrp	x8, _xgene_ndev_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xgene_ndev_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh2:
	adrp	x8, _NETIF_F_GSO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETIF_F_GSO@GOTPAGEOFF]
Lloh4:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	mov	x0, x20
	bl	_xge_get_resources
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w8, [x19]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_xge_set_ethtool_ops
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x21
	bl	_dma_coerce_mask_and_coherent
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_xge_init_hw
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_xge_mdio_config
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_free_netdev
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh13:
	adrp	x8, _xge_napi@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xge_napi@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_netif_napi_add
	mov	x0, x19
	bl	_register_netdev
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.11:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_xgene_ndev_ops,4,2             ; @xgene_ndev_ops
	.comm	_NETIF_F_GSO,4,2                ; @NETIF_F_GSO
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No usable DMA configuration\n"

	.comm	_xge_napi,4,2                   ; @xge_napi
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register netdev\n"

	.no_dead_strip	_xge_probe
.subsections_via_symbols
