	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_handle_result_descriptor
_safexcel_handle_result_descriptor:     ## @safexcel_handle_result_descriptor
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_EIP197_HIA_xDR_PROC_COUNT@GOTPCREL(%rip), %r14
	movq	_EIP197_xDR_PROC_xD_PKT_MASK@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%r15), %eax
	jne	LBB0_17
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_EIP197_HIA_RDR
	addq	(%r14), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%eax, %edx
	movq	_EIP197_xDR_PROC_xD_PKT_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	andl	(%r15), %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	addl	%ebx, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	addl	%ebx, %r15d
	decl	%r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addl	%r12d, %eax
	je	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_safexcel_rdr_req_get
	movq	%rax, %r14
	movl	8(%rax), %edi
	callq	_crypto_tfm_ctx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	leaq	-72(%rbp), %rcx
	leaq	-76(%rbp), %r8
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$0, -72(%rbp)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
	callq	_local_bh_disable
	movl	-76(%rbp), %esi
	movq	%r14, %rdi
	callq	*(%r14)
	xorl	%eax, %eax
	callq	_local_bh_enable
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	subl	%r12d, %eax
	negl	%r12d
	movl	%eax, %r13d
	testl	%r12d, %r12d
	je	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %edi
	callq	_EIP197_xDR_PROC_xD_PKT
	movl	%eax, %r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	imull	8(%r14), %r15d
	movl	%r15d, %edi
	callq	_EIP197_xDR_PROC_xD_COUNT
	orl	%eax, %r12d
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_PROC_COUNT@GOTPCREL(%rip), %r14
	addq	(%r14), %rax
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_writel
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_EIP197_HIA_xDR_PROC_COUNT@GOTPCREL(%rip), %r14
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_EIP197_xDR_PROC_xD_PKT_MASK@GOTPCREL(%rip), %r15
	jmp	LBB0_16
LBB0_2:
	movl	%ebx, %r13d
LBB0_17:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movslq	%r15d, %rbx
	shlq	$4, %rbx
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_lock_bh
	movslq	%r13d, %rax
	movq	(%r14), %rcx
	subq	%rax, 8(%rcx,%rbx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_safexcel_try_push_requests
	movq	(%r14), %rax
	cmpq	$0, 8(%rax,%rbx)
	jne	LBB0_19
## %bb.18:
	movl	$0, (%rax,%rbx)
LBB0_19:
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_bh
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIP197_HIA_xDR_PROC_COUNT,8,3  ## @EIP197_HIA_xDR_PROC_COUNT
	.comm	_EIP197_xDR_PROC_xD_PKT_OFFSET,4,2 ## @EIP197_xDR_PROC_xD_PKT_OFFSET
	.comm	_EIP197_xDR_PROC_xD_PKT_MASK,4,2 ## @EIP197_xDR_PROC_xD_PKT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to handle result (%d)\n"

	.no_dead_strip	_safexcel_handle_result_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_handle_result_descriptor
_safexcel_handle_result_descriptor:     ; @safexcel_handle_result_descriptor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	w28, #0
Lloh0:
	adrp	x27, _EIP197_HIA_xDR_PROC_COUNT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EIP197_HIA_xDR_PROC_COUNT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _EIP197_xDR_PROC_xD_PKT_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EIP197_xDR_PROC_xD_PKT_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x28
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	mov	x28, x26
	cmp	w21, w8
	b.ne	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x27]
	add	x0, x8, x0
	bl	_readl
Lloh4:
	adrp	x8, _EIP197_xDR_PROC_xD_PKT_OFFSET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIP197_xDR_PROC_xD_PKT_OFFSET@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	asr	w8, w0, w8
	ldr	w9, [x22]
	ands	w21, w8, w9
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, #1
	b.lt	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	mov	w22, #0
	add	w26, w28, w21
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w25, w24, w25
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_13
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x20
	bl	_safexcel_rdr_req_get
	mov	x23, x0
	ldr	w0, [x0, #8]
	bl	_crypto_tfm_ctx
	ldr	x8, [x0]
	add	x3, sp, #8
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	blr	x8
	mov	x24, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	bl	_local_bh_disable
	ldr	x8, [x23]
	ldr	w1, [sp, #12]
	mov	x0, x23
	blr	x8
	bl	_local_bh_enable
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #12]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	add	w26, w28, w22
	cbz	w22, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_EIP197_xDR_PROC_xD_PKT
	mov	x22, x0
	ldr	w8, [x19, #8]
	mul	w0, w8, w25
	bl	_EIP197_xDR_PROC_xD_COUNT
	orr	w22, w0, w22
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x27]
	add	x1, x8, x0
	mov	x0, x22
	bl	_writel
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x22, _EIP197_xDR_PROC_xD_PKT_MASK@GOTPAGE
Lloh10:
	ldr	x22, [x22, _EIP197_xDR_PROC_xD_PKT_MASK@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x21
	cbnz	w22, LBB0_11
	b	LBB0_12
LBB0_14:
	mov	x26, x28
LBB0_15:
	ldr	x8, [x19]
	sxtw	x21, w20
	sbfiz	x22, x20, #4, #32
	add	x8, x8, x22
	add	x0, x8, #4
	bl	_spin_lock_bh
	ldr	x8, [x19]
	add	x8, x8, x22
	ldr	x9, [x8, #8]
	sub	x9, x9, w26, sxtw
	str	x9, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_safexcel_try_push_requests
	ldr	x8, [x19]
	add	x9, x8, x22
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_17
; %bb.16:
	lsl	x9, x21, #4
	str	wzr, [x8, x9]
LBB0_17:
	add	x8, x8, x21, lsl #4
	add	x0, x8, #4
	bl	_spin_unlock_bh
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EIP197_HIA_xDR_PROC_COUNT,8,3  ; @EIP197_HIA_xDR_PROC_COUNT
	.comm	_EIP197_xDR_PROC_xD_PKT_OFFSET,4,2 ; @EIP197_xDR_PROC_xD_PKT_OFFSET
	.comm	_EIP197_xDR_PROC_xD_PKT_MASK,4,2 ; @EIP197_xDR_PROC_xD_PKT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to handle result (%d)\n"

	.no_dead_strip	_safexcel_handle_result_descriptor
.subsections_via_symbols
