	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_pf_probe
_enetc_pf_probe:                        ## @enetc_pf_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	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_enetc_pci_probe
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_23
LBB0_5:
	movq	%r12, %rdi
	callq	_pci_get_drvdata
	cmpl	$0, 12(%rax)
	je	LBB0_7
## %bb.6:
	movq	%rax, %r14
	cmpl	$0, 8(%rax)
	je	LBB0_7
## %bb.9:
	movq	%r14, %rdi
	callq	_enetc_si_priv
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	%r12, %rdi
	callq	_pci_sriov_get_totalvfs
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_enetc_configure_port
	movq	%r14, %rdi
	callq	_enetc_get_si_caps
	movq	_ENETC_MAX_NUM_TXQS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_alloc_etherdev_mq
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r15
	movq	_enetc_ndev_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_enetc_pf_netdev_setup
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_enetc_init_si_rings_params
	movq	%r13, %rdi
	callq	_enetc_alloc_si_resources
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_22
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_13:
	movq	%r13, %rdi
	callq	_enetc_alloc_msix
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_15:
	movq	%r13, %rdi
	callq	_enetc_of_get_phy
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_17:
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_enetc_of_put_phy
	movq	%r13, %rdi
	callq	_enetc_free_msix
LBB0_20:
	movq	%r13, %rdi
	callq	_enetc_free_si_resources
LBB0_21:
	movq	$0, (%r14)
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_22:
	movq	%r12, %rdi
	callq	_enetc_pci_remove
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_enetc_drv_name@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_enetc_drv_ver@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.7(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_netif_info
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device is disabled, skipping\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.1:                               ## @.str.1
	.asciz	"PCI probing failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not map PF space, probing a VF?\n"

	.comm	_ENETC_MAX_NUM_TXQS,4,2         ## @ENETC_MAX_NUM_TXQS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"netdev creation failed\n"

	.comm	_enetc_ndev_ops,4,2             ## @enetc_ndev_ops
L_.str.4:                               ## @.str.4
	.asciz	"SI resource alloc failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"MSIX alloc failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"Fallback to PHY-less operation\n"

	.comm	_probe,4,2                      ## @probe
L_.str.7:                               ## @.str.7
	.asciz	"%s v%s\n"

	.comm	_enetc_drv_name,4,2             ## @enetc_drv_name
	.comm	_enetc_drv_ver,4,2              ## @enetc_drv_ver
	.no_dead_strip	_enetc_pf_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_pf_probe
_enetc_pf_probe:                        ; @enetc_pf_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	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_of_device_is_available
	cbz	w0, LBB0_9
LBB0_2:
Lloh0:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_enetc_pci_probe
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_22
LBB0_4:
	mov	x0, x19
	bl	_pci_get_drvdata
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_10
; %bb.5:
	mov	x20, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_enetc_si_priv
	mov	x21, x0
	str	x20, [x0, #8]
	mov	x0, x19
	bl	_pci_sriov_get_totalvfs
	str	w0, [x21]
	mov	x0, x21
	bl	_enetc_configure_port
	mov	x0, x20
	bl	_enetc_get_si_caps
Lloh5:
	adrp	x8, _ENETC_MAX_NUM_TXQS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENETC_MAX_NUM_TXQS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_alloc_etherdev_mq
	cbz	x0, LBB0_12
; %bb.7:
	mov	x21, x0
Lloh8:
	adrp	x2, _enetc_ndev_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _enetc_ndev_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_enetc_pf_netdev_setup
	mov	x0, x21
	bl	_netdev_priv
	mov	x23, x0
	bl	_enetc_init_si_rings_params
	mov	x0, x23
	bl	_enetc_alloc_si_resources
	cbz	w0, LBB0_13
; %bb.8:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_20
LBB0_9:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_22
LBB0_10:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_21
LBB0_12:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_13:
	mov	x0, x23
	bl	_enetc_alloc_msix
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_19
LBB0_15:
	mov	x0, x23
	bl	_enetc_of_get_phy
	cbz	w0, LBB0_17
; %bb.16:
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_17:
	mov	x0, x21
	bl	_register_netdev
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.18:
	mov	x0, x23
	bl	_enetc_of_put_phy
	mov	x0, x23
	bl	_enetc_free_msix
LBB0_19:
	mov	x0, x23
	bl	_enetc_free_si_resources
LBB0_20:
	str	xzr, [x20]
	mov	x0, x21
	bl	_free_netdev
LBB0_21:
	mov	x0, x19
	bl	_enetc_pci_remove
LBB0_22:
	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_23:
	mov	x0, x21
	bl	_netif_carrier_off
Lloh31:
	adrp	x8, _probe@GOTPAGE
Lloh32:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _enetc_drv_name@GOTPAGE
Lloh35:
	ldr	x8, [x8, _enetc_drv_name@GOTPAGEOFF]
Lloh36:
	ldr	w4, [x8]
Lloh37:
	adrp	x8, _enetc_drv_ver@GOTPAGE
Lloh38:
	ldr	x8, [x8, _enetc_drv_ver@GOTPAGEOFF]
Lloh39:
	ldr	w5, [x8]
Lloh40:
	adrp	x3, l_.str.7@PAGE
Lloh41:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_netif_info
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device is disabled, skipping\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.1:                               ; @.str.1
	.asciz	"PCI probing failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not map PF space, probing a VF?\n"

	.comm	_ENETC_MAX_NUM_TXQS,4,2         ; @ENETC_MAX_NUM_TXQS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"netdev creation failed\n"

	.comm	_enetc_ndev_ops,4,2             ; @enetc_ndev_ops
l_.str.4:                               ; @.str.4
	.asciz	"SI resource alloc failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"MSIX alloc failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"Fallback to PHY-less operation\n"

	.comm	_probe,4,2                      ; @probe
l_.str.7:                               ; @.str.7
	.asciz	"%s v%s\n"

	.comm	_enetc_drv_name,4,2             ; @enetc_drv_name
	.comm	_enetc_drv_ver,4,2              ; @enetc_drv_ver
	.no_dead_strip	_enetc_pf_probe
.subsections_via_symbols
