	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mock_wait
_mock_wait:                             ## @mock_wait
	.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
	movq	%rdx, %rbx
	movq	%rdi, %r15
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movl	$0, -48(%rbp)
	movq	_current@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movq	_mock_wakeup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dma_fence_add_callback
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	movq	_DMA_FENCE_FLAG_SIGNALED_BIT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_set_current_state
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_signal_pending_state
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_schedule_timeout
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___set_current_state
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dma_fence_remove_callback
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_signal_pending_state
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_ETIME@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_current,4,2                    ## @current
	.comm	_mock_wakeup,4,2                ## @mock_wakeup
	.comm	_DMA_FENCE_FLAG_SIGNALED_BIT,4,2 ## @DMA_FENCE_FLAG_SIGNALED_BIT
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_ERESTARTSYS,8,3                ## @ERESTARTSYS
	.comm	_ETIME,8,3                      ## @ETIME
	.no_dead_strip	_mock_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mock_wait
_mock_wait:                             ; @mock_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
Lloh4:
	adrp	x22, _current@GOTPAGE
Lloh5:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	w8, [x22]
	stp	wzr, w8, [sp, #8]
Lloh6:
	adrp	x8, _mock_wakeup@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mock_wakeup@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_dma_fence_add_callback
	cbnz	x0, LBB0_11
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
Lloh9:
	adrp	x23, _DMA_FENCE_FLAG_SIGNALED_BIT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DMA_FENCE_FLAG_SIGNALED_BIT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_set_current_state
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_signal_pending_state
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_schedule_timeout
	mov	x19, x0
	cbnz	x0, LBB0_3
LBB0_6:
Lloh11:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	___set_current_state
	add	x1, sp, #8
	mov	x0, x21
	bl	_dma_fence_remove_callback
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_signal_pending_state
	cbz	x0, LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _ETIME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_current,4,2                    ; @current
	.comm	_mock_wakeup,4,2                ; @mock_wakeup
	.comm	_DMA_FENCE_FLAG_SIGNALED_BIT,4,2 ; @DMA_FENCE_FLAG_SIGNALED_BIT
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_ERESTARTSYS,8,3                ; @ERESTARTSYS
	.comm	_ETIME,8,3                      ; @ETIME
	.no_dead_strip	_mock_wait
.subsections_via_symbols
