	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclgevf_send_mbx_msg           ## -- Begin function hclgevf_send_mbx_msg
	.p2align	4, 0x90
_hclgevf_send_mbx_msg:                  ## @hclgevf_send_mbx_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_HCLGE_MBX_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-2(%rcx), %eax
	cmpl	%r8d, %eax
	jge	LBB0_2
## %bb.1:
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r8d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	-16(%rbp), %rdi
	callq	_hclgevf_send_mbx_msg.cold.1
	xorl	%eax, %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function hclgevf_send_mbx_msg.cold.1
_hclgevf_send_mbx_msg.cold.1:           ## @hclgevf_send_mbx_msg.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HCLGEVF_OPC_MBX_VF_TO_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_hclgevf_cmd_setup_basic_desc
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_MBX_MAX_MSG_SIZE,4,2     ## @HCLGE_MBX_MAX_MSG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF send mbx msg fail, msg len %d exceeds max len %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCLGEVF_OPC_MBX_VF_TO_PF,4,2   ## @HCLGEVF_OPC_MBX_VF_TO_PF
	.comm	_HCLGE_MBX_NEED_RESP_BIT,4,2    ## @HCLGE_MBX_NEED_RESP_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclgevf_send_mbx_msg           ; -- Begin function hclgevf_send_mbx_msg
	.p2align	2
_hclgevf_send_mbx_msg:                  ; @hclgevf_send_mbx_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _HCLGE_MBX_MAX_MSG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_MBX_MAX_MSG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #2
	cmp	w9, w4
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x0]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x4
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_2:
	add	x0, sp, #8
	bl	_hclgevf_send_mbx_msg.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function hclgevf_send_mbx_msg.cold.1
_hclgevf_send_mbx_msg.cold.1:           ; @hclgevf_send_mbx_msg.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh8:
	adrp	x8, _HCLGEVF_OPC_MBX_VF_TO_PF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCLGEVF_OPC_MBX_VF_TO_PF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_hclgevf_cmd_setup_basic_desc
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_MBX_MAX_MSG_SIZE,4,2     ; @HCLGE_MBX_MAX_MSG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF send mbx msg fail, msg len %d exceeds max len %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCLGEVF_OPC_MBX_VF_TO_PF,4,2   ; @HCLGEVF_OPC_MBX_VF_TO_PF
	.comm	_HCLGE_MBX_NEED_RESP_BIT,4,2    ; @HCLGE_MBX_NEED_RESP_BIT
.subsections_via_symbols
