	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_adjust_rx_ring_size
_vmxnet3_adjust_rx_ring_size:           ## @vmxnet3_adjust_rx_ring_size
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movq	_VMXNET3_MAX_SKB_BUF_SIZE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
	movq	_VMXNET3_MAX_ETH_HDR_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rbx, %rdi
	subq	%rdx, %rdi
	cmpq	%rdi, %rax
	jle	LBB0_1
## %bb.2:
	movq	%rbx, (%r14)
	movq	(%rsi), %rdx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
	notq	%rdx
	addq	%rdx, %rax
	addq	(%rcx), %rax
	movq	(%rsi), %rcx
	addq	%rcx, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_5
LBB0_1:
	addq	%rax, %rdx
	movq	%rdx, (%r14)
	movq	_VMXNET3_MIN_T0_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	cmovleq	%rax, %rdx
	movq	%rdx, (%r14)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	incl	%eax
LBB0_6:
	movl	%eax, 8(%r14)
	movslq	%eax, %r12
	movq	_VMXNET3_RING_SIZE_ALIGN@GOTPCREL(%rip), %rax
	imulq	(%rax), %r12
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	leaq	-1(%r12), %r15
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%rsi, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%r12
	jmp	LBB0_9
LBB0_7:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:
	subq	%rdx, %rsi
	movq	_u32@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_VMXNET3_RX_RING_MAX_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r12
	jmp	LBB0_12
LBB0_10:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:
	subq	%rdx, %rcx
	movq	%rcx, %rdx
	callq	_min_t
	movq	%rax, %r13
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	addq	8(%rax), %r15
	movq	%r15, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%r12
	jmp	LBB0_15
LBB0_13:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_15:
	subq	%rdx, %r15
	movl	(%rbx), %edi
	movq	_VMXNET3_RX_RING2_MAX_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_16
## %bb.17:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r12
	jmp	LBB0_18
LBB0_16:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_18:
	subq	%rdx, %rcx
	movq	%r15, %rsi
	movq	%rcx, %rdx
	callq	_min_t
	movq	16(%r14), %r9
	testq	%r9, %r9
	je	LBB0_25
## %bb.19:
	movq	%rax, %rcx
	addq	%r13, %rcx
	movq	24(%r14), %r8
	cmpq	$1, %r9
	jne	LBB0_21
## %bb.20:
	xorl	%edi, %edi
	jmp	LBB0_23
LBB0_21:
	movq	%r9, %rdx
	andq	$-2, %rdx
	leaq	24(%r8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rsi), %rbx
	movq	%r13, (%rbx)
	movq	%rax, 8(%rbx)
	movq	%rcx, -24(%rsi)
	movq	(%rsi), %rbx
	movq	%r13, (%rbx)
	movq	%rax, 8(%rbx)
	movq	%rcx, -8(%rsi)
	addq	$2, %rdi
	addq	$32, %rsi
	cmpq	%rdi, %rdx
	jne	LBB0_22
LBB0_23:
	testb	$1, %r9b
	je	LBB0_25
## %bb.24:
	shlq	$4, %rdi
	movq	8(%r8,%rdi), %rdx
	movq	%r13, (%rdx)
	movq	%rax, 8(%rdx)
	movq	%rcx, (%r8,%rdi)
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_MAX_SKB_BUF_SIZE,8,3   ## @VMXNET3_MAX_SKB_BUF_SIZE
	.comm	_VMXNET3_MAX_ETH_HDR_SIZE,8,3   ## @VMXNET3_MAX_ETH_HDR_SIZE
	.comm	_VMXNET3_MIN_T0_BUF_SIZE,8,3    ## @VMXNET3_MIN_T0_BUF_SIZE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_VMXNET3_RING_SIZE_ALIGN,8,3    ## @VMXNET3_RING_SIZE_ALIGN
	.comm	_u32,4,2                        ## @u32
	.comm	_VMXNET3_RX_RING_MAX_SIZE,8,3   ## @VMXNET3_RX_RING_MAX_SIZE
	.comm	_VMXNET3_RX_RING2_MAX_SIZE,8,3  ## @VMXNET3_RX_RING2_MAX_SIZE
	.no_dead_strip	_vmxnet3_adjust_rx_ring_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_adjust_rx_ring_size
