	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __prepare_dmabuf
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___prepare_dmabuf:                      ## @__prepare_dmabuf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VB2_MAX_PLANES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$5, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	24(%rbx), %r13
	movq	8(%rbx), %rax
	movq	48(%rax), %r14
	movl	(%rbx), %edx
	shll	$5, %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	24(%rbx), %rdi
	movq	_fill_vb2_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_call_bufop
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.1:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	testq	%r14, %r14
	sete	%r13b
	cmpl	$0, (%rbx)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_30
## %bb.2:
	movq	%rbx, %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_dma_buf_put
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movl	(%r12), %eax
	addq	$64, -72(%rbp)                  ## 8-byte Folded Spill
	addq	$8, %r14
	movq	%rdx, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15,%r14,4), %rdi
	callq	_dma_buf_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15,%r14,4), %rdx
	testq	%rdx, %rdx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdx
	movq	%rdx, (%r15,%r14,4)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %r8
	cmpq	%r8, %rdx
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	56(%rax,%r14,8), %rbx
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, 8(%rax,%r14,8)
	je	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dprintk
	testl	%r13d, %r13d
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 16(%r12)
	movq	_buf_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_call_void_vb_qop
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	callq	___vb2_plane_dmabuf_put
	movq	8(%r12), %rax
	movq	$0, 8(%rax,%r14,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rax,%r14,8)
	movq	$0, 40(%rax,%r14,8)
	movq	_attach_dmabuf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	(%rax,%r14), %rdx
	testq	%rdx, %rdx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rcx), %edx
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r13
	movq	(%r15,%r14,4), %r8
	movl	(%rcx), %r9d
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rbx, %rcx
	callq	_call_ptr_memop
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	%rbx, 56(%rax,%r14,8)
	movq	%r15, 48(%rax,%r14,8)
	movq	%r13, %r15
	movl	$1, %r13d
	jmp	LBB0_25
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_5
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dma_buf_put
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_38
LBB0_6:
	testl	%eax, %eax
	je	LBB0_30
## %bb.7:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	%r15, %r13
	movq	8(%r12), %rcx
	xorl	%ebx, %ebx
	movq	_map_dmabuf@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movl	%eax, %edx
	addq	$64, %rbx
	cmpq	%rdx, %r14
	jae	LBB0_26
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 16(%rcx,%rbx)
	jne	LBB0_34
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %esi
	movq	48(%rcx,%rbx), %rdx
	movq	%r12, %rdi
	callq	_call_memop
	testl	%eax, %eax
	jne	LBB0_10
## %bb.33:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdx
	movq	8(%r12), %rcx
	movl	$1, 16(%rcx,%rbx)
	movl	(%r12), %eax
	jmp	LBB0_34
LBB0_23:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_dma_buf_put
	jmp	LBB0_38
LBB0_26:
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:
	movq	8(%r12), %rax
	shlq	$5, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13,%rcx), %rsi
	movq	%rsi, 40(%rax,%rcx,2)
	movq	(%r13,%rcx), %rsi
	movq	%rsi, 8(%rax,%rcx,2)
	movups	8(%r13,%rcx), %xmm0
	movups	%xmm0, 24(%rax,%rcx,2)
	addq	$32, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_28
LBB0_29:
	movl	-56(%rbp), %r13d                ## 4-byte Reload
LBB0_30:
	testl	%r13d, %r13d
	je	LBB0_35
## %bb.31:
	movq	_buf_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rdx
	callq	_call_vb_qop
	testl	%eax, %eax
	je	LBB0_35
## %bb.32:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_38
LBB0_35:
	movq	_buf_prepare@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_call_vb_qop
	testl	%eax, %eax
	je	LBB0_36
## %bb.37:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_buf_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_call_void_vb_qop
LBB0_38:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	___vb2_buf_dmabuf_put
LBB0_39:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.40:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	xorl	%r12d, %r12d
	jmp	LBB0_39
LBB0_10:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_38
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_MAX_PLANES,4,2             ## @VB2_MAX_PLANES
	.comm	_fill_vb2_buffer,4,2            ## @fill_vb2_buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid dmabuf fd for plane %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid dmabuf length %u for plane %d, minimum length %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"buffer for plane %d changed\n"

	.comm	_buf_cleanup,4,2                ## @buf_cleanup
	.comm	_attach_dmabuf,4,2              ## @attach_dmabuf
L_.str.3:                               ## @.str.3
	.asciz	"failed to attach dmabuf\n"

	.comm	_map_dmabuf,4,2                 ## @map_dmabuf
L_.str.4:                               ## @.str.4
	.asciz	"failed to map dmabuf for plane %d\n"

	.comm	_buf_init,4,2                   ## @buf_init
L_.str.5:                               ## @.str.5
	.asciz	"buffer initialization failed\n"

	.comm	_buf_prepare,4,2                ## @buf_prepare
L_.str.6:                               ## @.str.6
	.asciz	"buffer preparation failed\n"

	.no_dead_strip	___prepare_dmabuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __prepare_dmabuf
