	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_wait_for_seqno_ioctl_helper
_vc4_wait_for_seqno_ioctl_helper:       ## @vc4_wait_for_seqno_ioctl_helper
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	movq	(%rdx), %rdx
	movl	$1, %ecx
	callq	_vc4_wait_for_seqno
	movl	%eax, %ebx
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_5
LBB0_2:
	cmpq	$-1, (%r14)
	je	LBB0_5
## %bb.3:
	movq	(%r12), %rdi
	subq	%r15, %rdi
	callq	_jiffies_to_nsecs
	movq	(%r14), %rcx
	subq	%rax, %rcx
	jb	LBB0_5
## %bb.4:
	movq	%rcx, (%r14)
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_vc4_wait_for_seqno_ioctl_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_wait_for_seqno_ioctl_helper
_vc4_wait_for_seqno_ioctl_helper:       ; @vc4_wait_for_seqno_ioctl_helper
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x22, [x21]
	ldr	x2, [x2]
	mov	w3, #1
	bl	_vc4_wait_for_seqno
	mov	x20, x0
Lloh2:
	adrp	x8, _EINTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_5
LBB0_2:
	ldr	x8, [x19]
	cmn	x8, #1
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	sub	x0, x8, x22
	bl	_jiffies_to_nsecs
	ldr	x8, [x19]
	subs	x8, x8, x0
	b.lo	LBB0_5
; %bb.4:
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_vc4_wait_for_seqno_ioctl_helper
.subsections_via_symbols
