	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_hal_enable_ctx
_qat_hal_enable_ctx:                    ## @qat_hal_enable_ctx
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_CTX_ENABLES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_qat_hal_rd_ae_csr
	movq	_IGNORE_W1C_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CE_INUSE_CONTEXTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$255, %ecx
	movl	$85, %ebx
	cmovel	%ecx, %ebx
	andl	%r15d, %ebx
	movq	_CE_ENABLE_BITPOS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qat_hal_wr_ae_csr              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_ENABLES,4,2                ## @CTX_ENABLES
	.comm	_IGNORE_W1C_MASK,4,2            ## @IGNORE_W1C_MASK
	.comm	_CE_INUSE_CONTEXTS,4,2          ## @CE_INUSE_CONTEXTS
	.comm	_CE_ENABLE_BITPOS,4,2           ## @CE_ENABLE_BITPOS
	.no_dead_strip	_qat_hal_enable_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_hal_enable_ctx
_qat_hal_enable_ctx:                    ; @qat_hal_enable_ctx
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _CTX_ENABLES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CTX_ENABLES@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_qat_hal_rd_ae_csr
Lloh2:
	adrp	x8, _IGNORE_W1C_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IGNORE_W1C_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh5:
	adrp	x9, _CE_INUSE_CONTEXTS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CE_INUSE_CONTEXTS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w8, w9
	mov	w9, #85
	mov	w10, #255
	csel	w9, w10, w9, eq
	and	w9, w9, w19
Lloh8:
	adrp	x10, _CE_ENABLE_BITPOS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CE_ENABLE_BITPOS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w3, w9, w8
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	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
	b	_qat_hal_wr_ae_csr
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTX_ENABLES,4,2                ; @CTX_ENABLES
	.comm	_IGNORE_W1C_MASK,4,2            ; @IGNORE_W1C_MASK
	.comm	_CE_INUSE_CONTEXTS,4,2          ; @CE_INUSE_CONTEXTS
	.comm	_CE_ENABLE_BITPOS,4,2           ; @CE_ENABLE_BITPOS
	.no_dead_strip	_qat_hal_enable_ctx
.subsections_via_symbols