_vmxnet3_adjust_rx_ring_size:           ; @vmxnet3_adjust_rx_ring_size
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _VMXNET3_MAX_SKB_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMXNET3_MAX_SKB_BUF_SIZE@GOTPAGEOFF]
	ldr	x11, [x9]
Lloh2:
	adrp	x10, _VMXNET3_MAX_ETH_HDR_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VMXNET3_MAX_ETH_HDR_SIZE@GOTPAGEOFF]
	ldr	x12, [x10]
	sub	x13, x11, x12
	cmp	x8, x13
	b.le	LBB0_2
; %bb.1:
	str	x11, [x19]
	ldr	x9, [x9]
	ldr	x10, [x10]
Lloh4:
	adrp	x11, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x11, [x11, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
	mvn	x9, x9
	add	x8, x8, x9
	add	x8, x8, x10
	add	x8, x8, x11
	udiv	x8, x8, x11
	add	w8, w8, #1
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x9, _VMXNET3_MIN_T0_BUF_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VMXNET3_MIN_T0_BUF_SIZE@GOTPAGEOFF]
	add	x8, x12, x8
	str	x8, [x19]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	x8, [x19]
	mov	w8, #1
LBB0_3:
	str	w8, [x19, #8]
Lloh10:
	adrp	x9, _VMXNET3_RING_SIZE_ALIGN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VMXNET3_RING_SIZE_ALIGN@GOTPAGEOFF]
	sxtw	x8, w8
Lloh12:
	ldr	x9, [x9]
	mul	x21, x9, x8
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	sub	x22, x21, #1
	add	x8, x22, x8
	udiv	x8, x8, x21
	mul	x1, x8, x21
Lloh13:
	adrp	x23, _u32@GOTPAGE
Lloh14:
	ldr	x23, [x23, _u32@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh15:
	adrp	x8, _VMXNET3_RX_RING_MAX_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VMXNET3_RX_RING_MAX_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	udiv	x8, x8, x21
	mul	x2, x8, x21
	bl	_min_t
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	add	x8, x22, x8
	udiv	x8, x8, x21
	mul	x1, x8, x21
	ldr	w0, [x23]
Lloh18:
	adrp	x8, _VMXNET3_RX_RING2_MAX_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VMXNET3_RX_RING2_MAX_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	udiv	x8, x8, x21
	mul	x2, x8, x21
	bl	_min_t
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.4:
	add	x9, x0, x20
	ldr	x10, [x19, #24]
	add	x10, x10, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	stp	x20, x0, [x11]
	stur	x9, [x10, #-8]
	add	x10, x10, #16
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_MAX_SKB_BUF_SIZE,8,3   ; @VMXNET3_MAX_SKB_BUF_SIZE
	.comm	_VMXNET3_MAX_ETH_HDR_SIZE,8,3   ; @VMXNET3_MAX_ETH_HDR_SIZE
	.comm	_VMXNET3_MIN_T0_BUF_SIZE,8,3    ; @VMXNET3_MIN_T0_BUF_SIZE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_VMXNET3_RING_SIZE_ALIGN,8,3    ; @VMXNET3_RING_SIZE_ALIGN
	.comm	_u32,4,2                        ; @u32
	.comm	_VMXNET3_RX_RING_MAX_SIZE,8,3   ; @VMXNET3_RX_RING_MAX_SIZE
	.comm	_VMXNET3_RX_RING2_MAX_SIZE,8,3  ; @VMXNET3_RX_RING2_MAX_SIZE
	.no_dead_strip	_vmxnet3_adjust_rx_ring_size
.subsections_via_symbols
