	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_g_fmt_vid_cap
_saa7134_g_fmt_vid_cap:                 ## @saa7134_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
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	16(%rax), %esi
	movl	%esi, 24(%rbx)
	movq	8(%rax), %rax
	movl	16(%rax), %esi
	movl	%esi, 20(%rbx)
	cmpq	$0, 8(%rax)
	movl	%edx, %esi
	jne	LBB0_2
## %bb.1:
	movl	(%rax), %edi
	imull	%edx, %edi
	leal	7(%rdi), %esi
	testl	%edi, %edi
	cmovnsl	%edi, %esi
	sarl	$3, %esi
LBB0_2:
	movl	%esi, 8(%rbx)
	imull	%edx, %ecx
	imull	(%rax), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %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_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_saa7134_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 saa7134_g_fmt_vid_cap
_saa7134_g_fmt_vid_cap:                 ; @saa7134_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
	ldp	w8, w9, [x0]
	stp	w8, w9, [x19]
	ldr	w11, [x0, #16]
	ldr	x10, [x0, #8]
	ldr	w12, [x10, #16]
	stp	w12, w11, [x19, #20]
	ldr	x12, [x10, #8]
	mov	x11, x8
	cbnz	x12, LBB0_2
; %bb.1:
	ldr	w11, [x10]
	mul	w11, w11, w8
	add	w12, w11, #7
	cmp	w11, #0
	csel	w11, w12, w11, lt
	asr	w11, w11, #3
LBB0_2:
	str	w11, [x19, #8]
	mul	w8, w9, w8
	ldr	w9, [x10]
	mul	w8, w8, w9
	add	w9, w8, #7
Lloh0:
	adrp	x10, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w9, w8, lt
Lloh2:
	ldr	w9, [x10]
	asr	w8, w8, #3
	stp	w8, w9, [x19, #12]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_saa7134_g_fmt_vid_cap
.subsections_via_symbols
