	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_vb2_frame_prepare
_delta_vb2_frame_prepare:               ## @delta_vb2_frame_prepare
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_vb2_get_drv_priv
	movq	%rax, %r15
	movq	8(%rax), %r13
	movq	%r14, %rdi
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_to_frame
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_4:
	movl	(%r12), %eax
	movl	%eax, 4(%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	addq	$4, %r13
	movl	4(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movl	%eax, 12(%rbx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	%eax, 8(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_delta_setup_frame
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_dev_err
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %r9
	addq	$8, %r9
	movl	$1, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	(%r14), %ecx
	movl	12(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s setup_frame() failed (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s frame[%d] prepared; virt=0x%p, phy=0x%pad\n"

	.no_dead_strip	_delta_vb2_frame_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_vb2_frame_prepare
_delta_vb2_frame_prepare:               ; @delta_vb2_frame_prepare
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_vb2_get_drv_priv
	mov	x21, x0
	ldr	x25, [x0, #8]
	mov	x0, x20
	bl	_to_vb2_v4l2_buffer
	mov	x19, x0
	bl	_to_frame
	mov	x22, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w24, #0
	ldr	w8, [x19]
	str	w8, [x22, #4]
	b	LBB0_4
LBB0_2:
	mov	x23, x19
	ldr	w8, [x23, #4]!
	str	w8, [x22, #20]
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_plane_vaddr
	str	w0, [x22, #12]
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x23, x22
	str	w0, [x23, #8]!
	ldr	w8, [x21, #4]
	str	w8, [x22, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_delta_setup_frame
	cbz	w0, LBB0_5
; %bb.3:
	mov	x24, x0
	ldr	w0, [x25]
	ldr	w2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x24
	bl	_dev_err
LBB0_4:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w8, #1
	str	w8, [x22]
	ldr	w0, [x25]
	ldr	w2, [x21]
	ldr	w3, [x20]
	ldr	w4, [x22, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x5, x23
	bl	_dev_dbg
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s setup_frame() failed (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s frame[%d] prepared; virt=0x%p, phy=0x%pad\n"

	.no_dead_strip	_delta_vb2_frame_prepare
.subsections_via_symbols
