	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_pci_probe
_ef4_pci_probe:                         ## @ef4_pci_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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_EF4_MAX_CORE_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EF4_MAX_RX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %edi
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ef4_init_struct
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_info
	movq	%r15, %rdi
	callq	_ef4_probe_vpd_strings
	movq	%r15, %rdi
	callq	_ef4_init_io
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	%r15, %rdi
	callq	_ef4_pci_probe_main
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	8(%r15), %rcx
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	orl	(%rcx), %eax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r12), %eax
	movl	%eax, (%r12)
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rsi
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	orl	(%r13), %edx
	orl	(%rcx), %edx
	orl	%edx, 4(%r12)
	movl	(%r15), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, 8(%r12)
	movq	_NETIF_F_HW_VLAN_CTAG_FILTER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, (%r12)
	movq	%r15, %rdi
	callq	_ef4_register_netdev
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ef4_pci_remove_main
LBB0_13:
	movq	%r15, %rdi
	callq	_ef4_fini_io
LBB0_14:
	movq	%r15, %rdi
	callq	_ef4_fini_struct
LBB0_15:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_WARN_ON
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	%r12, %rdi
	callq	_free_netdev
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_probe@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_ef4_mtd_probe
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.7:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r13), %esi
	movl	4(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r8d
	callq	_netif_warn
LBB0_9:
	movq	%r14, %rdi
	callq	_pci_enable_pcie_error_reporting
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_16
## %bb.11:
	movl	(%r13), %esi
	movl	4(%r15), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %r8d
	callq	_netif_notice
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EF4_MAX_CORE_TX_QUEUES,4,2     ## @EF4_MAX_CORE_TX_QUEUES
	.comm	_EF4_MAX_RX_QUEUES,4,2          ## @EF4_MAX_RX_QUEUES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Solarflare NIC detected\n"

	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ## @NETIF_F_HW_VLAN_CTAG_FILTER
L_.str.1:                               ## @.str.1
	.asciz	"initialisation successful\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.2:                               ## @.str.2
	.asciz	"failed to create MTDs (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"PCIE error reporting unavailable (%d).\n"

	.comm	_drv,4,2                        ## @drv
L_.str.4:                               ## @.str.4
	.asciz	"initialisation failed. rc=%d\n"

	.no_dead_strip	_ef4_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_pci_probe
_ef4_pci_probe:                         ; @ef4_pci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EF4_MAX_CORE_TX_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EF4_MAX_CORE_TX_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _EF4_MAX_RX_QUEUES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EF4_MAX_RX_QUEUES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #16
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x22]
	str	x8, [x0, #8]
Lloh6:
	adrp	x24, _NETIF_F_HIGHDMA@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NETIF_F_HIGHDMA@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
	mov	x0, x21
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ef4_init_struct
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.2:
Lloh8:
	adrp	x23, _probe@GOTPAGE
Lloh9:
	ldr	x23, [x23, _probe@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x19, #4]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	mov	x0, x19
	bl	_ef4_probe_vpd_strings
	mov	x0, x19
	bl	_ef4_init_io
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_ef4_pci_probe_main
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
Lloh14:
	adrp	x10, _NETIF_F_RXCSUM@GOTPAGE
Lloh15:
	ldr	x10, [x10, _NETIF_F_RXCSUM@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w8, w8, w11
	ldp	w11, w12, [x21]
	orr	w8, w8, w11
	str	w8, [x21]
Lloh16:
	adrp	x11, _NETIF_F_HW_CSUM@GOTPAGE
Lloh17:
	ldr	x11, [x11, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	ldr	w9, [x9]
	orr	w9, w9, w11
	ldr	w11, [x24]
	orr	w9, w9, w11
	ldr	w10, [x10]
	orr	w9, w9, w10
	orr	w9, w9, w12
	ldr	w10, [x19]
	bic	w11, w8, w10
Lloh19:
	adrp	x12, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGE
Lloh20:
	ldr	x12, [x12, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGEOFF]
	stp	w9, w11, [x21, #4]
Lloh21:
	ldr	w11, [x12]
	bic	w8, w8, w11
	orr	w8, w8, w10
	str	w8, [x21]
	mov	x0, x19
	bl	_ef4_register_netdev
	cbz	w0, LBB0_11
; %bb.5:
	mov	x22, x0
	mov	x0, x19
	bl	_ef4_pci_remove_main
LBB0_6:
	mov	x0, x19
	bl	_ef4_fini_io
LBB0_7:
	mov	x0, x19
	bl	_ef4_fini_struct
LBB0_8:
	cmp	w22, #0
	cset	w0, gt
	bl	_WARN_ON
Lloh22:
	adrp	x8, _drv@GOTPAGE
Lloh23:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	str	x22, [sp]
Lloh25:
	adrp	x3, l_.str.4@PAGE
Lloh26:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	mov	x0, x21
	bl	_free_netdev
	b	LBB0_10
LBB0_9:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	w1, [x23]
	ldr	w2, [x19, #4]
Lloh30:
	adrp	x3, l_.str.1@PAGE
Lloh31:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	bl	_rtnl_lock
	mov	x0, x19
	bl	_ef4_mtd_probe
	mov	x21, x0
	bl	_rtnl_unlock
	cbz	w21, LBB0_14
; %bb.12:
Lloh32:
	adrp	x8, _EPERM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x23]
	ldr	w2, [x19, #4]
Lloh35:
	adrp	x3, l_.str.2@PAGE
Lloh36:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	bl	_netif_warn
LBB0_14:
	mov	x0, x20
	bl	_pci_enable_pcie_error_reporting
	cbz	w0, LBB0_16
; %bb.15:
	mov	x4, x0
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_16:
	mov	w22, #0
	b	LBB0_10
LBB0_17:
	ldr	w1, [x23]
	ldr	w2, [x19, #4]
Lloh40:
	adrp	x3, l_.str.3@PAGE
Lloh41:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_notice
	mov	w22, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_EF4_MAX_CORE_TX_QUEUES,4,2     ; @EF4_MAX_CORE_TX_QUEUES
	.comm	_EF4_MAX_RX_QUEUES,4,2          ; @EF4_MAX_RX_QUEUES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Solarflare NIC detected\n"

	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ; @NETIF_F_HW_VLAN_CTAG_FILTER
l_.str.1:                               ; @.str.1
	.asciz	"initialisation successful\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.2:                               ; @.str.2
	.asciz	"failed to create MTDs (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"PCIE error reporting unavailable (%d).\n"

	.comm	_drv,4,2                        ; @drv
l_.str.4:                               ; @.str.4
	.asciz	"initialisation failed. rc=%d\n"

	.no_dead_strip	_ef4_pci_probe
.subsections_via_symbols
