	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn23xx_setup_vf_mbox
_cn23xx_setup_vf_mbox:                  ## @cn23xx_setup_vf_mbox
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$72, %edi
	callq	_vmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	leaq	64(%rbx), %rdi
	callq	_spin_lock_init
	movq	%r15, 56(%rbx)
	movq	$0, 48(%rbx)
	movq	_OCTEON_MBOX_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	8(%r15), %rax
	movq	(%rax), %r12
	xorl	%edi, %edi
	callq	_CN23XX_VF_SLI_PKT_MBOX_INT
	cltq
	leaq	(%r12,%rax,4), %rax
	movq	%rax, 32(%rbx)
	movq	8(%r15), %rax
	movq	(%rax), %r12
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_CN23XX_SLI_PKT_PF_VF_MBOX_SIG
	cltq
	leaq	(%r12,%rax,4), %rax
	movq	%rax, (%rbx)
	movq	8(%r15), %rax
	movq	(%rax), %r12
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_CN23XX_SLI_PKT_PF_VF_MBOX_SIG
	cltq
	leaq	(%r12,%rax,4), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_cn23xx_vf_mbox_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, 8(%rbx)
	movq	(%r15), %rax
	movq	%rbx, (%rax)
	movq	_OCTEON_PFVFSIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_writeq
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_MBOX_STATE_IDLE,4,2     ## @OCTEON_MBOX_STATE_IDLE
	.comm	_cn23xx_vf_mbox_thread,4,2      ## @cn23xx_vf_mbox_thread
	.comm	_OCTEON_PFVFSIG,4,2             ## @OCTEON_PFVFSIG
	.no_dead_strip	_cn23xx_setup_vf_mbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn23xx_setup_vf_mbox
_cn23xx_setup_vf_mbox:                  ; @cn23xx_setup_vf_mbox
	.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
	mov	x19, x0
	mov	w0, #72
	bl	_vmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	add	x0, x20, #64
	bl	_spin_lock_init
	stp	xzr, x19, [x20, #48]
Lloh0:
	adrp	x8, _OCTEON_MBOX_STATE_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTEON_MBOX_STATE_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	mov	w0, #0
	bl	_CN23XX_VF_SLI_PKT_MBOX_INT
	add	x8, x21, w0, sxtw #2
	str	x8, [x20, #32]
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	mov	w0, #0
	mov	w1, #0
	bl	_CN23XX_SLI_PKT_PF_VF_MBOX_SIG
	add	x8, x21, w0, sxtw #2
	str	x8, [x20]
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	mov	w0, #0
	mov	w1, #1
	bl	_CN23XX_SLI_PKT_PF_VF_MBOX_SIG
	add	x8, x21, w0, sxtw #2
	str	x8, [x20, #24]
	add	x0, x20, #16
Lloh3:
	adrp	x8, _cn23xx_vf_mbox_thread@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cn23xx_vf_mbox_thread@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	str	x20, [x20, #8]
	ldr	x8, [x19]
	str	x20, [x8]
Lloh6:
	adrp	x8, _OCTEON_PFVFSIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCTEON_PFVFSIG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x20]
	bl	_writeq
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_MBOX_STATE_IDLE,4,2     ; @OCTEON_MBOX_STATE_IDLE
	.comm	_cn23xx_vf_mbox_thread,4,2      ; @cn23xx_vf_mbox_thread
	.comm	_OCTEON_PFVFSIG,4,2             ; @OCTEON_PFVFSIG
	.no_dead_strip	_cn23xx_setup_vf_mbox
.subsections_via_symbols
