	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_cq_read_wc_flags
_mlx5_cq_read_wc_flags:                 ## @mlx5_cq_read_wc_flags
	.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
	callq	_ibv_cq_ex_to_cq
	movl	%eax, %edi
	callq	_to_mcq
	movq	%rax, %r14
	movq	_MLX5_CQ_FLAGS_RX_CSUM_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rdi
	movl	(%rdi), %eax
	movq	_MLX5_CQE_L4_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%cl
	movq	_MLX5_CQE_L3_OK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	setne	%bl
	andb	%cl, %bl
	callq	_get_cqe_l3_hdr_type
	movq	_MLX5_CQE_L3_HDR_TYPE_IPV4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	andb	%bl, %al
	movzbl	%al, %ebx
	movq	_IBV_WC_IP_CSUM_OK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	8(%r14), %rdi
	callq	_mlx5dv_get_cqe_opcode
	cmpl	$130, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_9
LBB0_6:
	movq	_IBV_WC_WITH_IMM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_IBV_WC_WITH_INV@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
LBB0_9:
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_be32toh
	andl	$805306368, %eax                ## imm = 0x30000000
	je	LBB0_11
## %bb.10:
	movq	_IBV_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_CQ_FLAGS_RX_CSUM_VALID,4,2 ## @MLX5_CQ_FLAGS_RX_CSUM_VALID
	.comm	_MLX5_CQE_L4_OK,4,2             ## @MLX5_CQE_L4_OK
	.comm	_MLX5_CQE_L3_OK,4,2             ## @MLX5_CQE_L3_OK
	.comm	_MLX5_CQE_L3_HDR_TYPE_IPV4,8,3  ## @MLX5_CQE_L3_HDR_TYPE_IPV4
	.comm	_IBV_WC_IP_CSUM_OK_SHIFT,4,2    ## @IBV_WC_IP_CSUM_OK_SHIFT
	.comm	_IBV_WC_WITH_IMM,4,2            ## @IBV_WC_WITH_IMM
	.comm	_IBV_WC_WITH_INV,4,2            ## @IBV_WC_WITH_INV
	.comm	_IBV_WC_GRH,4,2                 ## @IBV_WC_GRH
	.no_dead_strip	_mlx5_cq_read_wc_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_cq_read_wc_flags
_mlx5_cq_read_wc_flags:                 ; @mlx5_cq_read_wc_flags
	.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
	bl	_ibv_cq_ex_to_cq
	bl	_to_mcq
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MLX5_CQ_FLAGS_RX_CSUM_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_CQ_FLAGS_RX_CSUM_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _MLX5_CQE_L4_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_CQE_L4_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh6:
	adrp	x10, _MLX5_CQE_L3_OK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX5_CQE_L3_OK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	and	w20, w9, w8
	bl	_get_cqe_l3_hdr_type
Lloh9:
	adrp	x8, _MLX5_CQE_L3_HDR_TYPE_IPV4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_CQE_L3_HDR_TYPE_IPV4@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, eq
	and	w8, w20, w8
Lloh12:
	adrp	x9, _IBV_WC_IP_CSUM_OK_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IBV_WC_IP_CSUM_OK_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w20, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_mlx5dv_get_cqe_opcode
	cmp	w0, #130
	b.eq	LBB0_6
; %bb.4:
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #128
	b.ne	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _IBV_WC_WITH_IMM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IBV_WC_WITH_IMM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _IBV_WC_WITH_INV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IBV_WC_WITH_INV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_be32toh
Lloh19:
	adrp	x8, _IBV_WC_GRH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IBV_WC_GRH@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w0, #0x30000000
	csel	w8, wzr, w8, eq
	orr	w0, w8, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_CQ_FLAGS_RX_CSUM_VALID,4,2 ; @MLX5_CQ_FLAGS_RX_CSUM_VALID
	.comm	_MLX5_CQE_L4_OK,4,2             ; @MLX5_CQE_L4_OK
	.comm	_MLX5_CQE_L3_OK,4,2             ; @MLX5_CQE_L3_OK
	.comm	_MLX5_CQE_L3_HDR_TYPE_IPV4,8,3  ; @MLX5_CQE_L3_HDR_TYPE_IPV4
	.comm	_IBV_WC_IP_CSUM_OK_SHIFT,4,2    ; @IBV_WC_IP_CSUM_OK_SHIFT
	.comm	_IBV_WC_WITH_IMM,4,2            ; @IBV_WC_WITH_IMM
	.comm	_IBV_WC_WITH_INV,4,2            ; @IBV_WC_WITH_INV
	.comm	_IBV_WC_GRH,4,2                 ; @IBV_WC_GRH
	.no_dead_strip	_mlx5_cq_read_wc_flags
.subsections_via_symbols
