	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_q_sqp
_hns_roce_v1_q_sqp:                     ## @hns_roce_v1_q_sqp
	.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	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_hr_dev
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_hr_qp
	movq	%rax, %r12
	leaq	12(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rax, (%r15)
	jmp	LBB0_3
LBB0_2:
	movq	_ROCEE_QP1C_CFG0_0_REG@GOTPCREL(%rip), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movslq	8(%r12), %rax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,4), %r14
	shlq	$4, %r14
	leaq	(%r14,%rbx), %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %rsi
	incq	%rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%rbx), %rsi
	addq	$2, %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%rbx), %rsi
	addq	$3, %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%rbx), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %rsi
	addq	$5, %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%rbx), %rsi
	addq	$6, %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%rbx), %rsi
	addq	$7, %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%rbx), %rsi
	addq	$8, %rsi
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%rbx), %rsi
	addq	$9, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	_QP1C_BYTES_4_QP_STATE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QP1C_BYTES_4_QP_STATE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_roce_get_field
	movq	%rax, (%r12)
	movq	%rax, (%r15)
	movq	_IB_MTU_256@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 156(%r15)
	movq	_IB_MIG_ARMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 152(%r15)
	movq	_QKEY_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 148(%r15)
	movq	_RDMA_AH_ATTR_TYPE_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 128(%r15)
	movabsq	$25769803777, %rax              ## imm = 0x600000001
	movq	%rax, 8(%r15)
	movq	_QP1C_BYTES_20_PKEY_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QP1C_BYTES_20_PKEY_IDX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_roce_get_field
	movq	%rax, 120(%r15)
	movl	8(%r12), %eax
	incl	%eax
	movl	%eax, 16(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%r15)
	movups	%xmm0, 88(%r15)
	movups	%xmm0, 72(%r15)
	movups	%xmm0, 56(%r15)
	movq	(%r15), %rax
LBB0_3:
	movq	%rax, 24(%r15)
	movups	16(%r12), %xmm0
	movups	%xmm0, 40(%r15)
	movq	$0, 32(%r15)
	movq	48(%r15), %rax
	movq	%rax, 24(%r14)
	movups	32(%r15), %xmm0
	movups	%xmm0, 8(%r14)
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_RESET,8,3               ## @IB_QPS_RESET
	.comm	_ROCEE_QP1C_CFG0_0_REG,8,3      ## @ROCEE_QP1C_CFG0_0_REG
	.comm	_QP1C_BYTES_4_QP_STATE_M,4,2    ## @QP1C_BYTES_4_QP_STATE_M
	.comm	_QP1C_BYTES_4_QP_STATE_S,4,2    ## @QP1C_BYTES_4_QP_STATE_S
	.comm	_IB_MTU_256,4,2                 ## @IB_MTU_256
	.comm	_IB_MIG_ARMED,4,2               ## @IB_MIG_ARMED
	.comm	_QKEY_VAL,4,2                   ## @QKEY_VAL
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,4,2     ## @RDMA_AH_ATTR_TYPE_ROCE
	.comm	_QP1C_BYTES_20_PKEY_IDX_M,4,2   ## @QP1C_BYTES_20_PKEY_IDX_M
	.comm	_QP1C_BYTES_20_PKEY_IDX_S,4,2   ## @QP1C_BYTES_20_PKEY_IDX_S
	.no_dead_strip	_hns_roce_v1_q_sqp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function hns_roce_v1_q_sqp
lCPI0_0:
	.long	1                               ; 0x1
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hns_roce_v1_q_sqp:                     ; @hns_roce_v1_q_sqp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_hr_dev
	mov	x23, x0
	mov	x0, x21
	bl	_to_hr_qp
	mov	x22, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IB_QPS_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	x8, [x20]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ROCEE_QP1C_CFG0_0_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROCEE_QP1C_CFG0_0_REG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrsw	x9, [x22, #8]
	mov	w10, #80
	madd	x25, x9, x10, x8
	mov	x0, x23
	mov	x1, x25
	bl	_roce_read
	bl	_cpu_to_le32
	mov	x24, x0
	add	x1, x25, #1
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	add	x1, x25, #2
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	add	x1, x25, #3
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	add	x1, x25, #4
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	mov	x26, x0
	add	x1, x25, #5
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	add	x1, x25, #6
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	add	x1, x25, #7
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	add	x1, x25, #8
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
	add	x1, x25, #9
	mov	x0, x23
	bl	_roce_read
	bl	_cpu_to_le32
Lloh6:
	adrp	x8, _QP1C_BYTES_4_QP_STATE_M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QP1C_BYTES_4_QP_STATE_M@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _QP1C_BYTES_4_QP_STATE_S@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QP1C_BYTES_4_QP_STATE_S@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_roce_get_field
	str	x0, [x22]
	str	x0, [x20]
Lloh12:
	adrp	x8, _IB_MTU_256@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_MTU_256@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IB_MIG_ARMED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_MIG_ARMED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _QKEY_VAL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _QKEY_VAL@GOTPAGEOFF]
	stp	w9, w8, [x20, #152]
Lloh20:
	ldr	w8, [x10]
Lloh21:
	adrp	x9, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #144]
	stp	xzr, xzr, [x20, #128]
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #8]
Lloh26:
	adrp	x8, _QP1C_BYTES_20_PKEY_IDX_M@GOTPAGE
Lloh27:
	ldr	x8, [x8, _QP1C_BYTES_20_PKEY_IDX_M@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _QP1C_BYTES_20_PKEY_IDX_S@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QP1C_BYTES_20_PKEY_IDX_S@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x26
	bl	_roce_get_field
	str	x0, [x20, #120]
	ldr	w8, [x22, #8]
	add	w8, w8, #1
	str	w8, [x20, #16]
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #104]
	stur	q0, [x20, #88]
	stur	q0, [x20, #72]
	stur	q0, [x20, #56]
	ldr	x8, [x20]
LBB0_3:
	ldr	q0, [x22, #16]
	stur	q0, [x20, #40]
	stp	x8, xzr, [x20, #24]
	ldr	x8, [x20, #48]
	ldr	q0, [x20, #32]
	stur	q0, [x19, #8]
	str	x8, [x19, #24]
	str	xzr, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdrp	Lloh24, Lloh26
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_RESET,8,3               ; @IB_QPS_RESET
	.comm	_ROCEE_QP1C_CFG0_0_REG,8,3      ; @ROCEE_QP1C_CFG0_0_REG
	.comm	_QP1C_BYTES_4_QP_STATE_M,4,2    ; @QP1C_BYTES_4_QP_STATE_M
	.comm	_QP1C_BYTES_4_QP_STATE_S,4,2    ; @QP1C_BYTES_4_QP_STATE_S
	.comm	_IB_MTU_256,4,2                 ; @IB_MTU_256
	.comm	_IB_MIG_ARMED,4,2               ; @IB_MIG_ARMED
	.comm	_QKEY_VAL,4,2                   ; @QKEY_VAL
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,4,2     ; @RDMA_AH_ATTR_TYPE_ROCE
	.comm	_QP1C_BYTES_20_PKEY_IDX_M,4,2   ; @QP1C_BYTES_20_PKEY_IDX_M
	.comm	_QP1C_BYTES_20_PKEY_IDX_S,4,2   ; @QP1C_BYTES_20_PKEY_IDX_S
	.no_dead_strip	_hns_roce_v1_q_sqp
.subsections_via_symbols
