	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_init_nic
_efx_ef10_init_nic:                     ## @efx_ef10_init_nic
	.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, %r15
	movq	24(%rdi), %r12
	cmpl	$0, (%r12)
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_efx_ef10_init_datapath_caps
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	movl	$0, (%r12)
LBB0_3:
	cmpl	$0, 4(%r12)
	je	LBB0_6
## %bb.4:
	movl	24(%r12), %edx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_efx_ef10_alloc_vis
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.5:
	movl	$0, 4(%r12)
LBB0_6:
	cmpl	$0, 8(%r12)
	je	LBB0_16
## %bb.7:
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.8:
	movq	%r15, %rdi
	callq	_efx_ef10_alloc_piobufs
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_efx_ef10_link_piobufs
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_efx_ef10_free_piobufs
LBB0_11:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_12
LBB0_14:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_dbg
	jmp	LBB0_15
LBB0_12:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	callq	_netif_err
LBB0_15:
	movl	$0, 8(%r12)
LBB0_16:
	movq	8(%r15), %rax
	movl	(%r15), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	*(%rax)
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_EPERM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_15
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not permitted to restore PIO buffers\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to restore PIO buffers (%d)\n"

	.no_dead_strip	_efx_ef10_init_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_init_nic
_efx_ef10_init_nic:                     ; @efx_ef10_init_nic
	.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
	ldr	x21, [x0, #24]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_efx_ef10_init_datapath_caps
	cbnz	w0, LBB0_16
; %bb.2:
	str	wzr, [x21]
LBB0_3:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w1, [x21, #24]
	mov	x0, x19
	mov	x2, x1
	bl	_efx_ef10_alloc_vis
	cbnz	w0, LBB0_16
; %bb.5:
	str	wzr, [x21, #4]
LBB0_6:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_15
; %bb.7:
	ldr	x1, [x21, #16]
	cbz	x1, LBB0_15
; %bb.8:
	mov	x0, x19
	bl	_efx_ef10_alloc_piobufs
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_efx_ef10_link_piobufs
	cbz	w0, LBB0_17
; %bb.10:
	mov	x20, x0
	mov	x0, x19
	bl	_efx_ef10_free_piobufs
LBB0_11:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_13
LBB0_12:
Lloh3:
	adrp	x8, _drv@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_err
LBB0_14:
	str	wzr, [x21, #8]
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	x3, #0
	blr	x8
	mov	w0, #0
LBB0_16:
	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_17:
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not permitted to restore PIO buffers\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to restore PIO buffers (%d)\n"

	.no_dead_strip	_efx_ef10_init_nic
.subsections_via_symbols
