	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_hal_check_ae_active        ## -- Begin function qat_hal_check_ae_active
	.p2align	4, 0x90
_qat_hal_check_ae_active:               ## @qat_hal_check_ae_active
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_CTX_ENABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qat_hal_rd_ae_csr
	movl	%eax, %ebx
	movq	_ACTIVE_CTX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_qat_hal_rd_ae_csr
	movq	_CE_ENABLE_BITPOS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %ebx
	movq	_ACS_ABO_BITPOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	btl	%ecx, %eax
	setb	%dl
	testb	%bl, %bl
	movl	$1, %eax
	cmovel	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_ENABLES,4,2                ## @CTX_ENABLES
	.comm	_ACTIVE_CTX_STATUS,4,2          ## @ACTIVE_CTX_STATUS
	.comm	_CE_ENABLE_BITPOS,4,2           ## @CE_ENABLE_BITPOS
	.comm	_ACS_ABO_BITPOS,4,2             ## @ACS_ABO_BITPOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_hal_check_ae_active        ; -- Begin function qat_hal_check_ae_active
	.p2align	2
_qat_hal_check_ae_active:               ; @qat_hal_check_ae_active
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CTX_ENABLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTX_ENABLES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_qat_hal_rd_ae_csr
	mov	x21, x0
Lloh3:
	adrp	x8, _ACTIVE_CTX_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACTIVE_CTX_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_qat_hal_rd_ae_csr
Lloh6:
	adrp	x8, _CE_ENABLE_BITPOS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CE_ENABLE_BITPOS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ACS_ABO_BITPOS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACS_ABO_BITPOS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsr	w9, w0, w9
	and	w9, w9, #0x1
	lsr	w8, w21, w8
	tst	w8, #0xff
	csinc	w0, w9, wzr, eq
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CTX_ENABLES,4,2                ; @CTX_ENABLES
	.comm	_ACTIVE_CTX_STATUS,4,2          ; @ACTIVE_CTX_STATUS
	.comm	_CE_ENABLE_BITPOS,4,2           ; @CE_ENABLE_BITPOS
	.comm	_ACS_ABO_BITPOS,4,2             ; @ACS_ABO_BITPOS
.subsections_via_symbols
