	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_hal_set_ae_nn_mode         ## -- Begin function qat_hal_set_ae_nn_mode
	.p2align	4, 0x90
_qat_hal_set_ae_nn_mode:                ## @qat_hal_set_ae_nn_mode
	.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, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_CTX_ENABLES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_qat_hal_rd_ae_csr
	movl	%eax, %ebx
	movq	_IGNORE_W1C_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_CE_NN_MODE_BITPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	callq	_SET_BIT
	cmpl	%ebx, %eax
	je	LBB0_5
LBB0_4:
	movl	(%r13), %edx
	movzbl	%r15b, %esi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_qat_hal_wr_ae_csr
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	_CLR_BIT
	cmpl	%ebx, %eax
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_ENABLES,4,2                ## @CTX_ENABLES
	.comm	_IGNORE_W1C_MASK,4,2            ## @IGNORE_W1C_MASK
	.comm	_CE_NN_MODE_BITPOS,4,2          ## @CE_NN_MODE_BITPOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_hal_set_ae_nn_mode         ; -- Begin function qat_hal_set_ae_nn_mode
	.p2align	2
_qat_hal_set_ae_nn_mode:                ; @qat_hal_set_ae_nn_mode
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _CTX_ENABLES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CTX_ENABLES@GOTPAGEOFF]
	ldr	w2, [x23]
	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	w21, w8, w0
Lloh5:
	adrp	x8, _CE_NN_MODE_BITPOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CE_NN_MODE_BITPOS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	cbz	w22, LBB0_2
; %bb.1:
	bl	_SET_BIT
	b	LBB0_3
LBB0_2:
	bl	_CLR_BIT
LBB0_3:
	mov	x3, x0
	cmp	w0, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_qat_hal_wr_ae_csr
LBB0_5:
	mov	w0, #0
	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 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_NN_MODE_BITPOS,4,2          ; @CE_NN_MODE_BITPOS
.subsections_via_symbols
