	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_query_qpc
_hns_roce_v2_query_qpc:                 ## @hns_roce_v2_query_qpc
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_hns_roce_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	4(%rbx), %edx
	movl	(%r12), %ecx
	movq	_HNS_ROCE_CMD_QUERY_QPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_hns_roce_cmd_mbox
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_4
LBB0_3:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hns_roce_free_cmd_mailbox
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_CMD_QUERY_QPC,4,2     ## @HNS_ROCE_CMD_QUERY_QPC
	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ## @HNS_ROCE_CMD_TIMEOUT_MSECS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUERY QP cmd process error\n"

	.no_dead_strip	_hns_roce_v2_query_qpc
.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_query_qpc
_hns_roce_v2_query_qpc:                 ; @hns_roce_v2_query_qpc
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_hns_roce_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	ldr	w2, [x20, #4]
	ldr	w3, [x22]
Lloh0:
	adrp	x8, _HNS_ROCE_CMD_QUERY_QPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_CMD_QUERY_QPC@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w4, #0
	bl	_hns_roce_cmd_mbox
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_hns_roce_free_cmd_mailbox
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_CMD_QUERY_QPC,4,2     ; @HNS_ROCE_CMD_QUERY_QPC
	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ; @HNS_ROCE_CMD_TIMEOUT_MSECS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUERY QP cmd process error\n"

	.no_dead_strip	_hns_roce_v2_query_qpc
.subsections_via_symbols
