	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_probe_nic
_ef4_probe_nic:                         ## @ef4_probe_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rdi), %edx
	leaq	L_.str(%rip), %rcx
	callq	_netif_dbg
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 44(%r14)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 40(%r14)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ef4_probe_interrupts
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ef4_set_channels
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	movl	%eax, %ebx
	xorl	%eax, %eax
	subl	(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ef4_remove_interrupts
	xorl	%eax, %eax
	subl	(%r15), %eax
	jmp	LBB0_11
LBB0_4:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_12:
	cmpl	$2, (%r14)
	jl	LBB0_14
## %bb.13:
	leaq	36(%r14), %rdi
	movl	$4, %esi
	callq	_netdev_rss_key_fill
LBB0_14:
	movq	%r14, %rdi
	callq	_ef4_set_default_rx_indir_table
	movl	28(%r14), %edi
	movl	32(%r14), %esi
	callq	_netif_set_real_num_tx_queues
	movl	24(%r14), %esi
	movl	28(%r14), %edi
	callq	_netif_set_real_num_rx_queues
	movl	16(%r14), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_UP
	movl	%eax, 20(%r14)
	movq	_tx_irq_mod_usec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rx_irq_mod_usec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_ef4_init_irq_moderation
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_15:
	movq	%r14, %rdi
	callq	_ef4_remove_interrupts
LBB0_16:
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*16(%rax)
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"creating NIC\n"

	.comm	_drv,4,2                        ## @drv
L_.str.1:                               ## @.str.1
	.asciz	"Insufficient resources to allocate any channels\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_tx_irq_mod_usec,4,2            ## @tx_irq_mod_usec
	.comm	_rx_irq_mod_usec,4,2            ## @rx_irq_mod_usec
	.no_dead_strip	_ef4_probe_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_probe_nic
_ef4_probe_nic:                         ; @ef4_probe_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
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0, #28]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netif_dbg
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.1:
Lloh5:
	adrp	x21, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _EAGAIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, w8
	b.ne	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ef4_probe_interrupts
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ef4_set_channels
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	ldr	w8, [x21]
	neg	w8, w8
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ef4_remove_interrupts
	ldr	w8, [x21]
	neg	w8, w8
	b	LBB0_2
LBB0_9:
Lloh7:
	adrp	x8, _drv@GOTPAGE
Lloh8:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19, #28]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh12:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_10:
	mov	x20, x0
	b	LBB0_15
LBB0_11:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.12:
	add	x0, x19, #36
	mov	w1, #4
	bl	_netdev_rss_key_fill
LBB0_13:
	mov	x0, x19
	bl	_ef4_set_default_rx_indir_table
	ldp	w0, w1, [x19, #28]
	bl	_netif_set_real_num_tx_queues
	ldp	w1, w0, [x19, #24]
	bl	_netif_set_real_num_rx_queues
	ldr	w0, [x19, #16]
	mov	w1, #1000
	bl	_DIV_ROUND_UP
	str	w0, [x19, #20]
Lloh15:
	adrp	x8, _tx_irq_mod_usec@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tx_irq_mod_usec@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _rx_irq_mod_usec@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rx_irq_mod_usec@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_ef4_init_irq_moderation
	mov	w20, #0
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_ef4_remove_interrupts
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
LBB0_16:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"creating NIC\n"

	.comm	_drv,4,2                        ; @drv
l_.str.1:                               ; @.str.1
	.asciz	"Insufficient resources to allocate any channels\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_tx_irq_mod_usec,4,2            ; @tx_irq_mod_usec
	.comm	_rx_irq_mod_usec,4,2            ; @rx_irq_mod_usec
	.no_dead_strip	_ef4_probe_nic
.subsections_via_symbols
