	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_cmq_init_regs
_hns_roce_cmq_init_regs:                ## @hns_roce_cmq_init_regs
	.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	%rdi, %r12
	movq	(%rdi), %rax
	movq	_TYPE_CSQ@GOTPCREL(%rip), %rcx
	leaq	16(%rax), %r13
	cmpl	%esi, (%rcx)
	cmovneq	%rax, %r13
	movq	8(%r13), %r14
	movq	_ROCEE_RX_CMQ_BASEADDR_L_REG@GOTPCREL(%rip), %rax
	cmoveq	_ROCEE_TX_CMQ_BASEADDR_L_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ROCEE_RX_CMQ_BASEADDR_H_REG@GOTPCREL(%rip), %rbx
	cmoveq	_ROCEE_TX_CMQ_BASEADDR_H_REG@GOTPCREL(%rip), %rbx
	movq	_ROCEE_RX_CMQ_DEPTH_REG@GOTPCREL(%rip), %r15
	cmoveq	_ROCEE_TX_CMQ_DEPTH_REG@GOTPCREL(%rip), %r15
	movq	_ROCEE_RX_CMQ_HEAD_REG@GOTPCREL(%rip), %rax
	cmoveq	_ROCEE_TX_CMQ_HEAD_REG@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ROCEE_RX_CMQ_TAIL_REG@GOTPCREL(%rip), %rax
	cmoveq	_ROCEE_TX_CMQ_TAIL_REG@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edx
	callq	_roce_write
	movl	(%rbx), %ebx
	movq	%r14, %rdi
	callq	_upper_32_bits
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_roce_write
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	_HNS_ROCE_CMQ_DESC_NUM_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	%r12, %rdi
	callq	_roce_write
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_roce_write
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_roce_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CSQ,4,2                   ## @TYPE_CSQ
	.comm	_ROCEE_TX_CMQ_BASEADDR_L_REG,4,2 ## @ROCEE_TX_CMQ_BASEADDR_L_REG
	.comm	_ROCEE_TX_CMQ_BASEADDR_H_REG,4,2 ## @ROCEE_TX_CMQ_BASEADDR_H_REG
	.comm	_ROCEE_TX_CMQ_DEPTH_REG,4,2     ## @ROCEE_TX_CMQ_DEPTH_REG
	.comm	_HNS_ROCE_CMQ_DESC_NUM_S,4,2    ## @HNS_ROCE_CMQ_DESC_NUM_S
	.comm	_ROCEE_TX_CMQ_HEAD_REG,4,2      ## @ROCEE_TX_CMQ_HEAD_REG
	.comm	_ROCEE_TX_CMQ_TAIL_REG,4,2      ## @ROCEE_TX_CMQ_TAIL_REG
	.comm	_ROCEE_RX_CMQ_BASEADDR_L_REG,4,2 ## @ROCEE_RX_CMQ_BASEADDR_L_REG
	.comm	_ROCEE_RX_CMQ_BASEADDR_H_REG,4,2 ## @ROCEE_RX_CMQ_BASEADDR_H_REG
	.comm	_ROCEE_RX_CMQ_DEPTH_REG,4,2     ## @ROCEE_RX_CMQ_DEPTH_REG
	.comm	_ROCEE_RX_CMQ_HEAD_REG,4,2      ## @ROCEE_RX_CMQ_HEAD_REG
	.comm	_ROCEE_RX_CMQ_TAIL_REG,4,2      ## @ROCEE_RX_CMQ_TAIL_REG
	.no_dead_strip	_hns_roce_cmq_init_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_cmq_init_regs
_hns_roce_cmq_init_regs:                ; @hns_roce_cmq_init_regs
	.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, x0
Lloh0:
	adrp	x8, _TYPE_CSQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_CSQ@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	w8, [x8]
	add	x10, x9, #16
	cmp	w8, w1
	csel	x22, x10, x9, eq
	ldr	x20, [x22, #8]
Lloh3:
	adrp	x8, _ROCEE_TX_CMQ_BASEADDR_L_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROCEE_TX_CMQ_BASEADDR_L_REG@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ROCEE_RX_CMQ_BASEADDR_L_REG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ROCEE_RX_CMQ_BASEADDR_L_REG@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _ROCEE_TX_CMQ_BASEADDR_H_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ROCEE_TX_CMQ_BASEADDR_H_REG@GOTPAGEOFF]
