	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_fmt
_vidioc_g_fmt:                          ## @vidioc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	movl	(%rsi), %esi
	callq	_v4l2_m2m_get_vq
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_get_q_data
	movl	(%r15), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_7
## %bb.2:
	movq	16(%rax), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_5:
	movq	_multiplanar@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_7
## %bb.6:
	movl	(%rax), %edx
	movl	%edx, 8(%r15)
	movl	8(%rax), %esi
	movl	%esi, 56(%r15)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 48(%r15)
	movl	4(%rcx), %esi
	movl	%esi, 44(%r15)
	movl	$1, 12(%r15)
	imull	(%rcx), %edx
	movq	16(%r15), %rcx
	movl	%edx, (%rcx)
	movl	4(%rax), %eax
	movl	%eax, 8(%rcx)
	movups	(%r14), %xmm0
	movups	%xmm0, 28(%r15)
	movl	24(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_8
LBB0_3:
	movq	_multiplanar@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_4
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rax), %edx
	movl	%edx, 64(%r15)
	movl	8(%rax), %esi
	movl	%esi, 104(%r15)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 96(%r15)
	movl	4(%rcx), %esi
	movl	%esi, 92(%r15)
	imull	(%rcx), %edx
	movl	%edx, 68(%r15)
	movl	4(%rax), %eax
	movl	%eax, 88(%r15)
	movups	(%r14), %xmm0
	movups	%xmm0, 72(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_multiplanar,4,2                ## @multiplanar
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_g_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_fmt
_vidioc_g_fmt:                          ; @vidioc_g_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x1]
	bl	_v4l2_m2m_get_vq
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_get_q_data
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.2:
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh2:
	adrp	x8, _multiplanar@GOTPAGE
Lloh3:
	ldr	x8, [x8, _multiplanar@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w8, [x0, #8]
Lloh5:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
	str	w8, [x19, #56]
Lloh7:
	ldr	x8, [x10]
	str	x8, [x19, #48]
	ldp	w9, w8, [x9]
	str	w8, [x19, #44]
	mov	w8, #1
	ldp	w10, w11, [x0]
	stp	w10, w8, [x19, #8]
	mul	w8, w9, w10
	ldr	x9, [x19, #16]
	str	w8, [x9]
	str	w11, [x9, #8]
	ldr	q0, [x20]
	stur	q0, [x19, #28]
	ldr	w0, [x19, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #0
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _multiplanar@GOTPAGE
Lloh9:
	ldr	x8, [x8, _multiplanar@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w10, [x0, #8]
	str	w10, [x19, #104]
Lloh14:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	str	x10, [x19, #96]
	ldp	w9, w10, [x9]
	ldp	w11, w12, [x0]
	mul	w9, w9, w11
	stp	w11, w9, [x19, #64]
	stp	w12, w10, [x19, #88]
	ldr	q0, [x20]
	stur	q0, [x19, #72]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_multiplanar,4,2                ; @multiplanar
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_g_fmt
.subsections_via_symbols
