	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_update_ud_rcqe
_ocrdma_update_ud_rcqe:                 ## @ocrdma_update_ud_rcqe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rdx), %edi
	callq	_le32_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_OCRDMA_CQE_UD_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_OCRDMA_CQE_UD_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%r13), %edi
	callq	_le32_to_cpu
	movq	_OCRDMA_CQE_SRCQP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	$0, 16(%rbx)
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movq	_OCRDMA_CQE_UD_XFER_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_OCRDMA_CQE_UD_XFER_LEN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	callq	_ocrdma_is_udp_encap_supported
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movq	_OCRDMA_CQE_UD_L3TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_OCRDMA_CQE_UD_L3TYPE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IB_WC_WITH_NETWORK_HDR_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 12(%rbx)
	movl	%eax, 8(%rbx)
LBB0_2:
	andl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r12d, %ecx
	sarl	%cl, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_CQE_UD_STATUS_MASK,4,2  ## @OCRDMA_CQE_UD_STATUS_MASK
	.comm	_OCRDMA_CQE_UD_STATUS_SHIFT,4,2 ## @OCRDMA_CQE_UD_STATUS_SHIFT
	.comm	_OCRDMA_CQE_SRCQP_MASK,4,2      ## @OCRDMA_CQE_SRCQP_MASK
	.comm	_IB_WC_GRH,4,2                  ## @IB_WC_GRH
	.comm	_OCRDMA_CQE_UD_XFER_LEN_SHIFT,4,2 ## @OCRDMA_CQE_UD_XFER_LEN_SHIFT
	.comm	_OCRDMA_CQE_UD_XFER_LEN_MASK,4,2 ## @OCRDMA_CQE_UD_XFER_LEN_MASK
	.comm	_OCRDMA_CQE_UD_L3TYPE_SHIFT,4,2 ## @OCRDMA_CQE_UD_L3TYPE_SHIFT
	.comm	_OCRDMA_CQE_UD_L3TYPE_MASK,4,2  ## @OCRDMA_CQE_UD_L3TYPE_MASK
	.comm	_IB_WC_WITH_NETWORK_HDR_TYPE,4,2 ## @IB_WC_WITH_NETWORK_HDR_TYPE
	.no_dead_strip	_ocrdma_update_ud_rcqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_update_ud_rcqe
_ocrdma_update_ud_rcqe:                 ; @ocrdma_update_ud_rcqe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x2, #4]
	bl	_le32_to_cpu
	mov	x20, x0
Lloh0:
	adrp	x8, _OCRDMA_CQE_UD_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_CQE_UD_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _OCRDMA_CQE_UD_STATUS_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_CQE_UD_STATUS_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
Lloh6:
	adrp	x8, _OCRDMA_CQE_SRCQP_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCRDMA_CQE_SRCQP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x19]
	str	xzr, [x19, #16]
Lloh9:
	adrp	x8, _IB_WC_GRH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_WC_GRH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x21]
	bl	_le32_to_cpu
Lloh12:
	adrp	x8, _OCRDMA_CQE_UD_XFER_LEN_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OCRDMA_CQE_UD_XFER_LEN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh15:
	adrp	x9, _OCRDMA_CQE_UD_XFER_LEN_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OCRDMA_CQE_UD_XFER_LEN_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w8, w9
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_ocrdma_is_udp_encap_supported
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_le32_to_cpu
Lloh18:
	adrp	x8, _OCRDMA_CQE_UD_L3TYPE_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OCRDMA_CQE_UD_L3TYPE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh21:
	adrp	x9, _OCRDMA_CQE_UD_L3TYPE_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OCRDMA_CQE_UD_L3TYPE_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _IB_WC_WITH_NETWORK_HDR_TYPE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IB_WC_WITH_NETWORK_HDR_TYPE@GOTPAGEOFF]
	and	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
	ldr	w10, [x19, #12]
	orr	w9, w10, w9
	stp	w8, w9, [x19, #8]
LBB0_2:
	and	w8, w23, w20
	asr	w0, w8, w24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CQE_UD_STATUS_MASK,4,2  ; @OCRDMA_CQE_UD_STATUS_MASK
	.comm	_OCRDMA_CQE_UD_STATUS_SHIFT,4,2 ; @OCRDMA_CQE_UD_STATUS_SHIFT
	.comm	_OCRDMA_CQE_SRCQP_MASK,4,2      ; @OCRDMA_CQE_SRCQP_MASK
	.comm	_IB_WC_GRH,4,2                  ; @IB_WC_GRH
	.comm	_OCRDMA_CQE_UD_XFER_LEN_SHIFT,4,2 ; @OCRDMA_CQE_UD_XFER_LEN_SHIFT
	.comm	_OCRDMA_CQE_UD_XFER_LEN_MASK,4,2 ; @OCRDMA_CQE_UD_XFER_LEN_MASK
	.comm	_OCRDMA_CQE_UD_L3TYPE_SHIFT,4,2 ; @OCRDMA_CQE_UD_L3TYPE_SHIFT
	.comm	_OCRDMA_CQE_UD_L3TYPE_MASK,4,2  ; @OCRDMA_CQE_UD_L3TYPE_MASK
	.comm	_IB_WC_WITH_NETWORK_HDR_TYPE,4,2 ; @IB_WC_WITH_NETWORK_HDR_TYPE
	.no_dead_strip	_ocrdma_update_ud_rcqe
.subsections_via_symbols
