	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclgevf_mbx_handler            ## -- Begin function hclgevf_mbx_handler
	.p2align	4, 0x90
_hclgevf_mbx_handler:                   ## @hclgevf_mbx_handler
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_hclgevf_cmd_crq_empty
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	movq	_HCLGEVF_NIC_CRQ_HEAD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hclgevf_write_dev              ## TAILCALL
LBB0_1:
	leaq	56(%rbx), %r15
	leaq	40(%rbx), %r12
	leaq	32(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rdi
	movq	(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_dev_warn
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	shlq	$4, %rax
	movq	$0, (%rcx,%rax)
	movq	%r14, %rdi
	callq	_hclge_mbx_ring_ptr_move_crq
	movq	%r14, %rdi
	callq	_hclgevf_cmd_crq_empty
	testl	%eax, %eax
	jne	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	_HCLGEVF_STATE_CMD_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdi
	movq	8(%rcx,%rax), %r13
	callq	_le16_to_cpu
	movq	_HCLGEVF_CMDQ_RX_OUTVLD_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_hnae3_get_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	(%rax), %edx
	leal	-130(%rdx), %ecx
	cmpl	$3, %ecx
	jb	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %edx
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %edx
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 64(%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rdi
	movl	4(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	(%r13), %rax
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 64(%rbx)
	movl	4(%rax), %ecx
	shll	$16, %ecx
	movl	%ecx, 68(%rbx)
	orl	8(%rax), %ecx
	movl	%ecx, 68(%rbx)
	movl	12(%rax), %ecx
	movl	%ecx, 72(%rbx)
	movq	_HCLGE_MBX_MAX_RESP_DATA_SIZE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movq	_HCLGE_MBX_MAX_RESP_DATA_SIZE@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rbx)
	movq	%r12, %rdi
	callq	_atomic_read
	movq	_HCLGE_MBX_MAX_ARQ_MSG_NUM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movq	48(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	(%r13), %rsi
	movq	_HCLGE_MBX_MAX_ARQ_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	%rax, 16(%rsp)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rsp)
	callq	_hclge_mbx_tail_ptr_move_arq
	movq	%r12, %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	callq	_hclgevf_mbx_task_schedule
	jmp	LBB0_6
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rdi
	movq	(%r13), %rax
	movl	4(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	jmp	LBB0_6
LBB0_20:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGEVF_STATE_CMD_DISABLE,4,2  ## @HCLGEVF_STATE_CMD_DISABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf crq need init\n"

	.comm	_HCLGEVF_CMDQ_RX_OUTVLD_B,4,2   ## @HCLGEVF_CMDQ_RX_OUTVLD_B
L_.str.1:                               ## @.str.1
	.asciz	"dropped invalid mailbox message, code = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"VF mbx resp flag not clear(%d)\n"

	.comm	_HCLGE_MBX_MAX_RESP_DATA_SIZE,4,2 ## @HCLGE_MBX_MAX_RESP_DATA_SIZE
	.comm	_HCLGE_MBX_MAX_ARQ_MSG_NUM,4,2  ## @HCLGE_MBX_MAX_ARQ_MSG_NUM
L_.str.3:                               ## @.str.3
	.asciz	"Async Q full, dropping msg(%d)\n"

	.comm	_HCLGE_MBX_MAX_ARQ_MSG_SIZE,4,2 ## @HCLGE_MBX_MAX_ARQ_MSG_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"VF received unsupported(%d) mbx msg from PF\n"

	.comm	_HCLGEVF_NIC_CRQ_HEAD_REG,4,2   ## @HCLGEVF_NIC_CRQ_HEAD_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclgevf_mbx_handler            ; -- Begin function hclgevf_mbx_handler
	.p2align	2
_hclgevf_mbx_handler:                   ; @hclgevf_mbx_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_hclgevf_cmd_crq_empty
	cbz	w0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _HCLGEVF_NIC_CRQ_HEAD_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGEVF_NIC_CRQ_HEAD_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_hclgevf_write_dev
	b	LBB0_21
LBB0_2:
	add	x21, x20, #56
	add	x22, x20, #40
Lloh3:
	adrp	x27, _HCLGEVF_STATE_CMD_DISABLE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _HCLGEVF_STATE_CMD_DISABLE@GOTPAGEOFF]
	add	x28, x20, #32
Lloh5:
	adrp	x24, _HCLGEVF_CMDQ_RX_OUTVLD_B@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HCLGEVF_CMDQ_RX_OUTVLD_B@GOTPAGEOFF]
Lloh7:
	adrp	x23, _HCLGE_MBX_MAX_RESP_DATA_SIZE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _HCLGE_MBX_MAX_RESP_DATA_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x26, l_.str.1@PAGE
Lloh10:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, #24]
	ldr	x8, [x25]
	ldr	w2, [x8]
	mov	x1, x26
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_dev_warn
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [x20, #8]
	lsl	x9, x9, #4
	str	xzr, [x8, x9]
	mov	x0, x19
	bl	_hclge_mbx_ring_ptr_move_crq
	mov	x0, x19
	bl	_hclgevf_cmd_crq_empty
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [x20, #8]
	add	x8, x8, x9, lsl #4
	ldp	x0, x25, [x8]
	bl	_le16_to_cpu
	ldr	w1, [x24]
	bl	_hnae3_get_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	w2, [x8]
	sub	w9, w2, #130
	cmp	w9, #3
	b.lo	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w2, #128
	b.eq	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w2, #129
	b.ne	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x20, #64]
	cbz	w9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, #24]
	ldr	w2, [x8, #4]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x25]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #1
	str	w9, [x20, #64]
	ldr	w9, [x8, #4]
	lsl	w9, w9, #16
	str	w9, [x20, #68]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x20, #68]
	ldr	w9, [x8, #12]
	str	w9, [x20, #72]
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, #0
	add	x8, x8, #16
	ldr	x10, [x20, #80]
LBB0_15:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x11, x9, #2
	ldr	w12, [x8, x11]
	str	w12, [x10, x11]
	add	x9, x9, #1
	ldrsw	x11, [x23]
	cmp	x9, x11
	b.lt	LBB0_15
	b	LBB0_5
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x22
	bl	_atomic_read
Lloh13:
	adrp	x8, _HCLGE_MBX_MAX_ARQ_MSG_NUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HCLGE_MBX_MAX_ARQ_MSG_NUM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #48]
	ldr	x9, [x20, #32]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x1, [x25]
Lloh16:
	adrp	x8, _HCLGE_MBX_MAX_ARQ_MSG_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HCLGE_MBX_MAX_ARQ_MSG_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	q0, [x28]
	str	q0, [sp]
	ldr	x8, [x28, #16]
	str	x8, [sp, #16]
	mov	x0, sp
	bl	_hclge_mbx_tail_ptr_move_arq
	mov	x0, x22
	bl	_atomic_inc
	mov	x0, x20
	bl	_hclgevf_mbx_task_schedule
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, #24]
	ldr	x8, [x25]
	ldr	w2, [x8, #4]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, #24]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_20:
	ldr	x0, [x20, #24]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGEVF_STATE_CMD_DISABLE,4,2  ; @HCLGEVF_STATE_CMD_DISABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf crq need init\n"

	.comm	_HCLGEVF_CMDQ_RX_OUTVLD_B,4,2   ; @HCLGEVF_CMDQ_RX_OUTVLD_B
l_.str.1:                               ; @.str.1
	.asciz	"dropped invalid mailbox message, code = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"VF mbx resp flag not clear(%d)\n"

	.comm	_HCLGE_MBX_MAX_RESP_DATA_SIZE,4,2 ; @HCLGE_MBX_MAX_RESP_DATA_SIZE
	.comm	_HCLGE_MBX_MAX_ARQ_MSG_NUM,4,2  ; @HCLGE_MBX_MAX_ARQ_MSG_NUM
l_.str.3:                               ; @.str.3
	.asciz	"Async Q full, dropping msg(%d)\n"

	.comm	_HCLGE_MBX_MAX_ARQ_MSG_SIZE,4,2 ; @HCLGE_MBX_MAX_ARQ_MSG_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"VF received unsupported(%d) mbx msg from PF\n"

	.comm	_HCLGEVF_NIC_CRQ_HEAD_REG,4,2   ; @HCLGEVF_NIC_CRQ_HEAD_REG
.subsections_via_symbols
