	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_hal_set_ae_lm_mode         ## -- Begin function qat_hal_set_ae_lm_mode
	.p2align	4, 0x90
_qat_hal_set_ae_lm_mode:                ## @qat_hal_set_ae_lm_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	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_CTX_ENABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qat_hal_rd_ae_csr
	movl	%eax, %r13d
	movq	_IGNORE_W1C_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_10
## %bb.2:
	movq	_CE_LMADDR_0_GLOBAL_BITPOS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_CE_LMADDR_1_GLOBAL_BITPOS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	%r13d, %edi
	testb	%r12b, %r12b
	je	LBB0_6
## %bb.4:
	callq	_SET_BIT
	jmp	LBB0_7
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	callq	_CLR_BIT
LBB0_7:
	xorl	%ebx, %ebx
	cmpl	%r13d, %eax
	je	LBB0_9
## %bb.8:
	movq	_CTX_ENABLES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	%r14b, %esi
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_qat_hal_wr_ae_csr
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_ENABLES,4,2                ## @CTX_ENABLES
	.comm	_IGNORE_W1C_MASK,4,2            ## @IGNORE_W1C_MASK
	.comm	_CE_LMADDR_0_GLOBAL_BITPOS,4,2  ## @CE_LMADDR_0_GLOBAL_BITPOS
	.comm	_CE_LMADDR_1_GLOBAL_BITPOS,4,2  ## @CE_LMADDR_1_GLOBAL_BITPOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: lmType = 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_hal_set_ae_lm_mode         ; -- Begin function qat_hal_set_ae_lm_mode
	.p2align	2
_qat_hal_set_ae_lm_mode:                ; @qat_hal_set_ae_lm_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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _CTX_ENABLES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CTX_ENABLES@GOTPAGEOFF]
	ldr	w2, [x24]
	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
	cmp	w23, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w23, #129
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _CE_LMADDR_0_GLOBAL_BITPOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CE_LMADDR_0_GLOBAL_BITPOS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _CE_LMADDR_1_GLOBAL_BITPOS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CE_LMADDR_1_GLOBAL_BITPOS@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x21
	cbz	w22, LBB0_7
; %bb.5:
	bl	_SET_BIT
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	bl	_CLR_BIT
LBB0_8:
	mov	x3, x0
	cmp	w0, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_qat_hal_wr_ae_csr
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CTX_ENABLES,4,2                ; @CTX_ENABLES
	.comm	_IGNORE_W1C_MASK,4,2            ; @IGNORE_W1C_MASK
	.comm	_CE_LMADDR_0_GLOBAL_BITPOS,4,2  ; @CE_LMADDR_0_GLOBAL_BITPOS
	.comm	_CE_LMADDR_1_GLOBAL_BITPOS,4,2  ; @CE_LMADDR_1_GLOBAL_BITPOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: lmType = 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
