	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn23xx_enable_vf_interrupt
_cn23xx_enable_vf_interrupt:            ## @cn23xx_enable_vf_interrupt
	.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
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_OCTEON_OUTPUT_INTR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	movq	8(%r15), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_CFG_GET_OQ_INTR_TIME
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_cn23xx_vf_get_oq_ticks
	movq	%rbx, %rdi
	callq	_CN23XX_VF_SLI_OQ_PKT_INT_LEVELS
	movl	%eax, %r12d
	movl	(%r14), %edi
	callq	_CFG_GET_OQ_INTR_PKT
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_octeon_write_csr64
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_3
LBB0_4:
	movq	_OCTEON_INPUT_INTR@GOTPCREL(%rip), %rax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%r15)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_CN23XX_PKT_IN_DONE_CNT_MASK@GOTPCREL(%rip), %r13
	movq	_CN23XX_INTR_CINT_ENB@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_CN23XX_VF_SLI_IQ_INSTR_COUNT64
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_CN23XX_VF_SLI_IQ_INSTR_COUNT64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movl	(%r13), %edx
	notl	%edx
	andl	%eax, %edx
	orl	(%r14), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_octeon_write_csr64
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_7
LBB0_8:
	movq	_OCTEON_MBOX_INTR@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.10:
	xorl	%edi, %edi
	callq	_CN23XX_VF_SLI_PKT_MBOX_INT
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_CN23XX_VF_SLI_PKT_MBOX_INT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movq	_CN23XX_INTR_MBOX_ENB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_octeon_write_csr64             ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_OUTPUT_INTR,4,2         ## @OCTEON_OUTPUT_INTR
	.comm	_OCTEON_INPUT_INTR,4,2          ## @OCTEON_INPUT_INTR
	.comm	_CN23XX_PKT_IN_DONE_CNT_MASK,4,2 ## @CN23XX_PKT_IN_DONE_CNT_MASK
	.comm	_CN23XX_INTR_CINT_ENB,4,2       ## @CN23XX_INTR_CINT_ENB
	.comm	_OCTEON_MBOX_INTR,4,2           ## @OCTEON_MBOX_INTR
	.comm	_CN23XX_INTR_MBOX_ENB,4,2       ## @CN23XX_INTR_MBOX_ENB
	.no_dead_strip	_cn23xx_enable_vf_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn23xx_enable_vf_interrupt
_cn23xx_enable_vf_interrupt:            ; @cn23xx_enable_vf_interrupt
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OCTEON_OUTPUT_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTEON_OUTPUT_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	ldr	x23, [x19, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_CFG_GET_OQ_INTR_TIME
	mov	x1, x0
	mov	x0, x19
	bl	_cn23xx_vf_get_oq_ticks
	mov	x0, x21
	bl	_CN23XX_VF_SLI_OQ_PKT_INT_LEVELS
	mov	x22, x0
	ldr	w0, [x23]
	bl	_CFG_GET_OQ_INTR_PKT
	mov	x0, x19
	mov	x1, x22
	bl	_octeon_write_csr64
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
Lloh3:
	adrp	x8, _OCTEON_INPUT_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCTEON_INPUT_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x21, #0
Lloh6:
	adrp	x23, _CN23XX_PKT_IN_DONE_CNT_MASK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CN23XX_PKT_IN_DONE_CNT_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x24, _CN23XX_INTR_CINT_ENB@GOTPAGE
Lloh9:
	ldr	x24, [x24, _CN23XX_INTR_CINT_ENB@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_CN23XX_VF_SLI_IQ_INSTR_COUNT64
	mov	x22, x0
	mov	x0, x21
	bl	_CN23XX_VF_SLI_IQ_INSTR_COUNT64
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	w9, [x24]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_octeon_write_csr64
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_8:
Lloh10:
	adrp	x8, _OCTEON_MBOX_INTR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OCTEON_MBOX_INTR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #0
	bl	_CN23XX_VF_SLI_PKT_MBOX_INT
	mov	x20, x0
	mov	w0, #0
	bl	_CN23XX_VF_SLI_PKT_MBOX_INT
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr64
Lloh13:
	adrp	x8, _CN23XX_INTR_MBOX_ENB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CN23XX_INTR_MBOX_ENB@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	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
	b	_octeon_write_csr64
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_OUTPUT_INTR,4,2         ; @OCTEON_OUTPUT_INTR
	.comm	_OCTEON_INPUT_INTR,4,2          ; @OCTEON_INPUT_INTR
	.comm	_CN23XX_PKT_IN_DONE_CNT_MASK,4,2 ; @CN23XX_PKT_IN_DONE_CNT_MASK
	.comm	_CN23XX_INTR_CINT_ENB,4,2       ; @CN23XX_INTR_CINT_ENB
	.comm	_OCTEON_MBOX_INTR,4,2           ; @OCTEON_MBOX_INTR
	.comm	_CN23XX_INTR_MBOX_ENB,4,2       ; @CN23XX_INTR_MBOX_ENB
	.no_dead_strip	_cn23xx_enable_vf_interrupt
.subsections_via_symbols
