	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_build_read
_ocrdma_build_read:                     ## @ocrdma_build_read
	.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, %r14
	movq	%rsi, %r15
	addq	$24, %rsi
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movl	%edx, %ebx
	shll	$4, %ebx
	addl	$24, %ebx
	movq	%r15, %rdi
	callq	_ocrdma_build_sges
	movq	_OCRDMA_WQE_STRIDE@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movq	_OCRDMA_WQE_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	(%r15), %eax
	movl	%eax, (%r15)
	movq	_OCRDMA_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_OCRDMA_WQE_OPCODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%r15)
	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, (%r15)
	movq	%r14, %rdi
	callq	_rdma_wr
	movl	4(%rax), %eax
	movl	%eax, 20(%r15)
	movq	%r14, %rdi
	callq	_rdma_wr
	movl	4(%rax), %edi
	callq	_upper_32_bits
	movl	%eax, 16(%r15)
	movq	%r14, %rdi
	callq	_rdma_wr
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	4(%r15), %eax
	movl	%eax, 8(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_READ,4,2                ## @OCRDMA_READ
	.comm	_OCRDMA_WQE_OPCODE_SHIFT,4,2    ## @OCRDMA_WQE_OPCODE_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_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_build_read
_ocrdma_build_read:                     ; @ocrdma_build_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x1
	add	x1, x1, #24
	ldr	w2, [x2, #4]
	ldr	w3, [x20]
	lsl	w8, w2, #4
	add	w21, w8, #24
	mov	x0, x19
	bl	_ocrdma_build_sges
Lloh0:
	adrp	x8, _OCRDMA_WQE_STRIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_WQE_STRIDE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGEOFF]
	sdiv	w8, w21, w8
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh6:
	adrp	x9, _OCRDMA_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCRDMA_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19]
Lloh12:
	adrp	x9, _OCRDMA_TYPE_LKEY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OCRDMA_TYPE_LKEY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _OCRDMA_WQE_TYPE_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _OCRDMA_WQE_TYPE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	bl	_rdma_wr
	ldr	w8, [x0, #4]
	str	w8, [x19, #20]
	mov	x0, x20
	bl	_rdma_wr
	ldr	w0, [x0, #4]
	bl	_upper_32_bits
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_rdma_wr
	ldr	w8, [x0]
	ldr	w9, [x19, #4]
	stp	w9, w8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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_READ,4,2                ; @OCRDMA_READ
	.comm	_OCRDMA_WQE_OPCODE_SHIFT,4,2    ; @OCRDMA_WQE_OPCODE_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_read
.subsections_via_symbols
