	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcmi_buffer_done
_dcmi_buffer_done:                      ## @dcmi_buffer_done
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	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	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	24(%rsi), %rdi
	callq	_list_del_init
	movslq	16(%r15), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r15)
	movq	%rax, (%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_ktime_get_ns
	leaq	8(%rbx), %r13
	movl	%eax, 12(%rbx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_vb2_set_plane_payload
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.3:
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_vb2_buffer_done
	movl	12(%r15), %edi
	movl	8(%rbx), %edx
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %r8
	callq	_dev_dbg
	incl	8(%r15)
	movq	$0, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_5:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer[%d] done seq=%d, bytesused=%zu\n"

	.no_dead_strip	_dcmi_buffer_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcmi_buffer_done
_dcmi_buffer_done:                      ; @dcmi_buffer_done
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_2
; %bb.1:
	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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, x1, #24
	bl	_list_del_init
	ldrsw	x8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
	str	x8, [x21]
Lloh0:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	bl	_ktime_get_ns
	add	x23, x21, #8
	str	w0, [x21, #12]
	mov	x0, x23
	mov	w1, #0
	mov	x2, x20
	bl	_vb2_set_plane_payload
Lloh3:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x23
	bl	_vb2_buffer_done
	ldr	w0, [x19, #12]
	ldr	w2, [x21, #8]
	ldr	x3, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x20
	bl	_dev_dbg
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	str	xzr, [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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer[%d] done seq=%d, bytesused=%zu\n"

	.no_dead_strip	_dcmi_buffer_done
.subsections_via_symbols
