	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videobuf_dqbuf                 ## -- Begin function videobuf_dqbuf
	.p2align	4, 0x90
_videobuf_dqbuf:                        ## @videobuf_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, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_MAGIC_QTYPE_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAGIC_CHECK
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_videobuf_queue_lock
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stream_next_buffer
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_CALL
	movq	-32(%rbp), %rdx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_videobuf_status
	movq	-32(%rbp), %rdi
	addq	$4, %rdi
	callq	_list_del
	movq	_VIDEOBUF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-32(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_videobuf_queue_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAGIC_QTYPE_OPS,4,2            ## @MAGIC_QTYPE_OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dqbuf: next_buffer error: %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"dqbuf: state is error\n"

L_.str.2:                               ## @.str.2
	.asciz	"dqbuf: state is done\n"

L_.str.3:                               ## @.str.3
	.asciz	"dqbuf: state invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sync,4,2                       ## @sync
	.comm	_VIDEOBUF_IDLE,4,2              ## @VIDEOBUF_IDLE
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ## @V4L2_BUF_FLAG_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videobuf_dqbuf                 ; -- Begin function videobuf_dqbuf
	.p2align	2
_videobuf_dqbuf:                        ; @videobuf_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	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MAGIC_QTYPE_OPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAGIC_QTYPE_OPS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MAGIC_CHECK
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	_videobuf_queue_lock
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_stream_next_buffer
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	w0, #1
	bl	_dprintk
Lloh9:
	adrp	x8, _sync@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sync@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x2, x19
	bl	_CALL
	ldr	x2, [sp, #8]
	ldr	w3, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_videobuf_status
	ldr	x8, [sp, #8]
	add	x0, x8, #4
	bl	_list_del
Lloh12:
	adrp	x8, _VIDEOBUF_IDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIDEOBUF_IDLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9]
Lloh15:
	adrp	x8, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_videobuf_queue_unlock
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAGIC_QTYPE_OPS,4,2            ; @MAGIC_QTYPE_OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dqbuf: next_buffer error: %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"dqbuf: state is error\n"

l_.str.2:                               ; @.str.2
	.asciz	"dqbuf: state is done\n"

l_.str.3:                               ; @.str.3
	.asciz	"dqbuf: state invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sync,4,2                       ; @sync
	.comm	_VIDEOBUF_IDLE,4,2              ; @VIDEOBUF_IDLE
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ; @V4L2_BUF_FLAG_DONE
.subsections_via_symbols
