	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4vf_set_ringparam
_cxgb4vf_set_ringparam:                 ## @cxgb4vf_set_ringparam
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	(%rbx), %rdx
	movq	_MAX_RX_BUFFERS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_7
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_7
## %bb.2:
	movq	8(%rbx), %rsi
	movq	_MAX_TXQ_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jg	LBB0_7
## %bb.3:
	movq	16(%rbx), %r9
	movq	_MAX_RSPQ_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	jg	LBB0_7
## %bb.4:
	movq	_MIN_RSPQ_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	jl	LBB0_7
## %bb.5:
	movq	_MIN_FL_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jl	LBB0_7
## %bb.6:
	movq	_MIN_TXQ_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jl	LBB0_7
## %bb.9:
	movq	8(%rax), %rdi
	movq	_CXGB4VF_FULL_INIT_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_11
## %bb.10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	movslq	4(%rax), %r8
	xorl	%ecx, %ecx
	testq	%r8, %r8
	jle	LBB0_14
## %bb.12:
	movslq	(%rax), %rbx
	addq	%rbx, %r8
	movq	8(%rdi), %r11
	movq	16(%rdi), %rdi
	movq	%rbx, %rax
	shlq	$4, %rax
	addq	%rax, %rdi
	addq	$8, %rdi
	movq	_MIN_FL_RESID@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rax
	addq	%rdx, %rax
	movq	%rax, (%rdi)
	movq	%r9, -8(%rdi)
	movq	%rsi, (%r11,%rbx,8)
	incq	%rbx
	addq	$16, %rdi
	cmpq	%r8, %rbx
	jl	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RX_BUFFERS,8,3             ## @MAX_RX_BUFFERS
	.comm	_MAX_TXQ_ENTRIES,8,3            ## @MAX_TXQ_ENTRIES
	.comm	_MAX_RSPQ_ENTRIES,8,3           ## @MAX_RSPQ_ENTRIES
	.comm	_MIN_RSPQ_ENTRIES,8,3           ## @MIN_RSPQ_ENTRIES
	.comm	_MIN_FL_ENTRIES,8,3             ## @MIN_FL_ENTRIES
	.comm	_MIN_TXQ_ENTRIES,8,3            ## @MIN_TXQ_ENTRIES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXGB4VF_FULL_INIT_DONE,4,2     ## @CXGB4VF_FULL_INIT_DONE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MIN_FL_RESID,8,3               ## @MIN_FL_RESID
	.no_dead_strip	_cxgb4vf_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4vf_set_ringparam
