	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_check_cqe
_ehea_check_cqe:                        ## @ehea_check_cqe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EHEA_CQE_TYPE_RQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	sarl	$5, %eax
	movl	%eax, (%rsi)
	movl	4(%rdi), %ecx
	movq	_EHEA_CQE_STAT_ERR_MASK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.1:
	movq	_EHEA_CQE_STAT_ERR_TCP@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rdi)
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHEA_CQE_TYPE_RQ,4,2           ## @EHEA_CQE_TYPE_RQ
	.comm	_EHEA_CQE_STAT_ERR_MASK,4,2     ## @EHEA_CQE_STAT_ERR_MASK
	.comm	_EHEA_CQE_STAT_ERR_TCP,4,2      ## @EHEA_CQE_STAT_ERR_TCP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ehea_check_cqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_check_cqe
_ehea_check_cqe:                        ; @ehea_check_cqe
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _EHEA_CQE_TYPE_RQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EHEA_CQE_TYPE_RQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	asr	w8, w8, #5
	str	w8, [x1]
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _EHEA_CQE_STAT_ERR_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EHEA_CQE_STAT_ERR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _EHEA_CQE_STAT_ERR_TCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EHEA_CQE_STAT_ERR_TCP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EHEA_CQE_TYPE_RQ,4,2           ; @EHEA_CQE_TYPE_RQ
	.comm	_EHEA_CQE_STAT_ERR_MASK,4,2     ; @EHEA_CQE_STAT_ERR_MASK
	.comm	_EHEA_CQE_STAT_ERR_TCP,4,2      ; @EHEA_CQE_STAT_ERR_TCP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ehea_check_cqe
.subsections_via_symbols