___prepare_dmabuf:                      ; @__prepare_dmabuf
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _VB2_MAX_PLANES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_MAX_PLANES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #5
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x27, x9, x8
	mov	sp, x27
	ldr	x24, [x0, #24]
	ldr	x8, [x0, #8]
	ldr	x20, [x8, #48]
	ldr	w8, [x0]
	lsl	w2, w8, #5
	mov	x0, x27
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #24]
Lloh8:
	adrp	x8, _fill_vb2_buffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fill_vb2_buffer@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, x27
	bl	_call_bufop
	mov	x21, x0
	cbnz	w0, LBB0_36
; %bb.1:
	cmp	x20, #0
	cset	w23, eq
	ldr	w8, [x19]
	cbz	w8, LBB0_30
; %bb.2:
	mov	x26, #0
	mov	x25, #0
Lloh11:
	adrp	x28, _attach_dmabuf@GOTPAGE
Lloh12:
	ldr	x28, [x28, _attach_dmabuf@GOTPAGEOFF]
	mov	x20, x27
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_dma_buf_put
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19]
	add	x26, x26, #64
	add	x20, x20, #32
	cmp	x25, x8
	b.hs	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #16]
	bl	_dma_buf_get
	mov	x22, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	str	x8, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x19, #8]
	ldr	x9, [x10, x26]
	cmp	x8, x9
	b.lt	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x10, x26
	ldr	x10, [x9, #56]
	cmp	x22, x10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x9, #8]
	cmp	x9, x8
	b.eq	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x25, [sp, #-16]!
	mov	w0, #3
	mov	x1, x21
	bl	_dprintk
	add	sp, sp, #16
	cbnz	w23, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x19, #16]
Lloh15:
	adrp	x8, _buf_cleanup@GOTPAGE
Lloh16:
	ldr	x8, [x8, _buf_cleanup@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_vb_qop
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x26
	mov	x0, x19
	bl	___vb2_plane_dmabuf_put
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	str	xzr, [x8, #8]
	stp	xzr, xzr, [x8, #32]
	str	xzr, [x8, #24]
	ldr	w1, [x28]
	ldr	x8, [x24, #8]
	ldr	x2, [x8, x25, lsl #3]
	cbnz	x2, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x24, #4]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x20]
	ldr	w5, [x24]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x22
	bl	_call_ptr_memop
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	stp	x23, x22, [x8, #48]
	mov	w23, #1
	b	LBB0_4
LBB0_17:
	str	x25, [sp, #-16]!
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	add	sp, sp, #16
	b	LBB0_19
LBB0_18:
	sub	sp, sp, #32
	stp	x25, x9, [sp, #8]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	add	sp, sp, #32
	mov	x0, x22
	bl	_dma_buf_put
LBB0_19:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_35
LBB0_20:
	cbz	w8, LBB0_30
; %bb.21:
	mov	x22, #0
	mov	x20, #0
	ldr	x9, [x19, #8]
Lloh25:
	adrp	x24, _map_dmabuf@GOTPAGE
Lloh26:
	ldr	x24, [x24, _map_dmabuf@GOTPAGEOFF]
	mov	w25, #1
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x20, x20, #1
	add	x22, x22, #64
	cmp	x20, w8, uxtw
	b.hs	LBB0_27
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x9, x22
	ldr	w11, [x10, #16]
	cbnz	w11, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w1, [x24]
	ldr	x2, [x10, #48]
	mov	x0, x19
	bl	_call_memop
	cbnz	w0, LBB0_38
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x19, #8]
	add	x8, x9, x22
	str	w25, [x8, #16]
	ldr	w8, [x19]
	b	LBB0_22
LBB0_26:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	mov	x0, x23
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x22
	bl	_dma_buf_put
	b	LBB0_35
LBB0_27:
	cbz	w8, LBB0_30
; %bb.28:
	mov	w8, w8
	ldr	x9, [x19, #8]
	add	x9, x9, #40
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x27, #24]
	str	x10, [x9]
	ldr	x10, [x27]
	stur	x10, [x9, #-32]
	ldur	q0, [x27, #8]
	stur	q0, [x9, #-16]
	add	x9, x9, #64
	add	x27, x27, #32
	subs	x8, x8, #1
	b.ne	LBB0_29
LBB0_30:
	cbz	w23, LBB0_33
; %bb.31:
Lloh29:
	adrp	x8, _buf_init@GOTPAGE
Lloh30:
	ldr	x8, [x8, _buf_init@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_call_vb_qop
	cbz	w0, LBB0_33
; %bb.32:
	mov	x21, x0
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	b	LBB0_35
LBB0_33:
Lloh34:
	adrp	x8, _buf_prepare@GOTPAGE
Lloh35:
	ldr	x8, [x8, _buf_prepare@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_call_vb_qop
	mov	x21, x0
	cbz	w0, LBB0_36
; %bb.34:
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh39:
	adrp	x8, _buf_cleanup@GOTPAGE
Lloh40:
	ldr	x8, [x8, _buf_cleanup@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_call_void_vb_qop
LBB0_35:
	mov	x0, x19
	bl	___vb2_buf_dmabuf_put
LBB0_36:
	ldur	x8, [x29, #-88]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.37:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_38:
	mov	x21, x0
	str	x20, [sp, #-16]!
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	add	sp, sp, #16
	b	LBB0_35
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_MAX_PLANES,4,2             ; @VB2_MAX_PLANES
	.comm	_fill_vb2_buffer,4,2            ; @fill_vb2_buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid dmabuf fd for plane %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid dmabuf length %u for plane %d, minimum length %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"buffer for plane %d changed\n"

	.comm	_buf_cleanup,4,2                ; @buf_cleanup
	.comm	_attach_dmabuf,4,2              ; @attach_dmabuf
l_.str.3:                               ; @.str.3
	.asciz	"failed to attach dmabuf\n"

	.comm	_map_dmabuf,4,2                 ; @map_dmabuf
l_.str.4:                               ; @.str.4
	.asciz	"failed to map dmabuf for plane %d\n"

	.comm	_buf_init,4,2                   ; @buf_init
l_.str.5:                               ; @.str.5
	.asciz	"buffer initialization failed\n"

	.comm	_buf_prepare,4,2                ; @buf_prepare
l_.str.6:                               ; @.str.6
	.asciz	"buffer preparation failed\n"

	.no_dead_strip	___prepare_dmabuf
.subsections_via_symbols