Lloh9:
	adrp	x9, _ROCEE_RX_CMQ_BASEADDR_H_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ROCEE_RX_CMQ_BASEADDR_H_REG@GOTPAGEOFF]
	csel	x21, x8, x9, eq
Lloh11:
	adrp	x8, _ROCEE_TX_CMQ_DEPTH_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ROCEE_TX_CMQ_DEPTH_REG@GOTPAGEOFF]
Lloh13:
	adrp	x9, _ROCEE_RX_CMQ_DEPTH_REG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ROCEE_RX_CMQ_DEPTH_REG@GOTPAGEOFF]
Lloh15:
	adrp	x10, _ROCEE_TX_CMQ_HEAD_REG@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ROCEE_TX_CMQ_HEAD_REG@GOTPAGEOFF]
	csel	x23, x8, x9, eq
Lloh17:
	adrp	x8, _ROCEE_RX_CMQ_HEAD_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ROCEE_RX_CMQ_HEAD_REG@GOTPAGEOFF]
	csel	x24, x10, x8, eq
Lloh19:
	adrp	x8, _ROCEE_TX_CMQ_TAIL_REG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ROCEE_TX_CMQ_TAIL_REG@GOTPAGEOFF]
Lloh21:
	adrp	x9, _ROCEE_RX_CMQ_TAIL_REG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ROCEE_RX_CMQ_TAIL_REG@GOTPAGEOFF]
	csel	x25, x8, x9, eq
	mov	x2, x20
	bl	_roce_write
	ldr	w21, [x21]
	mov	x0, x20
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_roce_write
	ldr	w1, [x23]
	ldr	w8, [x22]
Lloh23:
	adrp	x9, _HNS_ROCE_CMQ_DESC_NUM_S@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HNS_ROCE_CMQ_DESC_NUM_S@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	asr	w2, w8, w9
	mov	x0, x19
	bl	_roce_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_roce_write
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #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
	b	_roce_write
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CSQ,4,2                   ; @TYPE_CSQ
	.comm	_ROCEE_TX_CMQ_BASEADDR_L_REG,4,2 ; @ROCEE_TX_CMQ_BASEADDR_L_REG
	.comm	_ROCEE_TX_CMQ_BASEADDR_H_REG,4,2 ; @ROCEE_TX_CMQ_BASEADDR_H_REG
	.comm	_ROCEE_TX_CMQ_DEPTH_REG,4,2     ; @ROCEE_TX_CMQ_DEPTH_REG
	.comm	_HNS_ROCE_CMQ_DESC_NUM_S,4,2    ; @HNS_ROCE_CMQ_DESC_NUM_S
	.comm	_ROCEE_TX_CMQ_HEAD_REG,4,2      ; @ROCEE_TX_CMQ_HEAD_REG
	.comm	_ROCEE_TX_CMQ_TAIL_REG,4,2      ; @ROCEE_TX_CMQ_TAIL_REG
	.comm	_ROCEE_RX_CMQ_BASEADDR_L_REG,4,2 ; @ROCEE_RX_CMQ_BASEADDR_L_REG
	.comm	_ROCEE_RX_CMQ_BASEADDR_H_REG,4,2 ; @ROCEE_RX_CMQ_BASEADDR_H_REG
	.comm	_ROCEE_RX_CMQ_DEPTH_REG,4,2     ; @ROCEE_RX_CMQ_DEPTH_REG
	.comm	_ROCEE_RX_CMQ_HEAD_REG,4,2      ; @ROCEE_RX_CMQ_HEAD_REG
	.comm	_ROCEE_RX_CMQ_TAIL_REG,4,2      ; @ROCEE_RX_CMQ_TAIL_REG
	.no_dead_strip	_hns_roce_cmq_init_regs
.subsections_via_symbols
