	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_wait_req
_cache_wait_req:                        ## @cache_wait_req
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-36(%rbp), %r14
	callq	_COMPLETION_INITIALIZER_ONSTACK
	movl	%eax, -40(%rbp)
	movq	_cache_restart_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_setup_deferral
	movq	_CACHE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	leaq	-40(%rbp), %rdi
	callq	_wait_for_completion_interruptible_timeout
	testq	%rax, %rax
	jg	LBB0_5
LBB0_2:
	movq	_cache_defer_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_hlist_unhashed
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_cache_defer_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	leaq	-40(%rbp), %rdi
	callq	_wait_for_completion
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	___unhash_deferred_req
	movq	_cache_defer_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cache_restart_thread,4,2       ## @cache_restart_thread
	.comm	_CACHE_PENDING,4,2              ## @CACHE_PENDING
	.comm	_cache_defer_lock,4,2           ## @cache_defer_lock
	.no_dead_strip	_cache_wait_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_wait_req
_cache_wait_req:                        ; @cache_wait_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x8, sp
	orr	x19, x8, #0x4
	bl	_COMPLETION_INITIALIZER_ONSTACK
Lloh0:
	adrp	x8, _cache_restart_thread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cache_restart_thread@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w0, [sp]
	str	w8, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_setup_deferral
Lloh3:
	adrp	x8, _CACHE_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CACHE_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, sp
	bl	_wait_for_completion_interruptible_timeout
	cmp	x0, #0
	b.gt	LBB0_5
LBB0_2:
Lloh6:
	adrp	x0, _cache_defer_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _cache_defer_lock@GOTPAGEOFF]
	bl	_spin_lock
	mov	x0, x19
	bl	_hlist_unhashed
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, _cache_defer_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cache_defer_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, sp
	bl	_wait_for_completion
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	___unhash_deferred_req
Lloh10:
	adrp	x0, _cache_defer_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _cache_defer_lock@GOTPAGEOFF]
	bl	_spin_unlock
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cache_restart_thread,4,2       ; @cache_restart_thread
	.comm	_CACHE_PENDING,4,2              ; @CACHE_PENDING
	.comm	_cache_defer_lock,4,2           ; @cache_defer_lock
	.no_dead_strip	_cache_wait_req
.subsections_via_symbols
