	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_post_send               ## -- Begin function ocrdma_post_send
	.p2align	4, 0x90
_ocrdma_post_send:                      ## @ocrdma_post_send
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_get_ocrdma_qp
	movq	%rax, %r12
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	movq	_OCRDMA_QPS_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_OCRDMA_QPS_SQD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_43
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_38
## %bb.4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	addq	$24, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %eax
	movl	$-129, %ecx
	addl	%ecx, %eax
	cmpl	$2, %eax
	jae	LBB0_40
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_ocrdma_hwq_free_cnt
	testq	%rax, %rax
	je	LBB0_39
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jg	LBB0_39
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_ocrdma_hwq_head
	movq	%rax, %r14
	movl	$0, (%rax)
	movl	16(%rbx), %eax
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 48(%r12)
	je	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_FLAG_SIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_OCRDMA_WQE_FLAGS_SHIFT@GOTPCREL(%rip), %rdi
	movzbl	(%rdi), %ecx
	shll	%cl, %esi
	movl	%esi, (%r14)
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_IB_SEND_FENCE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_FLAG_FENCE_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	(%rdi), %ecx
	shll	%cl, %edx
	orl	%edx, %esi
	movl	%esi, (%r14)
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_FLAG_SOLICIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	(%rdi), %ecx
	shll	%cl, %eax
	orl	%eax, %esi
	movl	%esi, (%r14)
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, 16(%r14)
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_FLAG_INV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	(%rdi), %ecx
	shll	%cl, %eax
	orl	%eax, %esi
	movl	%esi, (%r14)
	movq	_OCRDMA_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OCRDMA_WQE_OPCODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %eax
	orl	%esi, %eax
	movl	%eax, (%r14)
	movl	36(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ocrdma_build_send
	jmp	LBB0_26
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	movq	_OCRDMA_WQE_FLAGS_SHIFT@GOTPCREL(%rip), %rdi
	jmp	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_27
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_FLAG_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	(%rdi), %ecx
	shll	%cl, %eax
	orl	%eax, %esi
	movl	%esi, (%r14)
	movl	40(%rbx), %edi
	callq	_ntohl
	movq	%rax, 8(%r14)
	movl	(%r14), %esi
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OCRDMA_WQE_OPCODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %eax
	orl	%esi, %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ocrdma_build_send
	jmp	LBB0_28
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_reg_wr
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ocrdma_build_reg
	jmp	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_FLAG_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	(%rdi), %ecx
	shll	%cl, %eax
	orl	%eax, %esi
	movl	%esi, (%r14)
	movl	40(%rbx), %edi
	callq	_ntohl
	movq	%rax, 8(%r14)
	movl	(%r14), %esi
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OCRDMA_WQE_OPCODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %eax
	orl	%esi, %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ocrdma_build_write
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r15d
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_41
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 48(%r12)
	je	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movl	$1, (%rcx,%rax,8)
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	32(%rbx), %edx
	movl	%edx, 4(%rcx,%rax,8)
	movl	(%r14), %esi
	movq	_OCRDMA_WQE_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %esi
	movq	_OCRDMA_WQE_SIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_OCRDMA_WQE_STRIDE@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movq	%r14, %rdi
	callq	_ocrdma_cpu_to_le32
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wmb
	movq	%r12, %rdi
	callq	_ocrdma_ring_sq_db
	movq	%r13, %rdi
	callq	_ocrdma_hwq_inc_head
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_42
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movl	$0, (%rcx,%rax,8)
	jmp	LBB0_31
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ocrdma_build_read
	jmp	LBB0_28
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_LKEY_INV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OCRDMA_WQE_OPCODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %eax
	orl	%eax, %esi
	movl	%esi, (%r14)
	movq	_OCRDMA_WQE_STRIDE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	cmpq	$28, %rcx
	ja	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$28, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_37
LBB0_36:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
LBB0_37:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_OCRDMA_WQE_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shlq	%cl, %rax
	orl	%eax, %esi
	movl	%esi, (%r14)
	movl	36(%rbx), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_28
LBB0_38:
	xorl	%r15d, %r15d
	jmp	LBB0_42
LBB0_39:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_42
LBB0_40:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%r15d, %r15d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_42
LBB0_41:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
LBB0_42:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_43:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_33
	.long	L0_0_set_34
	.end_data_region
                                        ## -- End function
	.comm	_OCRDMA_QPS_RTS,8,3             ## @OCRDMA_QPS_RTS
	.comm	_OCRDMA_QPS_SQD,8,3             ## @OCRDMA_QPS_SQD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_QPT_UD,8,3                  ## @IB_QPT_UD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_SEND_SIGNALED,4,2           ## @IB_SEND_SIGNALED
	.comm	_OCRDMA_FLAG_SIG,4,2            ## @OCRDMA_FLAG_SIG
	.comm	_OCRDMA_WQE_FLAGS_SHIFT,4,2     ## @OCRDMA_WQE_FLAGS_SHIFT
	.comm	_IB_SEND_FENCE,4,2              ## @IB_SEND_FENCE
	.comm	_OCRDMA_FLAG_FENCE_L,4,2        ## @OCRDMA_FLAG_FENCE_L
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.comm	_OCRDMA_FLAG_SOLICIT,4,2        ## @OCRDMA_FLAG_SOLICIT
	.comm	_OCRDMA_FLAG_IMM,4,2            ## @OCRDMA_FLAG_IMM
	.comm	_OCRDMA_SEND,4,2                ## @OCRDMA_SEND
	.comm	_OCRDMA_WQE_OPCODE_SHIFT,4,2    ## @OCRDMA_WQE_OPCODE_SHIFT
	.comm	_OCRDMA_FLAG_INV,4,2            ## @OCRDMA_FLAG_INV
	.comm	_OCRDMA_WRITE,4,2               ## @OCRDMA_WRITE
	.comm	_OCRDMA_LKEY_INV,4,2            ## @OCRDMA_LKEY_INV
	.comm	_OCRDMA_WQE_STRIDE,4,2          ## @OCRDMA_WQE_STRIDE
	.comm	_OCRDMA_WQE_SIZE_SHIFT,4,2      ## @OCRDMA_WQE_SIZE_SHIFT
	.comm	_OCRDMA_WQE_SIZE_MASK,4,2       ## @OCRDMA_WQE_SIZE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_post_send               ; -- Begin function ocrdma_post_send
	.p2align	2
_ocrdma_post_send:                      ; @ocrdma_post_send
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	bl	_get_ocrdma_qp
	mov	x22, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _OCRDMA_QPS_RTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCRDMA_QPS_RTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _OCRDMA_QPS_SQD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OCRDMA_QPS_SQD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_32
; %bb.1:
	cbz	x21, LBB0_33
; %bb.2:
	add	x23, x22, #24
Lloh6:
	adrp	x27, _IB_SEND_SIGNALED@GOTPAGE
Lloh7:
	ldr	x27, [x27, _IB_SEND_SIGNALED@GOTPAGEOFF]
Lloh8:
	adrp	x26, _OCRDMA_WQE_STRIDE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _OCRDMA_WQE_STRIDE@GOTPAGEOFF]
