	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_pci_probe_main
_efx_pci_probe_main:                    ## @efx_pci_probe_main
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_efx_probe_all
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	%rbx, %rdi
	callq	_efx_init_napi
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_down_write
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_up_write
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
	jmp	LBB0_11
LBB0_3:
	movq	%rbx, %rdi
	callq	_efx_init_port
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	callq	_efx_nic_init_interrupt
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_efx_set_interrupt_affinity
	movq	%rbx, %rdi
	callq	_efx_enable_interrupts
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_efx_clear_interrupt_affinity
	movq	%rbx, %rdi
	callq	_efx_nic_fini_interrupt
LBB0_9:
	movq	%rbx, %rdi
	callq	_efx_fini_port
LBB0_10:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
LBB0_11:
	movq	%rbx, %rdi
	callq	_efx_fini_napi
	movq	%rbx, %rdi
	callq	_efx_remove_all
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialise NIC\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to initialise port\n"

	.no_dead_strip	_efx_pci_probe_main
.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_main
_efx_pci_probe_main:                    ; @efx_pci_probe_main
	.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	x19, x0
	bl	_efx_probe_all
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_efx_init_napi
	add	x21, x19, #12
	mov	x0, x21
	bl	_down_write
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	mov	x0, x21
	bl	_up_write
	cbz	w20, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	b	LBB0_10
LBB0_3:
	mov	x0, x19
	bl	_efx_init_port
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh5:
	adrp	x8, _probe@GOTPAGE
Lloh6:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_efx_nic_init_interrupt
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_efx_set_interrupt_affinity
	mov	x0, x19
	bl	_efx_enable_interrupts
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_efx_clear_interrupt_affinity
	mov	x0, x19
	bl	_efx_nic_fini_interrupt
LBB0_8:
	mov	x0, x19
	bl	_efx_fini_port
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
LBB0_10:
	mov	x0, x19
	bl	_efx_fini_napi
	mov	x0, x19
	bl	_efx_remove_all
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialise NIC\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to initialise port\n"

	.no_dead_strip	_efx_pci_probe_main
.subsections_via_symbols
