	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oct_cfg_rx_intrtime
_oct_cfg_rx_intrtime:                   ## @oct_cfg_rx_intrtime
	.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), %r12
	movl	(%r12), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	cmpl	$130, %eax
	je	LBB0_12
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_17
## %bb.3:
	movq	(%rdx), %r15
	testq	%r15, %r15
	jne	LBB0_5
## %bb.4:
	movq	8(%r14), %r15
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_cn23xx_pf_get_oq_ticks
	cmpl	$0, 4(%r12)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %r13d
	leal	(%rbx,%r13), %edi
	callq	_CN23XX_SLI_OQ_PKT_INT_LEVELS
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_octeon_write_csr64
	addl	%r13d, %ebx
	incl	%ebx
	cmpl	4(%r12), %ebx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	24(%r12), %rbx
	movq	(%rdx), %r14
	testq	%r14, %r14
	jne	LBB0_11
## %bb.10:
	movq	_CN6XXX_OQ_INTR_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_11:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_lio_cn6xxx_get_oq_ticks
	movq	_CN6XXX_SLI_OQ_INT_LEVEL_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_octeon_write_csr
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_CFG_SET_OQ_INTR_TIME
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_12:
	movq	(%rdx), %r15
	testq	%r15, %r15
	jne	LBB0_14
## %bb.13:
	movq	8(%r14), %r15
LBB0_14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_cn23xx_vf_get_oq_ticks
	cmpl	$0, 4(%r12)
	jle	LBB0_8
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_CN23XX_VF_SLI_OQ_PKT_INT_LEVELS
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_octeon_write_csr64
	incl	%ebx
	cmpl	4(%r12), %ebx
	jl	LBB0_16
LBB0_8:
	movq	%r15, 8(%r14)
	movq	%r15, 8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CN6XXX_OQ_INTR_TIME,8,3        ## @CN6XXX_OQ_INTR_TIME
	.comm	_CN6XXX_SLI_OQ_INT_LEVEL_TIME,4,2 ## @CN6XXX_SLI_OQ_INT_LEVEL_TIME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_oct_cfg_rx_intrtime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oct_cfg_rx_intrtime
_oct_cfg_rx_intrtime:                   ; @oct_cfg_rx_intrtime
	.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
	ldr	x19, [x0]
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_8
; %bb.1:
	mov	x20, x1
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_15
; %bb.3:
	ldr	x21, [x2]
	cbnz	x21, LBB0_5
; %bb.4:
	ldr	x21, [x20, #8]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_cn23xx_pf_get_oq_ticks
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	w8, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #16]
	add	w22, w9, w8
	mov	x0, x22
	bl	_CN23XX_SLI_OQ_PKT_INT_LEVELS
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_write_csr64
	add	w8, w22, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.lt	LBB0_7
	b	LBB0_14
LBB0_8:
	ldr	x21, [x19, #24]
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _CN6XXX_OQ_INTR_TIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CN6XXX_OQ_INTR_TIME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x20, x9, x8, eq
	mov	x0, x19
	mov	x1, x20
	bl	_lio_cn6xxx_get_oq_ticks
	mov	x2, x0
Lloh3:
	adrp	x8, _CN6XXX_SLI_OQ_INT_LEVEL_TIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CN6XXX_SLI_OQ_INT_LEVEL_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_octeon_write_csr
	ldr	w0, [x21]
	mov	x1, x20
	bl	_CFG_SET_OQ_INTR_TIME
	mov	w0, #0
	b	LBB0_16
LBB0_9:
	ldr	x21, [x2]
	cbnz	x21, LBB0_11
; %bb.10:
	ldr	x21, [x20, #8]
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_cn23xx_vf_get_oq_ticks
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_CN23XX_VF_SLI_OQ_PKT_INT_LEVELS
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_write_csr64
	add	w22, w22, #1
	ldr	w8, [x19, #4]
	cmp	w22, w8
	b.lt	LBB0_13
LBB0_14:
	mov	w0, #0
	str	x21, [x20, #8]
	str	x21, [x19, #8]
	b	LBB0_16
LBB0_15:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CN6XXX_OQ_INTR_TIME,8,3        ; @CN6XXX_OQ_INTR_TIME
	.comm	_CN6XXX_SLI_OQ_INT_LEVEL_TIME,4,2 ; @CN6XXX_SLI_OQ_INT_LEVEL_TIME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_oct_cfg_rx_intrtime
.subsections_via_symbols
