	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcp_sha_update_fx
_dcp_sha_update_fx:                     ## @dcp_sha_update_fx
	.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	%esi, %r12d
	movq	%rdi, %r14
	movq	_global_sdcp@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	_ahash_request_ctx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_crypto_ahash_reqtfm
	movq	%rax, %rdi
	callq	_crypto_ahash_ctx
	movq	%rax, %rbx
	movl	4(%r14), %eax
	orl	%r12d, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
	movl	$1, 4(%rax)
LBB0_3:
	movq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	callq	_spin_lock
	movq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	movq	%r14, %rsi
	callq	_crypto_enqueue_request
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	callq	_spin_unlock
	movq	(%r13), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_wake_up_process
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_global_sdcp,8,3                ## @global_sdcp
	.no_dead_strip	_dcp_sha_update_fx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcp_sha_update_fx
_dcp_sha_update_fx:                     ; @dcp_sha_update_fx
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _global_sdcp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _global_sdcp@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	bl	_ahash_request_ctx
	mov	x23, x0
	mov	x0, x19
	bl	_crypto_ahash_reqtfm
	bl	_crypto_ahash_ctx
	ldr	w8, [x19, #4]
	orr	w8, w8, w22
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_mutex_lock
	str	w22, [x23]
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
	str	w8, [x23, #4]
LBB0_3:
	ldr	x8, [x24, #8]
	ldr	x9, [x20, #8]
	add	x0, x8, x9, lsl #2
	bl	_spin_lock
	ldr	x8, [x24, #16]
	ldr	x9, [x20, #8]
	add	x0, x8, x9, lsl #2
	mov	x1, x19
	bl	_crypto_enqueue_request
	mov	x19, x0
	ldr	x8, [x24, #8]
	ldr	x9, [x20, #8]
	add	x0, x8, x9, lsl #2
	bl	_spin_unlock
	ldr	x8, [x24]
	ldr	x9, [x20, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_wake_up_process
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_global_sdcp,8,3                ; @global_sdcp
	.no_dead_strip	_dcp_sha_update_fx
.subsections_via_symbols
