	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_fill_mpeg
_solo_fill_mpeg:                        ## @solo_fill_mpeg
	.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	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_vb2_v4l2_buffer
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_sg_plane_desc
	movq	%rax, %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_size
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_vop_mpeg_size
	cmpq	%rax, %r12
	jge	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_V4L2_BUF_FLAG_KEYFRAME@GOTPCREL(%rip), %r12
	movq	_V4L2_BUF_FLAG_PFRAME@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	(%r12), %eax
	movq	_V4L2_BUF_FLAG_BFRAME@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	andl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_vop_type
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_vop_mpeg_size
	movq	%rax, %rdx
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r15d
	movl	(%r12), %eax
	orl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_vop_mpeg_size
	movslq	(%rbx), %rdx
	addq	%rax, %rdx
LBB0_6:
	movq	%r14, %r12
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_set_plane_payload
	movq	%r14, %rdi
	callq	_vop_mpeg_offset
	movl	%eax, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_ADDR
	subl	%eax, %ebx
	movslq	%ebx, %rbx
	addq	$4, %rbx
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_SIZE
	movl	%eax, %ecx
	movslq	%eax, %rsi
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %r14
	jmp	LBB0_9
LBB0_7:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r14d
LBB0_9:
	movq	%r12, %rdi
	callq	_vop_mpeg_size
	movslq	%r15d, %rbx
	leaq	(%rax,%rbx), %rdi
	movq	_DMA_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_ADDR
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_SIZE
	movl	%eax, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	callq	_solo_send_desc
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ## @V4L2_BUF_FLAG_KEYFRAME
	.comm	_V4L2_BUF_FLAG_PFRAME,4,2       ## @V4L2_BUF_FLAG_PFRAME
	.comm	_V4L2_BUF_FLAG_BFRAME,4,2       ## @V4L2_BUF_FLAG_BFRAME
	.comm	_DMA_ALIGN,4,2                  ## @DMA_ALIGN
	.no_dead_strip	_solo_fill_mpeg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_fill_mpeg
_solo_fill_mpeg:                        ; @solo_fill_mpeg
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_to_vb2_v4l2_buffer
	mov	x25, x0
	ldr	x20, [x19, #8]
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_dma_sg_plane_desc
	mov	x21, x0
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_plane_size
	mov	x24, x0
	mov	x0, x22
	bl	_vop_mpeg_size
	cmp	x24, x0
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	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_2:
Lloh3:
	adrp	x26, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGE
Lloh4:
	ldr	x26, [x26, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh5:
	adrp	x24, _V4L2_BUF_FLAG_PFRAME@GOTPAGE
Lloh6:
	ldr	x24, [x24, _V4L2_BUF_FLAG_PFRAME@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh7:
	adrp	x10, _V4L2_BUF_FLAG_BFRAME@GOTPAGE
Lloh8:
	ldr	x10, [x10, _V4L2_BUF_FLAG_BFRAME@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh9:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x25]
	bic	w8, w9, w8
	str	w8, [x25]
	mov	x0, x22
	bl	_vop_type
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	mov	x0, x22
	bl	_vop_mpeg_size
	mov	x2, x0
	mov	w24, #0
	b	LBB0_5
LBB0_4:
	ldr	w24, [x19]
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	mov	x0, x22
	bl	_vop_mpeg_size
	ldrsw	x8, [x19]
	add	x2, x0, x8
LBB0_5:
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_set_plane_payload
	mov	x0, x22
	bl	_vop_mpeg_offset
	mov	x23, x0
	mov	x0, x20
	bl	_SOLO_MP4E_EXT_ADDR
	sub	w8, w23, w0
	sxtw	x8, w8
	add	x23, x8, #4
	mov	x0, x20
	bl	_SOLO_MP4E_EXT_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	udiv	x8, x23, x8
	msub	w23, w8, w0, w23
	mov	x0, x22
	bl	_vop_mpeg_size
	add	x0, x0, w24, sxtw
Lloh10:
	adrp	x8, _DMA_ALIGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_ALIGN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x22, x0
	mov	x0, x20
	bl	_SOLO_MP4E_EXT_ADDR
	mov	x25, x0
	mov	x0, x20
	bl	_SOLO_MP4E_EXT_SIZE
	mov	x6, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	mov	x5, x25
	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
	b	_solo_send_desc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ; @V4L2_BUF_FLAG_KEYFRAME
	.comm	_V4L2_BUF_FLAG_PFRAME,4,2       ; @V4L2_BUF_FLAG_PFRAME
	.comm	_V4L2_BUF_FLAG_BFRAME,4,2       ; @V4L2_BUF_FLAG_BFRAME
	.comm	_DMA_ALIGN,4,2                  ; @DMA_ALIGN
	.no_dead_strip	_solo_fill_mpeg
.subsections_via_symbols