_cxgb4vf_set_ringparam:                 ; @cxgb4vf_set_ringparam
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MAX_RX_BUFFERS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_RX_BUFFERS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_4
; %bb.1:
	ldr	x9, [x19, #24]
	cbnz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _MAX_TXQ_ENTRIES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_TXQ_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_4
; %bb.3:
	ldr	x10, [x19, #16]
Lloh6:
	adrp	x11, _MAX_RSPQ_ENTRIES@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MAX_RSPQ_ENTRIES@GOTPAGEOFF]
Lloh8:
	adrp	x12, _MIN_RSPQ_ENTRIES@GOTPAGE
Lloh9:
	ldr	x12, [x12, _MIN_RSPQ_ENTRIES@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _MIN_FL_ENTRIES@GOTPAGE
Lloh13:
	ldr	x13, [x13, _MIN_FL_ENTRIES@GOTPAGEOFF]
Lloh14:
	adrp	x14, _MIN_TXQ_ENTRIES@GOTPAGE
Lloh15:
	ldr	x14, [x14, _MIN_TXQ_ENTRIES@GOTPAGEOFF]
Lloh16:
	ldr	x13, [x13]
Lloh17:
	ldr	x14, [x14]
	cmp	x10, x11
	ccmp	x10, x12, #8, le
	ccmp	x8, x13, #8, ge
	ccmp	x9, x14, #8, ge
	b.ge	LBB0_7
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x11, [x0, #8]
	ldr	w12, [x11]
Lloh20:
	adrp	x13, _CXGB4VF_FULL_INIT_DONE@GOTPAGE
Lloh21:
	ldr	x13, [x13, _CXGB4VF_FULL_INIT_DONE@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
	tst	w13, w12
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _EBUSY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldrsw	x12, [x0, #4]
	cmp	w12, #1
	b.lt	LBB0_17
; %bb.10:
	ldrsw	x15, [x0]
	ldp	x11, x14, [x11, #8]
	add	x17, x15, #1
	add	x12, x12, x15
	cmp	x17, x12
	csinc	x13, x12, x15, le
	sub	x16, x13, x15
Lloh25:
	adrp	x13, _MIN_FL_RESID@GOTPAGE
Lloh26:
	ldr	x13, [x13, _MIN_FL_RESID@GOTPAGEOFF]
	cmp	x16, #8
	b.lo	LBB0_18
; %bb.11:
	add	x1, x14, x15, lsl #4
	cmp	x17, x12
	csinc	x17, x12, x15, le
	add	x2, x14, x17, lsl #4
	add	x3, x11, x15, lsl #3
	add	x4, x11, x17, lsl #3
	add	x0, x13, #8
	cmp	x1, x0
	ccmp	x2, x13, #0, lo
	cset	w17, hi
	cmp	x3, x0
	ccmp	x4, x13, #0, lo
	cset	w0, hi
	cmp	x3, x2
	ccmp	x1, x4, #2, lo
	b.lo	LBB0_18
; %bb.12:
	tbnz	w17, #0, LBB0_18
; %bb.13:
	tbnz	w0, #0, LBB0_18
; %bb.14:
	and	x17, x16, #0xfffffffffffffff8
	add	x0, x17, x15
	dup.2d	v0, x10
	dup.2d	v2, x9
	add	x15, x15, #4
	add	x2, x14, x15, lsl #4
	add	x15, x11, x15, lsl #3
	mov	x1, x17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x13]
	add	x3, x3, x8
	dup.2d	v1, x3
	sub	x3, x2, #64
	st2.2d	{ v0, v1 }, [x3]
	sub	x3, x2, #32
	st2.2d	{ v0, v1 }, [x3]
	add	x3, x2, #128
	st2.2d	{ v0, v1 }, [x2], #32
	st2.2d	{ v0, v1 }, [x2]
	stp	q2, q2, [x15, #-32]
	stp	q2, q2, [x15], #64
	mov	x2, x3
	subs	x1, x1, #8
	b.ne	LBB0_15
; %bb.16:
	mov	x15, x0
	cmp	x16, x17
	b.ne	LBB0_18
LBB0_17:
	mov	w0, #0
	b	LBB0_6
LBB0_18:
	add	x14, x14, x15, lsl #4
	add	x14, x14, #8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	ldr	x16, [x13]
	add	x16, x16, x8
	stp	x10, x16, [x14, #-8]
	str	x9, [x11, x15, lsl #3]
	add	x15, x15, #1
	add	x14, x14, #16
	cmp	x15, x12
	b.lt	LBB0_19
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RX_BUFFERS,8,3             ; @MAX_RX_BUFFERS
	.comm	_MAX_TXQ_ENTRIES,8,3            ; @MAX_TXQ_ENTRIES
	.comm	_MAX_RSPQ_ENTRIES,8,3           ; @MAX_RSPQ_ENTRIES
	.comm	_MIN_RSPQ_ENTRIES,8,3           ; @MIN_RSPQ_ENTRIES
	.comm	_MIN_FL_ENTRIES,8,3             ; @MIN_FL_ENTRIES
	.comm	_MIN_TXQ_ENTRIES,8,3            ; @MIN_TXQ_ENTRIES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXGB4VF_FULL_INIT_DONE,4,2     ; @CXGB4VF_FULL_INIT_DONE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MIN_FL_RESID,8,3               ; @MIN_FL_RESID
	.no_dead_strip	_cxgb4vf_set_ringparam
.subsections_via_symbols
