	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdec_g_fmt
_vdec_g_fmt:                            ## @vdec_g_fmt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_to_inst
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_1
## %bb.2:
	movq	40(%rbx), %r15
	movq	%rbx, %rdi
	callq	_vdec_check_src_change
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	(%r14), %rax
	movq	(%r12), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	32(%rbx), %r15
LBB0_4:
	movl	(%r15), %edx
	movl	%edx, 32(%r14)
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	movl	20(%rbx), %eax
	movl	%eax, 28(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 24(%r14)
	movsd	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	movlhps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movups	%xmm0, 8(%r14)
	jmp	LBB0_8
LBB0_6:
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	4(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vdec_try_fmt_common
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.no_dead_strip	_vdec_g_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdec_g_fmt
_vdec_g_fmt:                            ; @vdec_g_fmt
	.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	x19, x2
	bl	_to_inst
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x21, [x20, #40]
	mov	x0, x20
	bl	_vdec_check_src_change
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x22]
	b	LBB0_4
LBB0_3:
	ldr	x21, [x20, #32]
LBB0_4:
	ldr	w10, [x21]
	str	w10, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	d0, [x20, #16]
	str	d0, [x19, #24]
	ldr	d0, [x20, #24]
	ldr	d1, [x20, #8]
	mov.d	v0[1], v1[0]
	stur	q0, [x19, #8]
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	d0, [x20]
	str	d0, [x19, #8]
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_vdec_try_fmt_common
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.no_dead_strip	_vdec_g_fmt
.subsections_via_symbols
