	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_dqbuf                      ## -- Begin function vb2_dqbuf
	.p2align	4, 0x90
_vb2_dqbuf:                             ## @vb2_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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_vb2_fileio_is_active
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_vb2_core_dqbuf
	cmpl	$0, 12(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	8(%r14), %ecx
LBB0_10:
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, 8(%r14)
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r14), %ecx
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_10
## %bb.8:
	movq	_V4L2_BUF_FLAG_LAST@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_10
## %bb.9:
	movl	$1, 8(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file io in progress\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"invalid buffer type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ## @V4L2_BUF_FLAG_DONE
	.comm	_V4L2_BUF_FLAG_LAST,4,2         ## @V4L2_BUF_FLAG_LAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_dqbuf                      ; -- Begin function vb2_dqbuf
	.p2align	2
_vb2_dqbuf:                             ; @vb2_dqbuf
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_vb2_fileio_is_active
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	mov	x3, x21
	bl	_vb2_core_dqbuf
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_9
; %bb.4:
Lloh4:
	adrp	x8, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
	ldr	w8, [x19, #8]
LBB0_5:
	bic	w8, w8, w9
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.10:
Lloh14:
	adrp	x10, _V4L2_BUF_FLAG_LAST@GOTPAGE
Lloh15:
	ldr	x10, [x10, _V4L2_BUF_FLAG_LAST@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.11:
	mov	w10, #1
	str	w10, [x20, #8]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file io in progress\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"invalid buffer type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ; @V4L2_BUF_FLAG_DONE
	.comm	_V4L2_BUF_FLAG_LAST,4,2         ; @V4L2_BUF_FLAG_LAST
.subsections_via_symbols
