	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_fmt_vid_cap
_vidioc_g_fmt_vid_cap:                  ## @vidioc_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
	callq	_video_drvdata
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movl	4(%rax), %edx
	movl	%edx, (%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 4(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_NUM_LINES_1CIFS_PAL@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_NUM_LINES_1CIFS_NTSC@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	(%rsi), %esi
	addl	%esi, %esi
	cmpl	%esi, %ecx
	jge	LBB0_4
## %bb.5:
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rsi
LBB0_6:
	movl	(%rsi), %esi
	movl	%esi, 24(%rbx)
	movq	16(%rax), %rax
	movl	4(%rax), %esi
	movl	%esi, 20(%rbx)
	movl	(%rax), %eax
	sarl	$3, %eax
	imull	%edx, %eax
	movl	%eax, 8(%rbx)
	imull	%ecx, %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_NUM_LINES_1CIFS_NTSC,4,2       ## @NUM_LINES_1CIFS_NTSC
	.comm	_NUM_LINES_1CIFS_PAL,4,2        ## @NUM_LINES_1CIFS_PAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_FIELD_TOP,4,2             ## @V4L2_FIELD_TOP
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_vidioc_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 vidioc_g_fmt_vid_cap
_vidioc_g_fmt_vid_cap:                  ; @vidioc_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
	bl	_video_drvdata
Lloh0:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	ldr	w11, [x0, #8]
	stp	w10, w11, [x19]
Lloh3:
	adrp	x12, _NUM_LINES_1CIFS_NTSC@GOTPAGE
Lloh4:
	ldr	x12, [x12, _NUM_LINES_1CIFS_NTSC@GOTPAGEOFF]
Lloh5:
	adrp	x13, _NUM_LINES_1CIFS_PAL@GOTPAGE
Lloh6:
	ldr	x13, [x13, _NUM_LINES_1CIFS_PAL@GOTPAGEOFF]
	tst	w8, w9
	csel	x8, x13, x12, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _V4L2_FIELD_TOP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_FIELD_TOP@GOTPAGEOFF]
Lloh9:
	adrp	x12, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh10:
	ldr	x12, [x12, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
	cmp	w11, w8, lsl #1
	csel	x8, x9, x12, lt
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x0, #16]
	ldp	w8, w9, [x8]
	asr	w8, w8, #3
	mul	w8, w8, w10
	mul	w10, w8, w11
	stp	w8, w10, [x19, #8]
Lloh11:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #16]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_NUM_LINES_1CIFS_NTSC,4,2       ; @NUM_LINES_1CIFS_NTSC
	.comm	_NUM_LINES_1CIFS_PAL,4,2        ; @NUM_LINES_1CIFS_PAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_FIELD_TOP,4,2             ; @V4L2_FIELD_TOP
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_vidioc_g_fmt_vid_cap
.subsections_via_symbols
