	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_get_kmem_bufs         ## -- Begin function hns_roce_get_kmem_bufs
	.p2align	4, 0x90
_hns_roce_get_kmem_bufs:                ## @hns_roce_get_kmem_bufs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %eax
	leal	(%rcx,%rax), %r10d
	movl	(%r8), %r9d
	cmpl	%r9d, %r10d
	jle	LBB0_2
## %bb.1:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	%r9d, %r8d
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_2:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	movslq	%ecx, %rdx
	movslq	%r10d, %r10
	movl	%edx, %r9d
	xorl	%eax, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r8), %rcx
	movl	(%rcx,%rdx,4), %edi
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%edi, (%rsi,%rax,4)
	incq	%rax
	incq	%rdx
	cmpq	%r10, %rdx
	jge	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, 4(%r8)
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	8(%r8), %ecx
	leal	(%r9,%rax), %edi
	shll	%cl, %edi
	addl	24(%r8), %edi
	jmp	LBB0_5
LBB0_9:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid kmem region,offset %d,buf_cnt %d,total %d!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_get_kmem_bufs         ; -- Begin function hns_roce_get_kmem_bufs
	.p2align	2
_hns_roce_get_kmem_bufs:                ; @hns_roce_get_kmem_bufs
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x8, x2
	ldr	w9, [x4]
	add	w10, w3, w2
	cmp	w10, w9
	b.le	LBB0_3
; %bb.1:
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	mov	x3, x8
	mov	x4, x9
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x0, #0
	sxtw	x8, w3
	sxtw	x9, w10
	mov	w10, w3
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x4, #16]
	ldr	w11, [x11, x8, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w11, [x1, x0, lsl #2]
	add	x0, x0, #1
	add	x8, x8, #1
	cmp	x8, x9
	b.ge	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x4, #4]
	cmp	w11, #1
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w11, [x4, #24]
	ldr	w12, [x4, #8]
	add	w13, w10, w0
	lsl	w12, w13, w12
	add	w11, w12, w11
	b	LBB0_6
LBB0_9:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid kmem region,offset %d,buf_cnt %d,total %d!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
