	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_log_rocee_ovf_error
_hclge_log_rocee_ovf_error:             ## @hclge_log_rocee_ovf_error
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	movq	_HCLGE_ROCEE_PF_RAS_INT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_hclge_cmd_query_error
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_2:
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	_HCLGE_ROCEE_OVF_ERR_INT_MASK@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.3:
	movq	_hclge_rocee_qmm_ovf_err_int@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_HCLGE_ROCEE_OVF_ERR_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	(%rbx), %r12d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.4:
	andl	%r13d, %eax
	cmpl	%eax, 4(%rbx)
	je	LBB0_8
## %bb.5:
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx), %r12d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	8(%rbx), %rcx
	cmpl	%eax, (%rbx)
	movq	%rcx, %rbx
	jne	LBB0_6
LBB0_8:
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	-64(%rbp), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.10:
	movq	-64(%rbp), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movq	-64(%rbp), %rax
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, (%r15)
	je	LBB0_17
## %bb.12:
	movq	-64(%rbp), %rax
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_ROCEE_PF_RAS_INT_CMD,4,2 ## @HCLGE_ROCEE_PF_RAS_INT_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed(%d) to query ROCEE OVF error sts\n"

	.comm	_HCLGE_ROCEE_OVF_ERR_INT_MASK,4,2 ## @HCLGE_ROCEE_OVF_ERR_INT_MASK
	.comm	_hclge_rocee_qmm_ovf_err_int,8,3 ## @hclge_rocee_qmm_ovf_err_int
	.comm	_HCLGE_ROCEE_OVF_ERR_TYPE_MASK,4,2 ## @HCLGE_ROCEE_OVF_ERR_TYPE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"%s [error status=0x%x] found\n"

L_.str.2:                               ## @.str.2
	.asciz	"ROCEE TSP OVF [error status=0x%x] found\n"

L_.str.3:                               ## @.str.3
	.asciz	"ROCEE SCC OVF [error status=0x%x] found\n"

	.no_dead_strip	_hclge_log_rocee_ovf_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_log_rocee_ovf_error
_hclge_log_rocee_ovf_error:             ; @hclge_log_rocee_ovf_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _HCLGE_ROCEE_PF_RAS_INT_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_ROCEE_PF_RAS_INT_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #0
	bl	_hclge_cmd_query_error
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_14
LBB0_2:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
Lloh8:
	adrp	x21, _HCLGE_ROCEE_OVF_ERR_INT_MASK@GOTPAGE
Lloh9:
	ldr	x21, [x21, _HCLGE_ROCEE_OVF_ERR_INT_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.3:
Lloh10:
	adrp	x8, _hclge_rocee_qmm_ovf_err_int@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hclge_rocee_qmm_ovf_err_int@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
Lloh13:
	adrp	x8, _HCLGE_ROCEE_OVF_ERR_TYPE_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HCLGE_ROCEE_OVF_ERR_TYPE_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	w20, [x22]
	cbz	w20, LBB0_9
; %bb.4:
	and	w8, w0, w23
	ldr	w9, [x22, #4]
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.5:
	add	x9, x22, #12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w20, [x9, #-4]
	cbz	w20, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x9], #8
	cmp	w10, w8
	b.ne	LBB0_6
LBB0_8:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_9:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	mov	w20, #0
LBB0_14:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_ROCEE_PF_RAS_INT_CMD,4,2 ; @HCLGE_ROCEE_PF_RAS_INT_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed(%d) to query ROCEE OVF error sts\n"

	.comm	_HCLGE_ROCEE_OVF_ERR_INT_MASK,4,2 ; @HCLGE_ROCEE_OVF_ERR_INT_MASK
	.comm	_hclge_rocee_qmm_ovf_err_int,8,3 ; @hclge_rocee_qmm_ovf_err_int
	.comm	_HCLGE_ROCEE_OVF_ERR_TYPE_MASK,4,2 ; @HCLGE_ROCEE_OVF_ERR_TYPE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"%s [error status=0x%x] found\n"

l_.str.2:                               ; @.str.2
	.asciz	"ROCEE TSP OVF [error status=0x%x] found\n"

l_.str.3:                               ; @.str.3
	.asciz	"ROCEE SCC OVF [error status=0x%x] found\n"

	.no_dead_strip	_hclge_log_rocee_ovf_error
.subsections_via_symbols
