	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_wait_timeout
_test_wait_timeout:                     ## @test_wait_timeout
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r14
	movq	_wait_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_timer_setup_on_stack
	xorl	%eax, %eax
	callq	_mock_fence
	movl	%eax, -40(%rbp)
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_dma_fence_wait_timeout
	movq	_ETIME@GOTPCREL(%rip), %r15
	addl	(%r15), %eax
	jne	LBB0_6
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_mod_timer
	movl	-40(%rbp), %edi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_dma_fence_wait_timeout
	addl	(%r15), %eax
	jne	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_notice
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r12d
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rdi
LBB0_7:
	callq	_pr_err
LBB0_9:
	movq	%r14, %rdi
	callq	_del_timer_sync
	movq	%r14, %rdi
	callq	_destroy_timer_on_stack
	movl	-40(%rbp), %edi
	callq	_dma_fence_signal
	movl	-40(%rbp), %edi
	callq	_dma_fence_put
LBB0_10:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_wait_timer,4,2                 ## @wait_timer
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETIME,4,2                      ## @ETIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wait reported complete before being signaled\n"

	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"Timer did not fire within the jiffie!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Wait reported incomplete after timeout\n"

	.no_dead_strip	_test_wait_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_wait_timeout
_test_wait_timeout:                     ; @test_wait_timeout
	.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
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x8, sp, #8
	orr	x19, x8, #0x4
Lloh3:
	adrp	x8, _wait_timer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wait_timer@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_timer_setup_on_stack
	bl	_mock_fence
	str	w0, [sp, #8]
	cbz	w0, LBB0_5
; %bb.1:
	neg	w21, w20
	mov	w1, #0
	mov	w2, #1
	bl	_dma_fence_wait_timeout
Lloh6:
	adrp	x22, _ETIME@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ETIME@GOTPAGEOFF]
	ldr	w8, [x22]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x19
	bl	_mod_timer
	ldr	w0, [sp, #8]
	mov	w1, #0
	mov	w2, #2
	bl	_dma_fence_wait_timeout
	mov	w20, #0
	ldr	w8, [x22]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_timer_pending
	cbz	x0, LBB0_10
; %bb.4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
	mov	w20, #0
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_pr_err
	mov	x20, x21
LBB0_8:
	mov	x0, x19
	bl	_del_timer_sync
	mov	x0, x19
	bl	_destroy_timer_on_stack
	ldr	w0, [sp, #8]
	bl	_dma_fence_signal
	ldr	w0, [sp, #8]
	bl	_dma_fence_put
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_wait_timer,4,2                 ; @wait_timer
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETIME,4,2                      ; @ETIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wait reported complete before being signaled\n"

	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"Timer did not fire within the jiffie!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Wait reported incomplete after timeout\n"

	.no_dead_strip	_test_wait_timeout
.subsections_via_symbols
