	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_dqbuf
_vidioc_dqbuf:                          ## @vidioc_dqbuf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_V4L2_EVENT_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_MFCINST_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_mfc_err_limited
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.4:
	addq	$28, %r15
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vb2_dqbuf                      ## TAILCALL
LBB0_5:
	leaq	24(%r15), %rdi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%rbx), %edx
	movq	%r14, %rsi
	callq	_vb2_dqbuf
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	(%r15), %rax
	movq	_MFCINST_FINISHED@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movq	16(%r15), %rax
	movq	8(%r14), %rcx
	movq	_MFC_BUF_FLAG_EOS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_11
## %bb.8:
	addq	$8, %r15
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_v4l2_event_queue_fh
	jmp	LBB0_11
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EVENT_EOS,4,2             ## @V4L2_EVENT_EOS
	.comm	_MFCINST_ERROR,8,3              ## @MFCINST_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Call on DQBUF after unrecoverable error\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_MFCINST_FINISHED,8,3           ## @MFCINST_FINISHED
	.comm	_MFC_BUF_FLAG_EOS,4,2           ## @MFC_BUF_FLAG_EOS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_dqbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_dqbuf
_vidioc_dqbuf:                          ; @vidioc_dqbuf
	.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
	mov	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _V4L2_EVENT_EOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_EVENT_EOS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x1
	bl	_fh_to_ctx
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MFCINST_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MFCINST_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err_limited
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
	add	x0, x20, #28
Lloh10:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh12:
	ldr	w8, [x8]
	and	w2, w8, w9
	mov	x1, x19
	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
	b	_vb2_dqbuf
LBB0_5:
	add	x0, x20, #24
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x1, x19
	bl	_vb2_dqbuf
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _MFCINST_FINISHED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MFCINST_FINISHED@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh19:
	adrp	x9, _MFC_BUF_FLAG_EOS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MFC_BUF_FLAG_EOS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
	add	x0, x20, #8
	add	x1, sp, #8
	bl	_v4l2_event_queue_fh
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EVENT_EOS,4,2             ; @V4L2_EVENT_EOS
	.comm	_MFCINST_ERROR,8,3              ; @MFCINST_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Call on DQBUF after unrecoverable error\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_MFCINST_FINISHED,8,3           ; @MFCINST_FINISHED
	.comm	_MFC_BUF_FLAG_EOS,4,2           ; @MFC_BUF_FLAG_EOS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_dqbuf
.subsections_via_symbols
