	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_build_rqe
_ocrdma_build_rqe:                      ## @ocrdma_build_rqe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r9d
	movq	%rdi, %rbx
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	leal	16(,%r8,4), %eax
	movl	$20, %r14d
	cmovnel	%eax, %r14d
	movq	_OCRDMA_WQE_STRIDE@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	movq	_OCRDMA_WQE_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, (%rdi)
	movq	_OCRDMA_FLAG_SIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_OCRDMA_WQE_FLAGS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%rdi)
	movq	_OCRDMA_TYPE_LKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OCRDMA_WQE_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	movl	%eax, (%rdi)
	movq	$0, 8(%rdi)
	movl	%r9d, 4(%rdi)
	leaq	16(%rdi), %rax
	movl	4(%rsi), %ecx
	movq	%rax, %rsi
	movl	%r8d, %edx
	callq	_ocrdma_build_sges
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ocrdma_cpu_to_le32             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_WQE_STRIDE,4,2          ## @OCRDMA_WQE_STRIDE
	.comm	_OCRDMA_WQE_SIZE_SHIFT,4,2      ## @OCRDMA_WQE_SIZE_SHIFT
	.comm	_OCRDMA_FLAG_SIG,4,2            ## @OCRDMA_FLAG_SIG
	.comm	_OCRDMA_WQE_FLAGS_SHIFT,4,2     ## @OCRDMA_WQE_FLAGS_SHIFT
	.comm	_OCRDMA_TYPE_LKEY,4,2           ## @OCRDMA_TYPE_LKEY
	.comm	_OCRDMA_WQE_TYPE_SHIFT,4,2      ## @OCRDMA_WQE_TYPE_SHIFT
	.no_dead_strip	_ocrdma_build_rqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_build_rqe
_ocrdma_build_rqe:                      ; @ocrdma_build_rqe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w8, w3, [x1]
	lsl	w9, w8, #2
	add	w9, w9, #16
	mov	w10, #20
	cmp	w8, #0
	csel	w20, w10, w9, eq
Lloh0:
	adrp	x9, _OCRDMA_WQE_STRIDE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCRDMA_WQE_STRIDE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w9, w20, w9
Lloh3:
	adrp	x10, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh6:
	adrp	x10, _OCRDMA_FLAG_SIG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OCRDMA_FLAG_SIG@GOTPAGEOFF]
	str	w9, [x0]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _OCRDMA_WQE_FLAGS_SHIFT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _OCRDMA_WQE_FLAGS_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w9, w10, w9
	str	w9, [x0]
Lloh12:
	adrp	x10, _OCRDMA_TYPE_LKEY@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OCRDMA_TYPE_LKEY@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _OCRDMA_WQE_TYPE_SHIFT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _OCRDMA_WQE_TYPE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w9, w10, w9
	stp	w9, w2, [x0]
	str	xzr, [x0, #8]
	add	x1, x0, #16
	mov	x2, x8
	bl	_ocrdma_build_sges
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ocrdma_cpu_to_le32
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_WQE_STRIDE,4,2          ; @OCRDMA_WQE_STRIDE
	.comm	_OCRDMA_WQE_SIZE_SHIFT,4,2      ; @OCRDMA_WQE_SIZE_SHIFT
	.comm	_OCRDMA_FLAG_SIG,4,2            ; @OCRDMA_FLAG_SIG
	.comm	_OCRDMA_WQE_FLAGS_SHIFT,4,2     ; @OCRDMA_WQE_FLAGS_SHIFT
	.comm	_OCRDMA_TYPE_LKEY,4,2           ; @OCRDMA_TYPE_LKEY
	.comm	_OCRDMA_WQE_TYPE_SHIFT,4,2      ; @OCRDMA_WQE_TYPE_SHIFT
	.no_dead_strip	_ocrdma_build_rqe
.subsections_via_symbols
