	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_wqe_buf_region
_split_wqe_buf_region:                  ## @split_wqe_buf_region
	.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	%ecx, %r13d
	movl	$1, %r14d
	movl	%r8d, %ecx
	shll	%cl, %r14d
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	jle	LBB0_12
## %bb.2:
	movq	%rdi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r15
	leaq	4(%rbx), %rax
	leaq	16(%rbx), %rcx
	testq	%r15, %r15
	cmovgq	%rcx, %rax
	movl	(%rax), %edi
	subl	24(%rbx), %edi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	movl	%r14d, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ecx
	movl	8(%r12), %esi
	movl	24(%rbx), %eax
	cltd
	idivl	%r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_hns_roce_init_buf_region
	movl	$1, %r12d
	testq	%r15, %r15
	jg	LBB0_6
	jmp	LBB0_9
LBB0_3:
	xorl	%r12d, %r12d
	testq	%r15, %r15
	jle	LBB0_9
LBB0_6:
	movl	4(%rbx), %edi
	subl	16(%rbx), %edi
	jle	LBB0_9
## %bb.7:
	movl	$1, %r15d
	cmpl	%r13d, %r12d
	jae	LBB0_10
## %bb.8:
	movl	%r14d, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ecx
	movl	%r12d, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	16(%rbx), %eax
	cltd
	idivl	%r14d
	movl	%eax, %edx
	callq	_hns_roce_init_buf_region
	incl	%r12d
LBB0_9:
	movl	%r12d, %r15d
LBB0_10:
	movl	(%rbx), %edi
	subl	4(%rbx), %edi
	jle	LBB0_12
## %bb.11:
	movl	%r14d, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ecx
	movl	%r15d, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	4(%rbx), %eax
	cltd
	idivl	%r14d
	movl	%eax, %edx
	callq	_hns_roce_init_buf_region
	incl	%r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_split_wqe_buf_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_wqe_buf_region
_split_wqe_buf_region:                  ; @split_wqe_buf_region
	.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	w23, #0
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x24, x3
	mov	x20, x2
	mov	x21, x0
	mov	w8, #1
	lsl	w22, w8, w4
	ldr	x25, [x19, #8]
	mov	w8, #4
	mov	w9, #16
	cmp	x25, #0
	csel	x8, x9, x8, gt
	ldr	w8, [x19, x8]
	ldr	w9, [x19, #24]
	sub	w0, w8, w9
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x1, x22
	bl	_DIV_ROUND_UP
	mov	x3, x0
	ldr	w1, [x21, #8]
	ldr	w8, [x19, #24]
	sdiv	w2, w8, w22
	mov	x0, x20
	bl	_hns_roce_init_buf_region
	mov	w23, #1
	cmp	x25, #1
	b.ge	LBB0_5
	b	LBB0_9
LBB0_4:
	mov	w23, #0
	cmp	x25, #1
	b.lt	LBB0_9
LBB0_5:
	ldr	w8, [x19, #4]
	ldr	w9, [x19, #16]
	sub	w0, w8, w9
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	cmp	w23, w24
	b.hs	LBB0_8
; %bb.7:
	mov	x1, x22
	bl	_DIV_ROUND_UP
	mov	x3, x0
	add	x0, x20, w23, uxtw #2
	ldr	w1, [x21, #4]
	ldr	w8, [x19, #16]
	sdiv	w2, w8, w22
	bl	_hns_roce_init_buf_region
	add	w23, w23, #1
	b	LBB0_9
LBB0_8:
	mov	w23, #1
LBB0_9:
	ldp	w8, w9, [x19]
	sub	w0, w8, w9
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
	mov	x1, x22
	bl	_DIV_ROUND_UP
	mov	x3, x0
	add	x0, x20, w23, uxtw #2
	ldr	w1, [x21]
	ldr	w8, [x19, #4]
	sdiv	w2, w8, w22
	bl	_hns_roce_init_buf_region
	add	w23, w23, #1
LBB0_11:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_split_wqe_buf_region
.subsections_via_symbols
