	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_rq_create
_vmxnet3_rq_create:                     ## @vmxnet3_rq_create
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movslq	(%rdx), %rsi
	shlq	$2, %rsi
	movq	8(%r14), %rdi
	addq	$16, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	(%rbx), %rdx
	movq	%rax, 8(%rdx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movslq	24(%rdx), %rsi
	shlq	$2, %rsi
	movq	8(%r14), %rdi
	addq	$40, %rdx
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.6:
	movq	48(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movslq	(%rcx), %rax
	imulq	%rax, %rsi
	movq	8(%r14), %rdi
	leaq	64(%rbx), %rdx
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	16(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	$0, (%r14)
	jmp	LBB0_10
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_2
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
LBB0_10:
	movslq	24(%rbx), %rsi
	shlq	$2, %rsi
	movq	8(%r14), %rdi
	leaq	40(%rbx), %rdx
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	(%rbx), %rax
	movslq	(%rax), %rcx
	movslq	24(%rax), %rsi
	addq	%rcx, %rsi
	shlq	$2, %rsi
	movq	8(%r14), %rdi
	leaq	16(%rbx), %rdx
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 8(%rdx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_4:
	movl	$1, %edx
LBB0_2:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vmxnet3_rq_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	16(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate rx ring %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"rx data ring will be disabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate rx comp ring\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vmxnet3_rq_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_rq_create
_vmxnet3_rq_create:                     ; @vmxnet3_rq_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x2, [x0]
	ldrsw	x8, [x2], #16
	lsl	x1, x8, #2
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cbz	x0, LBB0_6
; %bb.1:
	ldrsw	x9, [x8, #24]
	lsl	x1, x9, #2
	ldr	x0, [x20, #8]
	add	x2, x8, #40
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	ldr	x8, [x19]
	str	x0, [x8, #32]
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w9, [x20]
	cbz	w9, LBB0_7
; %bb.3:
	ldr	x9, [x19, #48]
	cbz	x9, LBB0_7
; %bb.4:
	ldrsw	x8, [x8]
	mul	x1, x9, x8
	ldr	x0, [x20, #8]
	add	x2, x19, #64
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x19, #56]
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x20, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	str	wzr, [x20]
	b	LBB0_8
LBB0_6:
	mov	w8, #0
	b	LBB0_12
LBB0_7:
	stp	xzr, xzr, [x19, #48]
LBB0_8:
	ldrsw	x8, [x19, #24]
	lsl	x1, x8, #2
	ldr	x0, [x20, #8]
	add	x2, x19, #40
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x19, #32]
	cbz	x0, LBB0_16
; %bb.9:
	mov	x2, x19
	ldr	x8, [x2], #16
	ldr	w9, [x8]
	ldr	w8, [x8, #24]
	add	w8, w8, w9
	sbfiz	x1, x8, #2, #32
	ldr	x0, [x20, #8]
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_14
; %bb.10:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	x8, [x9]
	ldp	x9, x10, [x19]
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x10, #8]
	b	LBB0_15
LBB0_11:
	mov	w8, #1
LBB0_12:
	ldr	w0, [x20, #16]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	bl	_netdev_err
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_vmxnet3_rq_destroy
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	ldr	w0, [x20, #16]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate rx ring %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"rx data ring will be disabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate rx comp ring\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vmxnet3_rq_create
.subsections_via_symbols
