	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_sq_size_with_integrity
_check_sq_size_with_integrity:          ## @check_sq_size_with_integrity
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	callq	_roundup_pow_of_two
	movq	%rax, %rdi
	callq	_ilog2
	movb	(%rbx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edx, %rcx
	cmpq	%rcx, 8(%r15)
	jl	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	cmpq	%rax, %rcx
	jg	LBB0_3
## %bb.2:
	movq	_HNS_ROCE_IB_MIN_SQ_STRIDE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_3
## %bb.4:
	movq	(%r14), %rdx
	xorl	%ebx, %ebx
	cmpq	16(%r15), %rdx
	jle	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ibdev_err
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ibdev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_IB_MIN_SQ_STRIDE,8,3  ## @HNS_ROCE_IB_MIN_SQ_STRIDE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check SQ size error!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"SQ sge error! max_send_sge=%d\n"

	.no_dead_strip	_check_sq_size_with_integrity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_sq_size_with_integrity
_check_sq_size_with_integrity:          ; @check_sq_size_with_integrity
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_roundup_pow_of_two
	bl	_ilog2
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x19, #8]
	cmp	x9, w8, sxtw
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _HNS_ROCE_IB_MIN_SQ_STRIDE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNS_ROCE_IB_MIN_SQ_STRIDE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x8, x9, #8, le
	b.ge	LBB0_5
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_ibdev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	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:
	ldr	x8, [x20]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.6:
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_IB_MIN_SQ_STRIDE,8,3  ; @HNS_ROCE_IB_MIN_SQ_STRIDE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check SQ size error!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"SQ sge error! max_send_sge=%d\n"

	.no_dead_strip	_check_sq_size_with_integrity
.subsections_via_symbols
