	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_ahash_enqueue
_safexcel_ahash_enqueue:                ## @safexcel_ahash_enqueue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_crypto_ahash_reqtfm
	movl	%eax, %edi
	callq	_crypto_ahash_ctx
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r12
	movq	32(%rbx), %r15
	movl	$0, (%rax)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	_EIP197_TRC_CACHE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_11
## %bb.2:
	cmpl	$0, (%rbx)
	jne	LBB0_11
## %bb.3:
	cmpq	$0, 8(%r12)
	je	LBB0_11
## %bb.4:
	cmpq	$0, 40(%r12)
	je	LBB0_6
## %bb.5:
	movq	16(%r12), %rcx
	movq	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
LBB0_6:
	movq	(%rax), %rdi
	movl	24(%r12), %edx
	movl	48(%r12), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	movl	$1, (%rbx)
LBB0_11:
	cmpl	$0, (%rbx)
	je	LBB0_13
## %bb.12:
	movl	$0, (%rbx)
	movl	$1, (%r12)
	jmp	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	callq	_safexcel_select_ring
	movl	%eax, 4(%rbx)
	movl	16(%r15), %r12d
	movl	(%r14), %edi
	callq	_EIP197_GFP_FLAGS
	movq	%rbx, %rdx
	addq	$16, %rdx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_dma_pool_zalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_15
LBB0_13:
	movslq	4(%rbx), %rbx
	movq	8(%r15), %rax
	shlq	$4, %rbx
	leaq	(%rax,%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_lock_bh
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$12, %rdi
	movq	%r14, %rsi
	callq	_crypto_enqueue_request
	movl	%eax, %r14d
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_bh
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rsi
	movl	4(%rax,%rbx), %edi
	callq	_queue_work
	movl	%r14d, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_7:
	cmpq	$0, 40(%r12)
	je	LBB0_11
## %bb.8:
	movq	8(%r12), %rax
	cmpq	32(%r12), %rax
	jne	LBB0_10
## %bb.9:
	movq	8(%rbx), %rax
	movl	24(%r12), %edx
	movl	%edx, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rdi
	addq	(%rax), %rdi
	movl	24(%rbx), %esi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EIP197_TRC_CACHE,4,2           ## @EIP197_TRC_CACHE
	.comm	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED,8,3 ## @CONTEXT_CONTROL_DIGEST_PRECOMPUTED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_safexcel_ahash_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_ahash_enqueue
_safexcel_ahash_enqueue:                ; @safexcel_ahash_enqueue
	.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, x0
	bl	_crypto_ahash_reqtfm
	bl	_crypto_ahash_ctx
	mov	x21, x0
	mov	x0, x19
	bl	_ahash_request_ctx
	ldr	x20, [x21, #32]
	str	wzr, [x0]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x22, x0
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _EIP197_TRC_CACHE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EIP197_TRC_CACHE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.2:
	ldr	w9, [x21]
	cbnz	w9, LBB0_8
; %bb.3:
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_8
; %bb.4:
	ldr	x9, [x22, #40]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	x9, [x22, #16]
Lloh3:
	adrp	x10, _CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
LBB0_6:
	ldr	x0, [x8]
	ldr	w1, [x22, #48]
	ldr	w2, [x22, #24]
	bl	_memcmp
	cbz	x0, LBB0_14
LBB0_7:
	mov	w8, #1
	str	w8, [x21]
LBB0_8:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.9:
	str	wzr, [x21]
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_safexcel_select_ring
	str	w0, [x21, #4]
	ldr	w22, [x20, #16]
	ldr	w0, [x19]
	bl	_EIP197_GFP_FLAGS
	mov	x1, x0
	add	x2, x21, #16
	mov	x0, x22
	bl	_dma_pool_zalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_13
LBB0_11:
	ldrsw	x8, [x21, #4]
	ldr	x9, [x20, #8]
	lsl	x21, x8, #4
	add	x8, x9, x21
	add	x0, x8, #8
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	add	x0, x8, #12
	mov	x1, x19
	bl	_crypto_enqueue_request
	mov	x19, x0
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	add	x0, x8, #8
	bl	_spin_unlock_bh
	ldr	x8, [x20, #8]
	add	x1, x8, x21
	ldr	w0, [x1, #4]
	bl	_queue_work
	mov	x0, x19
LBB0_12:
	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
LBB0_13:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_14:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_8
; %bb.15:
	ldr	x8, [x22, #8]
	ldr	x9, [x22, #32]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.16:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w2, [x22, #24]
	asr	w9, w2, #2
	add	x0, x8, w9, sxtw
	ldr	w1, [x21, #24]
	bl	_memcmp
	cbnz	x0, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIP197_TRC_CACHE,4,2           ; @EIP197_TRC_CACHE
	.comm	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED,8,3 ; @CONTEXT_CONTROL_DIGEST_PRECOMPUTED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_safexcel_ahash_enqueue
.subsections_via_symbols
