	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_g_fmt_vid_cap
_cx18_g_fmt_vid_cap:                    ## @cx18_g_fmt_vid_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_fh2id
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movq	8(%rax), %rcx
	movl	4(%rax), %esi
	movl	%esi, 32(%rbx)
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_CX18_ENC_STREAM_TYPE_YUV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_1
## %bb.2:
	leaq	(%rdx,%rdx,2), %rsi
	leaq	(%rcx,%rsi,8), %rdx
	addq	$16, %rdx
	movl	(%rcx,%rsi,8), %eax
	movq	8(%rcx,%rsi,8), %rcx
	jmp	LBB0_3
LBB0_1:
	movl	$131072, %eax                   ## imm = 0x20000
	movq	_V4L2_PIX_FMT_MPEG@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
LBB0_3:
	movl	(%rdx), %edx
	movl	%edx, 16(%rbx)
	movl	%eax, (%rbx)
	movq	%rcx, 8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_CX18_ENC_STREAM_TYPE_YUV,8,3   ## @CX18_ENC_STREAM_TYPE_YUV
	.comm	_V4L2_PIX_FMT_MPEG,4,2          ## @V4L2_PIX_FMT_MPEG
	.no_dead_strip	_cx18_g_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_g_fmt_vid_cap
_cx18_g_fmt_vid_cap:                    ; @cx18_g_fmt_vid_cap
	.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, x2
	mov	x0, x1
	bl	_fh2id
	ldp	x8, x10, [x0]
	ldr	x9, [x10, #8]
	ldr	d0, [x10]
	stur	d0, [x19, #28]
Lloh0:
	adrp	x10, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh4:
	ldr	x11, [x11, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	stp	w11, w10, [x19, #20]
Lloh6:
	adrp	x10, _CX18_ENC_STREAM_TYPE_YUV@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CX18_ENC_STREAM_TYPE_YUV@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
	mov	w10, #24
	madd	x8, x8, x10, x9
	add	x10, x8, #16
	ldr	w9, [x8]
	ldr	x8, [x8, #8]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
	mov	w9, #131072
Lloh9:
	adrp	x10, _V4L2_PIX_FMT_MPEG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_PIX_FMT_MPEG@GOTPAGEOFF]
LBB0_3:
	ldr	w10, [x10]
	str	w10, [x19, #16]
	str	w9, [x19]
	str	x8, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_CX18_ENC_STREAM_TYPE_YUV,8,3   ; @CX18_ENC_STREAM_TYPE_YUV
	.comm	_V4L2_PIX_FMT_MPEG,4,2          ; @V4L2_PIX_FMT_MPEG
	.no_dead_strip	_cx18_g_fmt_vid_cap
.subsections_via_symbols
