	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_try_fmt_vid_out
_vpif_try_fmt_vid_out:                  ## @vpif_try_fmt_vid_out
	.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	%rdx, %rbx
	callq	_video_devdata
	movq	%rax, %rdi
	callq	_video_get_drvdata
	movq	(%rax), %r14
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	(%rbx), %rcx
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	leaq	(%r15,%r15,2), %rcx
	movq	(%r14,%rcx,8), %rcx
	movq	%rcx, (%rbx)
LBB0_2:
	movq	%rax, %rdi
	callq	_vpif_update_resolution
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	leaq	(%r15,%r15,2), %rax
	movl	20(%r14,%rax,8), %ecx
	movl	%ecx, 28(%rbx)
	movl	16(%r14,%rax,8), %ecx
	movl	%ecx, 24(%rbx)
	movl	8(%r14,%rax,8), %ecx
	movl	%ecx, 8(%rbx)
	movl	%ecx, 12(%rbx)
	movl	12(%r14,%rax,8), %eax
	movl	%eax, 16(%rbx)
	imull	%eax, %ecx
	addl	%ecx, %ecx
	movl	%ecx, 20(%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_V4L2_PIX_FMT_YUV422P,8,3       ## @V4L2_PIX_FMT_YUV422P
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vpif_try_fmt_vid_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_try_fmt_vid_out
_vpif_try_fmt_vid_out:                  ; @vpif_try_fmt_vid_out
	.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	_video_devdata
	bl	_video_get_drvdata
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #24
	mul	x8, x21, x8
	ldr	x8, [x20, x8]
	str	x8, [x19]
LBB0_2:
	bl	_vpif_update_resolution
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w8, #24
	madd	x8, x21, x8, x20
	ldr	d0, [x8, #16]
	str	d0, [x19, #24]
	ldp	w9, w8, [x8, #8]
	stp	w9, w9, [x19, #8]
	mul	w9, w9, w8
	lsl	w9, w9, #1
	stp	w8, w9, [x19, #16]
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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_V4L2_PIX_FMT_YUV422P,8,3       ; @V4L2_PIX_FMT_YUV422P
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vpif_try_fmt_vid_out
.subsections_via_symbols
