	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mbox_process_cmd
_octeon_mbox_process_cmd:               ## @octeon_mbox_process_cmd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rsi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	(%r14), %rdi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_pcie_flr
	jmp	LBB0_8
LBB0_2:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_OCTEON_MBOX_RESPONSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, 12(%r15)
	movq	(%r15), %rax
	movl	$0, (%rax)
	movq	_LIQUIDIO_BASE_MAJOR_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_LIQUIDIO_BASE_MINOR_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_LIQUIDIO_BASE_MICRO_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	32(%r15), %edi
	leaq	16(%r14), %rsi
	movl	$6, %edx
	callq	_memcpy
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_OCTEON_CN23XX_VF
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	32(%r15), %esi
	movq	%r14, %rdi
	callq	_octeon_pf_changed_vf_macaddr
	jmp	LBB0_8
LBB0_6:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	_OCTEON_MBOX_RESPONSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, 12(%r15)
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_get_vf_stats
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_octeon_mbox_write
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got vfactive sending data back\n"

	.comm	_OCTEON_MBOX_RESPONSE,8,3       ## @OCTEON_MBOX_RESPONSE
	.comm	_LIQUIDIO_BASE_MAJOR_VERSION,4,2 ## @LIQUIDIO_BASE_MAJOR_VERSION
	.comm	_LIQUIDIO_BASE_MINOR_VERSION,4,2 ## @LIQUIDIO_BASE_MINOR_VERSION
	.comm	_LIQUIDIO_BASE_MICRO_VERSION,4,2 ## @LIQUIDIO_BASE_MICRO_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"got a request for FLR from VF that owns DPI ring %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Got VF stats request. Sending data back\n"

	.no_dead_strip	_octeon_mbox_process_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function octeon_mbox_process_cmd
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_octeon_mbox_process_cmd:               ; @octeon_mbox_process_cmd
	.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	w8, [x1, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x0, [x19]
	ldr	x2, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	bl	_pcie_flr
	b	LBB0_8
LBB0_3:
	mov	x21, x19
	ldr	x0, [x21], #16
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh6:
	adrp	x8, _OCTEON_MBOX_RESPONSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCTEON_MBOX_RESPONSE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20, #24]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #12]
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _LIQUIDIO_BASE_MAJOR_VERSION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LIQUIDIO_BASE_MAJOR_VERSION@GOTPAGEOFF]
	str	wzr, [x8]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x8, #8]
Lloh14:
	adrp	x9, _LIQUIDIO_BASE_MINOR_VERSION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LIQUIDIO_BASE_MINOR_VERSION@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _LIQUIDIO_BASE_MICRO_VERSION@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LIQUIDIO_BASE_MICRO_VERSION@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	ldr	w0, [x20, #32]
	mov	x1, x21
	mov	w2, #6
	bl	_memcpy
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_OCTEON_CN23XX_VF
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_octeon_pf_changed_vf_macaddr
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh22:
	adrp	x8, _OCTEON_MBOX_RESPONSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OCTEON_MBOX_RESPONSE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x20, #24]
Lloh25:
	adrp	x8, lCPI0_0@PAGE
Lloh26:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #12]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_get_vf_stats
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_octeon_mbox_write
LBB0_8:
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got vfactive sending data back\n"

	.comm	_OCTEON_MBOX_RESPONSE,8,3       ; @OCTEON_MBOX_RESPONSE
	.comm	_LIQUIDIO_BASE_MAJOR_VERSION,4,2 ; @LIQUIDIO_BASE_MAJOR_VERSION
	.comm	_LIQUIDIO_BASE_MINOR_VERSION,4,2 ; @LIQUIDIO_BASE_MINOR_VERSION
	.comm	_LIQUIDIO_BASE_MICRO_VERSION,4,2 ; @LIQUIDIO_BASE_MICRO_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"got a request for FLR from VF that owns DPI ring %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Got VF stats request. Sending data back\n"

	.no_dead_strip	_octeon_mbox_process_cmd
.subsections_via_symbols
