	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vmxnet3_rq_init
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vmxnet3_rq_init:                       ## @vmxnet3_rq_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	40(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r10d
	leaq	8(%rax), %rcx
	movq	48(%r13), %rbx
	movq	%r9, %rdi
	shlq	$4, %rdi
	xorl	%esi, %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r11
	movq	_VMXNET3_RX_BUF_PAGE@GOTPCREL(%rip), %r15
	movq	_VMXNET3_RX_BUF_SKB@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %eax
	cltd
	idivl	%r10d
	testl	%edx, %edx
	movq	%rcx, %rax
	cmovneq	%r11, %rax
	movq	%r15, %rdx
	cmoveq	%r12, %rdx
	movq	(%rdx), %rdx
	movq	(%rbx), %r8
	movq	%rdx, 8(%r8,%r14)
	movq	(%rax), %rax
	movq	(%rbx), %rdx
	movq	%rax, (%rdx,%r14)
	addq	$16, %r14
	incl	%esi
	cmpq	%r14, %rdi
	jne	LBB0_2
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	40(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_8
## %bb.4:
	movq	48(%r13), %rax
	cmpl	$1, %r10d
	jne	LBB0_10
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_10:
	movl	%r10d, %r8d
	andl	$-2, %r8d
	xorl	%edi, %edi
	movq	_VMXNET3_RX_BUF_PAGE@GOTPCREL(%rip), %r11
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r11), %rcx
	movq	8(%rax), %rbx
	movq	%rcx, 8(%rbx,%rdi)
	movq	(%rdx), %rcx
	movq	8(%rax), %rbx
	movq	%rcx, (%rbx,%rdi)
	movq	(%r11), %rcx
	movq	8(%rax), %rbx
	movq	%rcx, 24(%rbx,%rdi)
	movq	(%rdx), %rcx
	movq	8(%rax), %rbx
	movq	%rcx, 16(%rbx,%rdi)
	addq	$2, %rsi
	addq	$32, %rdi
	cmpq	%rsi, %r8
	jne	LBB0_11
LBB0_6:
	testb	$1, %r10b
	je	LBB0_8
## %bb.7:
	movq	_VMXNET3_RX_BUF_PAGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rdx
	shlq	$4, %rsi
	movq	%rcx, 8(%rdx,%rsi)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rax
	movq	%rcx, (%rax,%rsi)
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movl	16(%r14), %edi
	shll	$2, %r9d
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	%r9d, %edx
	callq	_memset
	movq	_VMXNET3_INIT_GEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	40(%r13), %rcx
	movq	%rax, 8(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rcx)
	movl	40(%rcx), %edx
	movl	56(%rcx), %edi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rax
	movq	40(%r13), %rcx
	movq	%rax, 48(%rcx)
	movl	(%rcx), %edx
	decl	%edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_vmxnet3_rq_alloc_rx_buf
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	40(%r13), %rax
	movl	40(%rax), %edx
	decl	%edx
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_vmxnet3_rq_alloc_rx_buf
	movq	$0, 32(%r13)
	movl	8(%r13), %edx
	movl	24(%r13), %edi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rax
	movq	%rax, 16(%r13)
	movq	$0, (%r13)
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_RX_BUF_SKB,8,3         ## @VMXNET3_RX_BUF_SKB
	.comm	_VMXNET3_RX_BUF_PAGE,8,3        ## @VMXNET3_RX_BUF_PAGE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_VMXNET3_INIT_GEN,8,3           ## @VMXNET3_INIT_GEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vmxnet3_rq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_rq_init
_vmxnet3_rq_init:                       ; @vmxnet3_rq_init
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x11, _VMXNET3_RX_BUF_PAGE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _VMXNET3_RX_BUF_PAGE@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w12, #0
	mov	x13, #0
	mov	x14, x20
	ldr	w15, [x14], #8
	ldr	x16, [x19, #48]
	lsl	x17, x9, #4
Lloh4:
	adrp	x0, _VMXNET3_RX_BUF_SKB@GOTPAGE
Lloh5:
	ldr	x0, [x0, _VMXNET3_RX_BUF_SKB@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w1, w12, w15
	msub	w1, w1, w15, w12
	cmp	w1, #0
	csel	x1, x14, x10, eq
	csel	x2, x0, x11, eq
	ldr	x2, [x2]
	ldr	x3, [x16]
	add	x3, x3, x13
	str	x2, [x3, #8]
	ldr	x1, [x1]
	ldr	x2, [x16]
	str	x1, [x2, x13]
	add	x13, x13, #16
	add	w12, w12, #1
	cmp	x17, x13
	b.ne	LBB0_2
LBB0_3:
	ldr	w14, [x8, #40]
	cmp	w14, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x12, #0
	ldr	x13, [x19, #48]
	lsl	x14, x14, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x11]
	ldr	x16, [x13, #8]
	add	x16, x16, x12
	str	x15, [x16, #8]
	ldr	x15, [x10]
	ldr	x16, [x13, #8]
	str	x15, [x16, x12]
	add	x12, x12, #16
	cmp	x14, x12
	b.ne	LBB0_5
LBB0_6:
	stp	xzr, xzr, [x8, #24]
	lsl	w2, w9, #2
	ldr	w0, [x8, #16]
	mov	w1, #0
	bl	_memset
Lloh6:
	adrp	x21, _VMXNET3_INIT_GEN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VMXNET3_INIT_GEN@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19, #40]
	str	x8, [x9, #8]
	stp	xzr, xzr, [x9, #64]
	ldr	w0, [x9, #56]
	ldr	w8, [x9, #40]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	x8, [x21]
	ldr	x9, [x19, #40]
	str	x8, [x9, #48]
	ldr	w8, [x9]
	sub	w2, w8, #1
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	bl	_vmxnet3_rq_alloc_rx_buf
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #40]
	sub	w2, w8, #1
	mov	x0, x19
	mov	w1, #1
	mov	x3, x20
	bl	_vmxnet3_rq_alloc_rx_buf
	str	xzr, [x19, #32]
	ldr	w0, [x19, #24]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	mov	w0, #0
	ldr	x8, [x21]
	str	x8, [x19, #16]
	str	xzr, [x19]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_RX_BUF_SKB,8,3         ; @VMXNET3_RX_BUF_SKB
	.comm	_VMXNET3_RX_BUF_PAGE,8,3        ; @VMXNET3_RX_BUF_PAGE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_VMXNET3_INIT_GEN,8,3           ; @VMXNET3_INIT_GEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vmxnet3_rq_init
.subsections_via_symbols