Lloh10:
	adrp	x28, _OCRDMA_WQE_FLAGS_SHIFT@GOTPAGE
Lloh11:
	ldr	x28, [x28, _OCRDMA_WQE_FLAGS_SHIFT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
Lloh12:
	adrp	x9, _IB_QPT_UD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_QPT_UD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hs	LBB0_35
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ocrdma_hwq_free_cnt
	cbz	x0, LBB0_34
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.gt	LBB0_34
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ocrdma_hwq_head
	mov	x24, x0
	str	wzr, [x0]
	ldr	w9, [x21, #16]
	ldr	w8, [x27]
	tst	w8, w9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _OCRDMA_FLAG_SIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OCRDMA_FLAG_SIG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w10, [x28]
	lsl	w8, w8, w10
	str	w8, [x24]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x10, _IB_SEND_FENCE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IB_SEND_FENCE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x10, _OCRDMA_FLAG_FENCE_L@GOTPAGE
Lloh22:
	ldr	x10, [x10, _OCRDMA_FLAG_FENCE_L@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	ldr	w11, [x28]
	lsl	w10, w10, w11
	orr	w8, w8, w10
	str	w8, [x24]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh24:
	adrp	x10, _IB_SEND_SOLICITED@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh27:
	adrp	x9, _OCRDMA_FLAG_SOLICIT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _OCRDMA_FLAG_SOLICIT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldr	w10, [x28]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x24]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x24, #16]
	ldr	w9, [x21]
	sub	w9, w9, #128
	cmp	w9, #7
	b.hi	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh30:
	adrp	x12, lJTI0_0@PAGE
Lloh31:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x12, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh32:
	adrp	x9, _OCRDMA_FLAG_INV@GOTPAGE
Lloh33:
	ldr	x9, [x9, _OCRDMA_FLAG_INV@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [x28]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [x21, #36]
	str	w8, [x24]
Lloh35:
	adrp	x10, _OCRDMA_SEND@GOTPAGE
Lloh36:
	ldr	x10, [x10, _OCRDMA_SEND@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
Lloh38:
	adrp	x11, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w8, w10, w8
	stp	w8, w9, [x24]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_ocrdma_build_send
	b	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_24
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh44:
	adrp	x9, _OCRDMA_FLAG_IMM@GOTPAGE
Lloh45:
	ldr	x9, [x9, _OCRDMA_FLAG_IMM@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	ldr	w10, [x28]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x24]
	ldr	w0, [x21, #40]
	bl	_ntohl
	str	x0, [x24, #8]
	ldr	w8, [x24]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh47:
	adrp	x9, _OCRDMA_SEND@GOTPAGE
Lloh48:
	ldr	x9, [x9, _OCRDMA_SEND@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
Lloh50:
	adrp	x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGE
Lloh51:
	ldr	x10, [x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x24]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_ocrdma_build_send
	b	LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_reg_wr
	mov	x2, x0
	mov	x0, x22
	mov	x1, x24
	bl	_ocrdma_build_reg
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh53:
	adrp	x9, _OCRDMA_FLAG_IMM@GOTPAGE
Lloh54:
	ldr	x9, [x9, _OCRDMA_FLAG_IMM@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	ldr	w10, [x28]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x24]
	ldr	w0, [x21, #40]
	bl	_ntohl
	str	x0, [x24, #8]
	ldr	w8, [x24]
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh56:
	adrp	x9, _OCRDMA_WRITE@GOTPAGE
Lloh57:
	ldr	x9, [x9, _OCRDMA_WRITE@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
Lloh59:
	adrp	x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGE
Lloh60:
	ldr	x10, [x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x24]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_ocrdma_build_write
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w25, LBB0_39
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #16]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x22, #32]
	lsl	x10, x9, #3
	mov	w11, #1
	str	w11, [x8, x10]
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x21, #32]
	add	x8, x8, x9, lsl #3
	str	w10, [x8, #4]
	ldr	w8, [x24]
Lloh62:
	adrp	x9, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGE
Lloh63:
	ldr	x9, [x9, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh65:
	adrp	x9, _OCRDMA_WQE_SIZE_MASK@GOTPAGE
Lloh66:
	ldr	x9, [x9, _OCRDMA_WQE_SIZE_MASK@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	and	w8, w8, w9
	ldr	w9, [x26]
	mul	w1, w8, w9
	mov	x0, x24
	bl	_ocrdma_cpu_to_le32
	bl	_wmb
	mov	x0, x22
	bl	_ocrdma_ring_sq_db
	mov	x0, x23
	bl	_ocrdma_hwq_inc_head
	ldr	x21, [x21, #24]
	cbnz	x21, LBB0_3
	b	LBB0_33
LBB0_29:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x22, #32]
	lsl	x10, x9, #3
	str	wzr, [x8, x10]
	b	LBB0_28
LBB0_30:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_ocrdma_build_read
	b	LBB0_25
LBB0_31:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh68:
	adrp	x9, _OCRDMA_LKEY_INV@GOTPAGE
Lloh69:
	ldr	x9, [x9, _OCRDMA_LKEY_INV@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
Lloh71:
	adrp	x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGE
Lloh72:
	ldr	x10, [x10, _OCRDMA_WQE_OPCODE_SHIFT@GOTPAGEOFF]
Lloh73:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [x21, #36]
	str	w8, [x24]
	ldrsw	x10, [x26]
	mov	w11, #28
	udiv	x10, x11, x10
Lloh74:
	adrp	x11, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGE
Lloh75:
	ldr	x11, [x11, _OCRDMA_WQE_SIZE_SHIFT@GOTPAGEOFF]
Lloh76:
	ldr	w11, [x11]
	lsl	x10, x10, x11
	orr	w8, w8, w10
	stp	w8, w9, [x24]
	b	LBB0_25
LBB0_32:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	str	x21, [x20]
Lloh77:
	adrp	x8, _EINVAL@GOTPAGE
Lloh78:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_38
LBB0_33:
	mov	w25, #0
	b	LBB0_37
LBB0_34:
	str	x21, [x20]
Lloh80:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh81:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_36
LBB0_35:
	str	x21, [x20]
Lloh82:
	adrp	x8, _EINVAL@GOTPAGE
Lloh83:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_36:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_37:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_38:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_39:
	str	x21, [x20]
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_18-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_20-LBB0_16)>>2
	.byte	(LBB0_21-LBB0_16)>>2
	.byte	(LBB0_22-LBB0_16)>>2
	.byte	(LBB0_30-LBB0_16)>>2
	.byte	(LBB0_31-LBB0_16)>>2
                                        ; -- End function
	.comm	_OCRDMA_QPS_RTS,8,3             ; @OCRDMA_QPS_RTS
	.comm	_OCRDMA_QPS_SQD,8,3             ; @OCRDMA_QPS_SQD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_QPT_UD,8,3                  ; @IB_QPT_UD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_SEND_SIGNALED,4,2           ; @IB_SEND_SIGNALED
	.comm	_OCRDMA_FLAG_SIG,4,2            ; @OCRDMA_FLAG_SIG
	.comm	_OCRDMA_WQE_FLAGS_SHIFT,4,2     ; @OCRDMA_WQE_FLAGS_SHIFT
	.comm	_IB_SEND_FENCE,4,2              ; @IB_SEND_FENCE
	.comm	_OCRDMA_FLAG_FENCE_L,4,2        ; @OCRDMA_FLAG_FENCE_L
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.comm	_OCRDMA_FLAG_SOLICIT,4,2        ; @OCRDMA_FLAG_SOLICIT
	.comm	_OCRDMA_FLAG_IMM,4,2            ; @OCRDMA_FLAG_IMM
	.comm	_OCRDMA_SEND,4,2                ; @OCRDMA_SEND
	.comm	_OCRDMA_WQE_OPCODE_SHIFT,4,2    ; @OCRDMA_WQE_OPCODE_SHIFT
	.comm	_OCRDMA_FLAG_INV,4,2            ; @OCRDMA_FLAG_INV
	.comm	_OCRDMA_WRITE,4,2               ; @OCRDMA_WRITE
	.comm	_OCRDMA_LKEY_INV,4,2            ; @OCRDMA_LKEY_INV
	.comm	_OCRDMA_WQE_STRIDE,4,2          ; @OCRDMA_WQE_STRIDE
	.comm	_OCRDMA_WQE_SIZE_SHIFT,4,2      ; @OCRDMA_WQE_SIZE_SHIFT
	.comm	_OCRDMA_WQE_SIZE_MASK,4,2       ; @OCRDMA_WQE_SIZE_MASK
.subsections_via_symbols
