	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_modify_cq
_hns_roce_v2_modify_cq:                 ## @hns_roce_v2_modify_cq
	.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
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_hr_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_hr_cq
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_hns_roce_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r15
	leaq	4(%r15), %rdi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r15), %edi
	movq	_V2_CQC_BYTE_56_CQ_MAX_CNT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_V2_CQC_BYTE_56_CQ_MAX_CNT_S@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%r13d, %ecx
	callq	_roce_set_field
	movl	4(%r15), %edi
	movq	_V2_CQC_BYTE_56_CQ_MAX_CNT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	(%r15), %edi
	movq	_V2_CQC_BYTE_56_CQ_PERIOD_M@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_V2_CQC_BYTE_56_CQ_PERIOD_S@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_roce_set_field
	movl	4(%r15), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	(%rbx), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	_HNS_ROCE_CMD_MODIFY_CQC@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	%edx, %edx
	movl	$1, %r8d
	callq	_hns_roce_cmd_mbox
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hns_roce_free_cmd_mailbox
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%r15d, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V2_CQC_BYTE_56_CQ_MAX_CNT_M,4,2 ## @V2_CQC_BYTE_56_CQ_MAX_CNT_M
	.comm	_V2_CQC_BYTE_56_CQ_MAX_CNT_S,4,2 ## @V2_CQC_BYTE_56_CQ_MAX_CNT_S
	.comm	_V2_CQC_BYTE_56_CQ_PERIOD_M,4,2 ## @V2_CQC_BYTE_56_CQ_PERIOD_M
	.comm	_V2_CQC_BYTE_56_CQ_PERIOD_S,4,2 ## @V2_CQC_BYTE_56_CQ_PERIOD_S
	.comm	_HNS_ROCE_CMD_MODIFY_CQC,4,2    ## @HNS_ROCE_CMD_MODIFY_CQC
	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ## @HNS_ROCE_CMD_TIMEOUT_MSECS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MODIFY CQ Failed to cmd mailbox.\n"

	.no_dead_strip	_hns_roce_v2_modify_cq
.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_modify_cq
_hns_roce_v2_modify_cq:                 ; @hns_roce_v2_modify_cq
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_hr_dev
	mov	x19, x0
	mov	x0, x20
	bl	_to_hr_cq
	mov	x21, x0
	mov	x0, x19
	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, #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
	b	_PTR_ERR
LBB0_2:
	ldr	x24, [x20, #8]
	add	x0, x24, #4
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	ldr	w0, [x24]
Lloh0:
	adrp	x25, _V2_CQC_BYTE_56_CQ_MAX_CNT_M@GOTPAGE
Lloh1:
	ldr	x25, [x25, _V2_CQC_BYTE_56_CQ_MAX_CNT_M@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x26, _V2_CQC_BYTE_56_CQ_MAX_CNT_S@GOTPAGE
Lloh3:
	ldr	x26, [x26, _V2_CQC_BYTE_56_CQ_MAX_CNT_S@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x3, x23
	bl	_roce_set_field
	ldr	w0, [x24, #4]
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x24]
Lloh4:
	adrp	x23, _V2_CQC_BYTE_56_CQ_PERIOD_M@GOTPAGE
Lloh5:
	ldr	x23, [x23, _V2_CQC_BYTE_56_CQ_PERIOD_M@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh6:
	adrp	x25, _V2_CQC_BYTE_56_CQ_PERIOD_S@GOTPAGE
Lloh7:
	ldr	x25, [x25, _V2_CQC_BYTE_56_CQ_PERIOD_S@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x3, x22
	bl	_roce_set_field
	ldr	w0, [x24, #4]
	ldr	w1, [x23]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w1, [x20]
	ldr	w3, [x21]
Lloh8:
	adrp	x8, _HNS_ROCE_CMD_MODIFY_CQC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HNS_ROCE_CMD_MODIFY_CQC@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #1
	bl	_hns_roce_cmd_mbox
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_hns_roce_free_cmd_mailbox
	cbz	w21, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	mov	x0, x21
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_V2_CQC_BYTE_56_CQ_MAX_CNT_M,4,2 ; @V2_CQC_BYTE_56_CQ_MAX_CNT_M
	.comm	_V2_CQC_BYTE_56_CQ_MAX_CNT_S,4,2 ; @V2_CQC_BYTE_56_CQ_MAX_CNT_S
	.comm	_V2_CQC_BYTE_56_CQ_PERIOD_M,4,2 ; @V2_CQC_BYTE_56_CQ_PERIOD_M
	.comm	_V2_CQC_BYTE_56_CQ_PERIOD_S,4,2 ; @V2_CQC_BYTE_56_CQ_PERIOD_S
	.comm	_HNS_ROCE_CMD_MODIFY_CQC,4,2    ; @HNS_ROCE_CMD_MODIFY_CQC
	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ; @HNS_ROCE_CMD_TIMEOUT_MSECS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MODIFY CQ Failed to cmd mailbox.\n"

	.no_dead_strip	_hns_roce_v2_modify_cq
.subsections_via_symbols
