	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_event_dequeue             ## -- Begin function v4l2_event_dequeue
	.p2align	4, 0x90
_v4l2_event_dequeue:                    ## @v4l2_event_dequeue
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	callq	_video_device_shadow_get
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.12:
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___v4l2_event_dequeue           ## TAILCALL
LBB0_1:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_mutex_unlock
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_ENOENT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	xorl	%esi, %esi
	cmpq	$0, (%r13)
	setne	%sil
	callq	_wait_event_interruptible
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	___v4l2_event_dequeue
	movl	%eax, %ebx
	movl	(%r14), %eax
	addl	%ebx, %eax
	je	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_mutex_lock
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_event_dequeue             ; -- Begin function v4l2_event_dequeue
	.p2align	2
_v4l2_event_dequeue:                    ; @v4l2_event_dequeue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x0]
	bl	_video_device_shadow_get
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	___v4l2_event_dequeue
LBB0_2:
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_mutex_unlock
LBB0_5:
Lloh0:
	adrp	x24, _ENOENT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #8]
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w1, ne
	bl	_wait_event_interruptible
	tbnz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	___v4l2_event_dequeue
	ldr	w8, [x24]
	cmn	w0, w8
	b.eq	LBB0_6
LBB0_8:
	mov	x22, x0
	cbz	x19, LBB0_11
; %bb.9:
	ldr	x0, [x19]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_mutex_lock
LBB0_11:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
