	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_set_rq_size
_hns_roce_set_rq_size:                  ## @hns_roce_set_rq_size
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %eax
	movl	%edx, %r8d
	movq	16(%rdi), %r12
	movl	(%rsi), %edx
	movl	4(%rsi), %ecx
	cmpl	(%rdi), %edx
	ja	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpl	4(%rdi), %ecx
	jle	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rsi, %r15
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	testl	%r8d, %r8d
	je	LBB0_11
## %bb.6:
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	testl	%ecx, %ecx
	je	LBB0_8
LBB0_11:
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.12:
	movl	%edx, %edi
	callq	_max
	movq	%rax, %rdx
LBB0_13:
	movq	%rdx, %rdi
	callq	_roundup_pow_of_two
	movq	%rax, (%r14)
	movl	(%rbx), %ecx
	cmpq	%rcx, %rax
	jle	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_4:
	movq	$0, (%r14)
	movl	$0, 8(%r14)
	jmp	LBB0_18
LBB0_15:
	movl	4(%r15), %esi
	movl	$1, %edi
	callq	_max
	movq	%rax, %rdi
	callq	_roundup_pow_of_two
	movl	%eax, 8(%r14)
	movl	12(%rbx), %edi
	cmpl	$2, 4(%rbx)
	jle	LBB0_17
## %bb.16:
	imull	%eax, %edi
LBB0_17:
	callq	_ilog2
	movq	%rax, 24(%r14)
LBB0_18:
	movq	(%r14), %rax
	movq	%rax, 16(%r14)
	movl	%eax, (%r15)
	movl	8(%r14), %eax
	movl	%eax, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RQ WR or sge error!max_recv_wr=%d max_recv_sge=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"user space no need config max_recv_wr max_recv_sge\n"

L_.str.2:                               ## @.str.2
	.asciz	"while setting rq size, rq.wqe_cnt too large\n"

	.no_dead_strip	_hns_roce_set_rq_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_set_rq_size
_hns_roce_set_rq_size:                  ; @hns_roce_set_rq_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x22, [x0, #16]
	ldr	w9, [x0]
	ldp	w0, w8, [x1]
	cmp	w0, w9
	b.hi	LBB0_2
; %bb.1:
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.le	LBB0_5
LBB0_2:
	stp	x0, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x22
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x19, x4
	mov	x20, x1
	cbz	w3, LBB0_13
; %bb.6:
	cbz	w2, LBB0_9
; %bb.7:
	cbz	w0, LBB0_16
; %bb.8:
	cbz	w8, LBB0_16
LBB0_9:
	ldr	w1, [x21, #8]
	cbz	w1, LBB0_11
; %bb.10:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_max
LBB0_11:
	bl	_roundup_pow_of_two
	str	x0, [x19]
	ldr	w8, [x21]
	cmp	x0, x8
	b.le	LBB0_14
; %bb.12:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_13:
	str	xzr, [x19]
	str	wzr, [x19, #8]
	b	LBB0_19
LBB0_14:
	ldr	w1, [x20, #4]
	mov	w0, #1
	bl	_max
	bl	_roundup_pow_of_two
	str	w0, [x19, #8]
	ldr	w9, [x21, #4]
	ldr	w8, [x21, #12]
	cmp	w9, #2
	b.gt	LBB0_17
; %bb.15:
	mov	x0, x8
	b	LBB0_18
LBB0_16:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_17:
	mul	w0, w8, w0
LBB0_18:
	bl	_ilog2
	str	x0, [x19, #24]
LBB0_19:
	mov	w0, #0
	ldr	x8, [x19]
	str	x8, [x19, #16]
	ldr	w9, [x19, #8]
	stp	w8, w9, [x20]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RQ WR or sge error!max_recv_wr=%d max_recv_sge=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"user space no need config max_recv_wr max_recv_sge\n"

l_.str.2:                               ; @.str.2
	.asciz	"while setting rq size, rq.wqe_cnt too large\n"

	.no_dead_strip	_hns_roce_set_rq_size
.subsections_via_symbols
