	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_fill_jpeg
_solo_fill_jpeg:                        ## @solo_fill_jpeg
	.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, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r15
	movq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_sg_plane_desc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_V4L2_BUF_FLAG_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%rbx, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_size
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_vop_jpeg_size
	addq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_vop_jpeg_size
	addq	(%r13), %rax
	movq	_DMA_ALIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_vop_jpeg_size
	addq	(%r13), %rax
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_vb2_set_plane_payload
	movq	(%r13), %r14
	movq	%r15, %rdi
	callq	_vop_jpeg_offset
	movq	%rax, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SOLO_JPEG_EXT_ADDR
	subq	%rax, %r12
	movq	%rbx, %rdi
	callq	_SOLO_JPEG_EXT_ADDR
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_SOLO_JPEG_EXT_SIZE
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%r15, %r9
	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	_V4L2_BUF_FLAG_KEYFRAME,4,2     ## @V4L2_BUF_FLAG_KEYFRAME
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DMA_ALIGN,4,2                  ## @DMA_ALIGN
	.no_dead_strip	_solo_fill_jpeg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_fill_jpeg
_solo_fill_jpeg:                        ; @solo_fill_jpeg
	.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	x24, x0
	ldr	x20, [x19, #8]
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_dma_sg_plane_desc
	mov	x21, x0
Lloh0:
	adrp	x8, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_plane_size
	mov	x24, x0
	mov	x0, x22
	bl	_vop_jpeg_size
	ldr	x8, [x19]
	add	x8, x8, x0
	cmp	x24, x8
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	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:
	mov	x0, x22
	bl	_vop_jpeg_size
	ldr	x8, [x19]
	add	x0, x8, x0
Lloh6:
	adrp	x8, _DMA_ALIGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_ALIGN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x24, x0
	mov	x0, x22
	bl	_vop_jpeg_size
	ldr	x8, [x19]
	add	x2, x8, x0
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_set_plane_payload
	ldr	x23, [x19]
	mov	x0, x22
	bl	_vop_jpeg_offset
	mov	x22, x0
	mov	x0, x20
	bl	_SOLO_JPEG_EXT_ADDR
	sub	x22, x22, x0
	mov	x0, x20
	bl	_SOLO_JPEG_EXT_ADDR
	mov	x25, x0
	mov	x0, x20
	bl	_SOLO_JPEG_EXT_SIZE
	mov	x6, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ; @V4L2_BUF_FLAG_KEYFRAME
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DMA_ALIGN,4,2                  ; @DMA_ALIGN
	.no_dead_strip	_solo_fill_jpeg
.subsections_via_symbols
