	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_queue_waiton
_uvc_queue_waiton:                      ## @uvc_queue_waiton
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rcx
	movq	_UVC_BUF_STATE_QUEUED@GOTPCREL(%rip), %r8
	movq	_UVC_BUF_STATE_ACTIVE@GOTPCREL(%rip), %r9
	movq	_UVC_BUF_STATE_READY@GOTPCREL(%rip), %rdi
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	xorl	%esi, %esi
	subl	(%rdx), %esi
	cmpq	(%rdi), %rcx
	cmovel	%esi, %eax
	cmpq	(%r9), %rcx
	cmovel	%esi, %eax
	cmpq	(%r8), %rcx
	cmovel	%esi, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	(%rdi), %rax
	movq	_UVC_BUF_STATE_QUEUED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_UVC_BUF_STATE_ACTIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%dl
	andb	%cl, %dl
	movq	_UVC_BUF_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	8(%rdi), %edi
	setne	%al
	andb	%dl, %al
	movzbl	%al, %esi
	popq	%rbp
	jmp	_wait_event_interruptible       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_BUF_STATE_QUEUED,8,3       ## @UVC_BUF_STATE_QUEUED
	.comm	_UVC_BUF_STATE_ACTIVE,8,3       ## @UVC_BUF_STATE_ACTIVE
	.comm	_UVC_BUF_STATE_READY,8,3        ## @UVC_BUF_STATE_READY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_uvc_queue_waiton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_queue_waiton
_uvc_queue_waiton:                      ; @uvc_queue_waiton
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _UVC_BUF_STATE_QUEUED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UVC_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _UVC_BUF_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UVC_BUF_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _UVC_BUF_STATE_READY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _UVC_BUF_STATE_READY@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csneg	w0, wzr, w8, ne
	ret
LBB0_2:
	ldr	w8, [x0, #8]
	ldr	x9, [x0]
Lloh12:
	adrp	x10, _UVC_BUF_STATE_QUEUED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _UVC_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
Lloh15:
	adrp	x10, _UVC_BUF_STATE_ACTIVE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _UVC_BUF_STATE_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _UVC_BUF_STATE_READY@GOTPAGE
Lloh19:
	ldr	x11, [x11, _UVC_BUF_STATE_READY@GOTPAGEOFF]
	ccmp	x9, x10, #4, ne
Lloh20:
	ldr	x10, [x11]
	ccmp	x9, x10, #4, ne
	cset	w1, ne
	mov	x0, x8
	b	_wait_event_interruptible
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_BUF_STATE_QUEUED,8,3       ; @UVC_BUF_STATE_QUEUED
	.comm	_UVC_BUF_STATE_ACTIVE,8,3       ; @UVC_BUF_STATE_ACTIVE
	.comm	_UVC_BUF_STATE_READY,8,3        ; @UVC_BUF_STATE_READY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_uvc_queue_waiton
.subsections_via_symbols
