	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_dqbuf                 ## -- Begin function vb2_core_dqbuf
	.p2align	4, 0x90
_vb2_core_dqbuf:                        ## @vb2_core_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	callq	___vb2_get_done_vb
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	-40(%rbp), %rdi
	movq	_buf_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rdx
	callq	_call_void_vb_qop
	movq	-40(%rbp), %rdx
	movq	$0, 24(%rdx)
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movl	4(%rdx), %eax
	movl	%eax, (%r15)
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	_fill_user_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_call_void_bufop
	movq	-40(%rbp), %rdx
LBB0_10:
	addq	$20, %rdx
	movq	%rdx, %rdi
	callq	_list_del
	decl	(%r14)
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_trace_vb2_dqbuf
	movq	-40(%rbp), %rdi
	callq	___vb2_dqbuf
	movq	-40(%rbp), %rax
	movl	16(%rax), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	-40(%rbp), %rdi
	addq	$16, %rdi
	callq	_media_request_object_unbind
	movq	-40(%rbp), %rdi
	addq	$16, %rdi
	callq	_media_request_object_put
LBB0_12:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_media_request_put
	movq	-40(%rbp), %rax
LBB0_14:
	movq	$0, 8(%rax)
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_15
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"returning done buffer\n"

L_.str.1:                               ## @.str.1
	.asciz	"returning done buffer with errors\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid buffer state\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_buf_finish,4,2                 ## @buf_finish
	.comm	_fill_user_buffer,4,2           ## @fill_user_buffer
L_.str.3:                               ## @.str.3
	.asciz	"dqbuf of buffer %d, with state %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_dqbuf                 ; -- Begin function vb2_core_dqbuf
	.p2align	2
_vb2_core_dqbuf:                        ; @vb2_core_dqbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	add	x1, sp, #24
	bl	___vb2_get_done_vb
	tbnz	w0, #31, LBB0_15
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.3:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	w0, #3
	bl	_dprintk
	ldr	x0, [sp, #24]
Lloh4:
	adrp	x8, _buf_finish@GOTPAGE
Lloh5:
	ldr	x8, [x8, _buf_finish@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x0
	bl	_call_void_vb_qop
	ldr	x2, [sp, #24]
	str	xzr, [x2, #24]
	cbz	x21, LBB0_7
; %bb.6:
	ldr	w8, [x2, #4]
	str	w8, [x21]
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _fill_user_buffer@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fill_user_buffer@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_call_void_bufop
	ldr	x2, [sp, #24]
LBB0_9:
	add	x0, x2, #20
	bl	_list_del
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_trace_vb2_dqbuf
	ldr	x0, [sp, #24]
	bl	___vb2_dqbuf
	ldr	x8, [sp, #24]
	ldr	w0, [x8, #16]
	bl	_WARN_ON
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [sp, #24]
	add	x0, x8, #16
	bl	_media_request_object_unbind
	ldr	x8, [sp, #24]
	add	x0, x8, #16
	bl	_media_request_object_put
LBB0_11:
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_media_request_put
	ldr	x8, [sp, #24]
LBB0_13:
	str	xzr, [x8, #8]
	ldp	w8, w9, [x8]
	stp	x9, x8, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"returning done buffer\n"

l_.str.1:                               ; @.str.1
	.asciz	"returning done buffer with errors\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid buffer state\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_buf_finish,4,2                 ; @buf_finish
	.comm	_fill_user_buffer,4,2           ; @fill_user_buffer
l_.str.3:                               ; @.str.3
	.asciz	"dqbuf of buffer %d, with state %d\n"

.subsections_via_symbols
