	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_enc_buf_finish
_solo_enc_buf_finish:                   ## @solo_enc_buf_finish
	.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
	movq	%rdi, %rbx
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_vb2_get_drv_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_sg_plane_desc
	movl	(%r15), %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_4
## %bb.1:
	movq	_V4L2_BUF_FLAG_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_5
## %bb.2:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movl	12(%r15), %ecx
	movl	16(%r15), %edx
	jmp	LBB0_3
LBB0_4:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movl	4(%r15), %ecx
	movl	8(%r15), %edx
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sg_copy_from_buffer            ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ## @V4L2_BUF_FLAG_KEYFRAME
	.no_dead_strip	_solo_enc_buf_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_enc_buf_finish
_solo_enc_buf_finish:                   ; @solo_enc_buf_finish
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_to_vb2_v4l2_buffer
	mov	x20, x0
	ldr	w0, [x21]
	bl	_vb2_get_drv_priv
	mov	x19, x0
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_dma_sg_plane_desc
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldp	w1, w8, [x0]
	ldp	w3, w2, [x19, #12]
	b	LBB0_4
LBB0_3:
	ldp	w1, w8, [x0]
	ldp	w3, w2, [x19, #4]
LBB0_4:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sg_copy_from_buffer
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ; @V4L2_BUF_FLAG_KEYFRAME
	.no_dead_strip	_solo_enc_buf_finish
.subsections_via_symbols
