	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_s_fmt_vid_cap
_vino_s_fmt_vid_cap:                    ## @vino_s_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	_vino_drvdata@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_spin_lock_irqsave
	movl	40(%r14), %edi
	callq	_vino_find_data_format
	movq	_VINO_DATA_FMT_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_VINO_DATA_FMT_GREY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_vino_data_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rax,2), %rdx
	movl	8(%rcx,%rdx,4), %ecx
	movl	%ecx, 40(%r14)
	jmp	LBB0_3
LBB0_2:
	cltq
LBB0_3:
	movq	%rax, (%rbx)
	movq	32(%r14), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_vino_set_scaling
	movq	_vino_data_formats@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	32(%rbx), %rax
	subq	24(%rbx), %rax
	movq	%rax, 32(%r14)
	movl	16(%rbx), %eax
	subl	20(%rbx), %eax
	movl	%eax, (%r14)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r14)
	movl	8(%rbx), %ecx
	movl	%ecx, 4(%r14)
	imull	%ecx, %eax
	cltd
	idivl	12(%rbx)
	movl	%eax, 8(%r14)
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 24(%r14)
	movq	$0, 16(%r14)
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vino_drvdata,8,3               ## @vino_drvdata
	.comm	_VINO_DATA_FMT_NONE,4,2         ## @VINO_DATA_FMT_NONE
	.comm	_VINO_DATA_FMT_GREY,8,3         ## @VINO_DATA_FMT_GREY
	.comm	_vino_data_formats,8,3          ## @vino_data_formats
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data format = %s\n"

	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.no_dead_strip	_vino_s_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 vino_s_fmt_vid_cap
_vino_s_fmt_vid_cap:                    ; @vino_s_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x21, _vino_drvdata@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vino_drvdata@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #40]
	bl	_vino_find_data_format
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x8, _VINO_DATA_FMT_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VINO_DATA_FMT_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _vino_data_formats@GOTPAGE
Lloh6:
	ldr	x22, [x22, _vino_data_formats@GOTPAGEOFF]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _VINO_DATA_FMT_GREY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VINO_DATA_FMT_GREY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x22]
	mov	w10, #12
	madd	x9, x8, x10, x9
	ldr	w9, [x9, #8]
	str	w9, [x19, #40]
	b	LBB0_3
LBB0_2:
	sxtw	x8, w0
LBB0_3:
	str	x8, [x20]
	ldr	x1, [x19, #32]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_vino_set_scaling
	ldr	x8, [x22]
	ldr	x9, [x20]
	mov	w23, #12
	madd	x8, x9, x23, x8
	ldr	w1, [x8, #4]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldp	x9, x8, [x20, #24]
	sub	x8, x8, x9
	str	x8, [x19, #32]
	ldp	w8, w9, [x20, #16]
	sub	w8, w8, w9
	ldp	w9, w10, [x20, #8]
	stp	w8, w9, [x19]
	mul	w8, w9, w8
Lloh12:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
	sdiv	w8, w8, w10
Lloh14:
	ldr	w9, [x9]
	str	w8, [x19, #8]
	ldr	x8, [x22]
	ldr	x10, [x20]
	mul	x10, x10, x23
	ldr	w8, [x8, x10]
	stp	w8, w9, [x19, #24]
	str	xzr, [x19, #16]
	ldr	x0, [x21]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_vino_drvdata,8,3               ; @vino_drvdata
	.comm	_VINO_DATA_FMT_NONE,4,2         ; @VINO_DATA_FMT_NONE
	.comm	_VINO_DATA_FMT_GREY,8,3         ; @VINO_DATA_FMT_GREY
	.comm	_vino_data_formats,8,3          ; @vino_data_formats
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data format = %s\n"

	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.no_dead_strip	_vino_s_fmt_vid_cap
.subsections_via_symbols
