	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_pci_probe
_efx_pci_probe:                         ## @efx_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	_EFX_MAX_CORE_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EFX_MAX_RX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %edi
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	%rax, 8(%r12)
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_efx_init_struct
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	_probe@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_info
	movq	8(%r12), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_efx_probe_vpd_strings
LBB0_5:
	movq	%r12, %rdi
	callq	_efx_init_io
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_15:
	movq	%r12, %rdi
	callq	_efx_fini_struct
LBB0_16:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_WARN_ON
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	%r15, %rdi
	callq	_free_netdev
	jmp	LBB0_17
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	callq	_efx_pci_probe_post_io
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	$0, 16(%r12)
	movq	%r12, %rdi
	callq	_efx_pci_probe_post_io
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	-41(%rbp), %rdi
	movl	$1, %esi
	callq	_get_random_bytes
	movzbl	-41(%rbp), %edi
	addl	$50, %edi
	callq	_msleep
	movq	$0, 16(%r12)
	movq	%r12, %rdi
	callq	_efx_pci_probe_post_io
	testl	%eax, %eax
	je	LBB0_9
## %bb.14:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_efx_fini_io
	jmp	LBB0_15
LBB0_9:
	movl	(%r13), %esi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r12, %rdi
	callq	_efx_mtd_probe
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.10:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_12
## %bb.11:
	movl	(%r13), %esi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %r8d
	callq	_netif_warn
LBB0_12:
	movq	%r14, %rdi
	callq	_pci_enable_pcie_error_reporting
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.13:
	movq	%r12, %rdi
	callq	*%rcx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_MAX_CORE_TX_QUEUES,4,2     ## @EFX_MAX_CORE_TX_QUEUES
	.comm	_EFX_MAX_RX_QUEUES,4,2          ## @EFX_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"

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	_drv,4,2                        ## @drv
L_.str.3:                               ## @.str.3
	.asciz	"initialisation failed. rc=%d\n"

	.no_dead_strip	_efx_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_pci_probe
_efx_pci_probe:                         ; @efx_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, _EFX_MAX_CORE_TX_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_MAX_CORE_TX_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _EFX_MAX_RX_QUEUES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFX_MAX_RX_QUEUES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #32
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x22]
	str	x8, [x0, #8]
Lloh6:
	adrp	x8, _NETIF_F_HIGHDMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	orr	w8, w9, w8
	str	w8, [x0, #24]
	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	_efx_init_struct
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh9:
	adrp	x23, _probe@GOTPAGE
Lloh10:
	ldr	x23, [x23, _probe@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x19]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_efx_probe_vpd_strings
LBB0_4:
	mov	x0, x19
	bl	_efx_init_io
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_efx_fini_struct
LBB0_6:
	cmp	w22, #0
	cset	w0, gt
	bl	_WARN_ON
Lloh13:
	adrp	x8, _drv@GOTPAGE
Lloh14:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x19]
	str	x22, [sp]
Lloh16:
	adrp	x3, l_.str.3@PAGE
Lloh17:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	mov	x0, x21
	bl	_free_netdev
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	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_9:
	mov	x0, x19
	bl	_efx_pci_probe_post_io
	cbz	w0, LBB0_13
; %bb.10:
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_efx_pci_probe_post_io
	cbz	w0, LBB0_13
; %bb.11:
	add	x0, sp, #15
	mov	w1, #1
	bl	_get_random_bytes
	ldrb	w8, [sp, #15]
	add	w0, w8, #50
	bl	_msleep
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_efx_pci_probe_post_io
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
	mov	x0, x19
	bl	_efx_fini_io
	b	LBB0_5
LBB0_13:
	ldr	w1, [x23]
	ldr	w2, [x19]
Lloh21:
	adrp	x3, l_.str.1@PAGE
Lloh22:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	bl	_rtnl_lock
	mov	x0, x19
	bl	_efx_mtd_probe
	mov	x21, x0
	bl	_rtnl_unlock
	cbz	w21, LBB0_16
; %bb.14:
Lloh23:
	adrp	x8, _EPERM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w1, [x23]
	ldr	w2, [x19]
Lloh26:
	adrp	x3, l_.str.2@PAGE
Lloh27:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	bl	_netif_warn
LBB0_16:
	mov	x0, x20
	bl	_pci_enable_pcie_error_reporting
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	blr	x8
LBB0_18:
	mov	w22, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_MAX_CORE_TX_QUEUES,4,2     ; @EFX_MAX_CORE_TX_QUEUES
	.comm	_EFX_MAX_RX_QUEUES,4,2          ; @EFX_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"

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	_drv,4,2                        ; @drv
l_.str.3:                               ; @.str.3
	.asciz	"initialisation failed. rc=%d\n"

	.no_dead_strip	_efx_pci_probe
.subsections_via_symbols
