	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ef4_init_rx_queue
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ef4_init_rx_queue
	.p2align	4, 0x90
_ef4_init_rx_queue:                     ## @ef4_init_rx_queue
	.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, %rbx
	movq	88(%rdi), %r14
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	12(%r14), %r12d
	callq	_ef4_rx_queue_index
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %r8d
	callq	_netif_dbg
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movq	$0, 80(%rbx)
	movl	$-1, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ef4_init_rx_recycle_ring
	movq	$0, 56(%rbx)
	movq	40(%rbx), %rax
	incq	%rax
	movq	%rax, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	_EF4_RXD_HEAD_ROOM@GOTPCREL(%rip), %rax
	movl	(%r14), %r15d
	movl	8(%r14), %ecx
	subl	(%rax), %r15d
	imull	4(%r14), %ecx
	movl	%r15d, %r14d
	subl	%ecx, %r14d
	movq	_rx_refill_threshold@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	$100, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	imull	%r15d, %eax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	shrq	$37, %rax
	cmpl	%r14d, %eax
	cmovbl	%eax, %r14d
LBB0_2:
	movl	%r15d, 4(%rbx)
	movl	%r14d, 8(%rbx)
	movl	$1, 12(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ef4_nic_init_rx                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initialising RX queue %d\n"

	.comm	_EF4_RXD_HEAD_ROOM,4,2          ## @EF4_RXD_HEAD_ROOM
	.comm	_rx_refill_threshold,8,3        ## @rx_refill_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_init_rx_queue              ; -- Begin function ef4_init_rx_queue
	.p2align	2
_ef4_init_rx_queue:                     ; @ef4_init_rx_queue
	.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	x20, [x0, #88]
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w22, [x20, #12]
	bl	_ef4_rx_queue_index
	mov	x4, x0
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_netif_dbg
	stp	xzr, xzr, [x19, #72]
	str	xzr, [x19, #64]
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_ef4_init_rx_recycle_ring
	ldr	x8, [x19, #40]
	add	x8, x8, #1
	stp	x8, xzr, [x19, #48]
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #16]
Lloh5:
	adrp	x8, _EF4_RXD_HEAD_ROOM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EF4_RXD_HEAD_ROOM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	sub	w21, w9, w8
	ldr	w8, [x20, #8]
	msub	w20, w8, w10, w21
Lloh8:
	adrp	x8, _rx_refill_threshold@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rx_refill_threshold@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #100
	bl	_min
	mul	w8, w0, w21
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #37
	cmp	w8, w20
	csel	w20, w8, w20, lo
LBB0_2:
	stp	w21, w20, [x19, #4]
	mov	w8, #1
	str	w8, [x19, #12]
	mov	x0, x19
	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
	b	_ef4_nic_init_rx
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initialising RX queue %d\n"

	.comm	_EF4_RXD_HEAD_ROOM,4,2          ; @EF4_RXD_HEAD_ROOM
	.comm	_rx_refill_threshold,8,3        ; @rx_refill_threshold
.subsections_via_symbols
