	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_hal_check_ae_alive
_qat_hal_check_ae_alive:                ## @qat_hal_check_ae_alive
	.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	(%rdi), %rax
	cmpb	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	_MAX_RETRY_TIMES@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_PROFILE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movzbl	%cl, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qat_hal_rd_ae_csr
	movl	%eax, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r13d
	movq	_PROFILE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qat_hal_rd_ae_csr
	leal	1(%r13), %ecx
	cmpl	%r13d, %r12d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%ebx, %eax
	movzwl	%ax, %eax
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	%ecx, %r12d
	leal	1(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incb	%cl
	movq	(%r14), %rax
	cmpb	(%rax), %cl
	jb	LBB0_2
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RETRY_TIMES,4,2            ## @MAX_RETRY_TIMES
	.comm	_PROFILE_COUNT,4,2              ## @PROFILE_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: AE%d is inactive!!\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_qat_hal_check_ae_alive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_hal_check_ae_alive
_qat_hal_check_ae_alive:                ; @qat_hal_check_ae_alive
	.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
	ldr	x8, [x0]
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w22, #0
Lloh0:
	adrp	x8, _MAX_RETRY_TIMES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RETRY_TIMES@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x24, _PROFILE_COUNT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PROFILE_COUNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w2, [x24]
	and	w20, w22, #0xff
	mov	x0, x19
	mov	x1, x20
	bl	_qat_hal_rd_ae_csr
	mov	x21, x0
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_qat_hal_rd_ae_csr
	subs	w23, w23, #1
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	eor	w8, w0, w21
	and	w8, w8, #0xffff
	cbz	w8, LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w23, #1
	cmp	w8, #0
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cmp	w8, w22, uxtb
	b.hi	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	and	w1, w22, #0xff
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RETRY_TIMES,4,2            ; @MAX_RETRY_TIMES
	.comm	_PROFILE_COUNT,4,2              ; @PROFILE_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: AE%d is inactive!!\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_qat_hal_check_ae_alive
.subsections_via_symbols
