	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_check_qp_stat
_hns_roce_v2_check_qp_stat:             ## @hns_roce_v2_check_qp_stat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%edi, %ecx
	je	LBB0_3
## %bb.1:
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpl	%esi, (%rdx)
	je	LBB0_8
## %bb.2:
	cmpl	%esi, %ecx
	je	LBB0_8
LBB0_3:
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IB_QPS_SQD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edi, %ecx
	je	LBB0_5
## %bb.4:
	cmpl	%edi, %edx
	jne	LBB0_7
LBB0_5:
	movl	$1, %eax
	cmpl	%esi, %ecx
	je	LBB0_8
## %bb.6:
	cmpl	%esi, %edx
	je	LBB0_8
LBB0_7:
	movq	_IB_QPS_SQE@GOTPCREL(%rip), %rax
	xorl	(%rax), %edi
	xorl	%esi, %ecx
	xorl	%eax, %eax
	orl	%edi, %ecx
	sete	%al
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_RESET,4,2               ## @IB_QPS_RESET
	.comm	_IB_QPS_ERR,4,2                 ## @IB_QPS_ERR
	.comm	_IB_QPS_RTS,4,2                 ## @IB_QPS_RTS
	.comm	_IB_QPS_SQD,4,2                 ## @IB_QPS_SQD
	.comm	_IB_QPS_SQE,4,2                 ## @IB_QPS_SQE
	.no_dead_strip	_hns_roce_v2_check_qp_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v2_check_qp_stat
_hns_roce_v2_check_qp_stat:             ; @hns_roce_v2_check_qp_stat
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IB_QPS_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _IB_QPS_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_QPS_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	ccmp	w8, w1, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	ret
LBB0_3:
Lloh6:
	adrp	x8, _IB_QPS_RTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_QPS_RTS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IB_QPS_SQD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_QPS_SQD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_6
; %bb.4:
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	ret
LBB0_6:
Lloh12:
	adrp	x9, _IB_QPS_SQE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_QPS_SQE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w0
	ccmp	w8, w1, #0, eq
	cset	w0, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_RESET,4,2               ; @IB_QPS_RESET
	.comm	_IB_QPS_ERR,4,2                 ; @IB_QPS_ERR
	.comm	_IB_QPS_RTS,4,2                 ; @IB_QPS_RTS
	.comm	_IB_QPS_SQD,4,2                 ; @IB_QPS_SQD
	.comm	_IB_QPS_SQE,4,2                 ; @IB_QPS_SQE
	.no_dead_strip	_hns_roce_v2_check_qp_stat
.subsections_via_symbols
