	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_set_intr_coalesce
_lio_set_intr_coalesce:                 ## @lio_set_intr_coalesce
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_GET_LIO
	movq	%rax, %r15
	movq	16(%rax), %r12
	movq	$0, -40(%rbp)
	movl	(%r12), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.1:
	addl	$-128, %eax
	cmpl	$1, %eax
	ja	LBB0_16
## %bb.2:
	movq	_CN6XXX_DB_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CN6XXX_DB_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r14), %edx
	cmpl	%ecx, %edx
	jl	LBB0_15
## %bb.3:
	cmpl	%r8d, %edx
	jg	LBB0_15
## %bb.4:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.5:
	movq	8(%r15), %rsi
	movq	40(%r12), %rax
	leaq	-1(%rdi), %rbx
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rbx
	jae	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_15:
	movq	32(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_7:
	andq	$-4, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rbx,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	%edx, (%rcx)
	movq	8(%rsi,%rbx,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	%edx, (%rcx)
	movq	16(%rsi,%rbx,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	%edx, (%rcx)
	movq	24(%rsi,%rbx,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	%edx, (%rcx)
	addq	$4, %rbx
	cmpq	%rbx, %rdi
	jne	LBB0_8
LBB0_9:
	testq	%r8, %r8
	je	LBB0_12
## %bb.10:
	leaq	(%rsi,%rbx,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	%edx, (%rcx)
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	cmpq	$0, 16(%r14)
	setne	%al
	movl	%eax, -72(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	setne	%al
	movl	%eax, -68(%rbp)
	movq	%r12, %rdi
	callq	_octeon_get_conf
	movl	%eax, %edi
	callq	_CFG_GET_OQ_INTR_PKT
	movq	%rax, -48(%rbp)
	movq	%r12, %rdi
	callq	_octeon_get_conf
	movl	%eax, %edi
	callq	_CFG_GET_OQ_INTR_TIME
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	callq	_octeon_get_conf
	movl	%eax, %edi
	callq	_CFG_GET_IQ_INTR_PKT
	movq	%rax, -64(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_oct_cfg_adaptive_intr
	cmpq	$0, 16(%r14)
	je	LBB0_13
## %bb.17:
	movq	%r12, %rdi
	callq	_octeon_get_conf
	movl	%eax, %edi
	callq	_CFG_GET_OQ_INTR_TIME
	movq	%rax, 24(%r12)
	movq	%r12, %rdi
	callq	_octeon_get_conf
	movl	%eax, %edi
	callq	_CFG_GET_OQ_INTR_PKT
	movq	%rax, 16(%r12)
LBB0_18:
	cmpq	$0, 8(%r14)
	je	LBB0_19
## %bb.20:
	movq	%r12, %rdi
	callq	_octeon_get_conf
	movl	%eax, %edi
	callq	_CFG_GET_IQ_INTR_PKT
	movq	%rax, 8(%r12)
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_13:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_oct_cfg_rx_intrtime
	testl	%eax, %eax
	jne	LBB0_22
## %bb.14:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_oct_cfg_rx_intrcnt
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_18
LBB0_19:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_oct_cfg_tx_intrcnt
	testl	%eax, %eax
	je	LBB0_21
LBB0_22:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CN6XXX_DB_MIN,4,2              ## @CN6XXX_DB_MIN
	.comm	_CN6XXX_DB_MAX,4,2              ## @CN6XXX_DB_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LIQUIDIO: Invalid tx-frames:%d. Range is min:%d max:%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lio_set_intr_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_set_intr_coalesce
_lio_set_intr_coalesce:                 ; @lio_set_intr_coalesce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_GET_LIO
	mov	x21, x0
	ldr	x19, [x0, #16]
	str	xzr, [sp, #40]
	ldr	w8, [x19]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_13
; %bb.1:
	sub	w8, w8, #128
	cmp	w8, #1
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _CN6XXX_DB_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CN6XXX_DB_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _CN6XXX_DB_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CN6XXX_DB_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	w2, [x20]
	cmp	w2, w3
	ccmp	w2, w4, #0, ge
	b.le	LBB0_5
; %bb.3:
	ldr	x0, [x19, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_5:
	ldr	x9, [x21]
	cbz	x9, LBB0_13
; %bb.6:
	ldr	x10, [x21, #8]
	ldr	x8, [x19, #40]
	cmp	x9, #4
	b.hs	LBB0_8
; %bb.7:
	mov	x11, #0
	b	LBB0_11
LBB0_8:
	and	x11, x9, #0xfffffffffffffffc
	add	x12, x10, #16
	mov	x13, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x14, x15, [x12, #-16]
	ldp	x16, x17, [x12], #32
	ldr	x14, [x8, x14, lsl #3]
	ldr	x15, [x8, x15, lsl #3]
	ldr	x16, [x8, x16, lsl #3]
	ldr	x17, [x8, x17, lsl #3]
	str	w2, [x14]
	str	w2, [x15]
	str	w2, [x16]
	str	w2, [x17]
	subs	x13, x13, #4
	b.ne	LBB0_9
; %bb.10:
	cmp	x9, x11
	b.eq	LBB0_13
LBB0_11:
	sub	x9, x9, x11
	add	x10, x10, x11, lsl #3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	x11, [x8, x11, lsl #3]
	str	w2, [x11]
	subs	x9, x9, #1
	b.ne	LBB0_12
LBB0_13:
	ldur	q0, [x20, #8]
	cmtst.2d	v0, v0, v0
	xtn.2s	v0, v0
	movi.2s	v1, #1
	and.8b	v0, v0, v1
	rev64.2s	v0, v0
	str	d0, [sp, #8]
	mov	x0, x19
	bl	_octeon_get_conf
	bl	_CFG_GET_OQ_INTR_PKT
	str	x0, [sp, #32]
	mov	x0, x19
	bl	_octeon_get_conf
	bl	_CFG_GET_OQ_INTR_TIME
	str	x0, [sp, #24]
	mov	x0, x19
	bl	_octeon_get_conf
	bl	_CFG_GET_IQ_INTR_PKT
	str	x0, [sp, #16]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_oct_cfg_adaptive_intr
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_octeon_get_conf
	bl	_CFG_GET_OQ_INTR_TIME
	str	x0, [x19, #24]
	mov	x0, x19
	bl	_octeon_get_conf
	bl	_CFG_GET_OQ_INTR_PKT
	str	x0, [x19, #16]
LBB0_15:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_octeon_get_conf
	bl	_CFG_GET_IQ_INTR_PKT
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_20
LBB0_17:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_oct_cfg_rx_intrtime
	cbnz	w0, LBB0_20
; %bb.18:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_oct_cfg_rx_intrcnt
	cbnz	w0, LBB0_20
	b	LBB0_15
LBB0_19:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_oct_cfg_tx_intrcnt
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CN6XXX_DB_MIN,4,2              ; @CN6XXX_DB_MIN
	.comm	_CN6XXX_DB_MAX,4,2              ; @CN6XXX_DB_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LIQUIDIO: Invalid tx-frames:%d. Range is min:%d max:%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lio_set_intr_coalesce
.subsections_via_symbols
