	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpu_streamon
_jpu_streamon:                          ## @jpu_streamon
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r13
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_jpu_get_q_data
	movq	%rax, %r12
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_jpu_get_q_data
	cmpq	$0, 16(%r13)
	movq	%r12, %rbx
	cmoveq	%rax, %rbx
	cmoveq	%r12, %rax
	cmoveq	%r15, %r14
	movl	(%r14), %ecx
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	___jpu_try_fmt
	movq	-64(%rbp), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_2
## %bb.3:
	movl	(%r13), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_v4l2_m2m_streamon
	movl	%eax, %r12d
	jmp	LBB0_4
LBB0_2:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"src and dst formats do not match.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_jpu_streamon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpu_streamon
_jpu_streamon:                          ; @jpu_streamon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x21, x0
Lloh0:
	adrp	x24, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_jpu_get_q_data
	mov	x22, x0
Lloh2:
	adrp	x25, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_jpu_get_q_data
	ldr	x8, [x21, #16]
	cmp	x8, #0
	csel	x23, x0, x22, eq
	csel	x8, x22, x0, eq
	csel	x9, x25, x24, eq
	ldr	w3, [x9]
	ldr	q0, [x8]
	str	q0, [sp]
	mov	x2, sp
	mov	x0, x21
	mov	x1, #0
	bl	___jpu_try_fmt
	ldr	x8, [sp]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_v4l2_m2m_streamon
	b	LBB0_4
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"src and dst formats do not match.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_jpu_streamon
.subsections_via_symbols
