	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_try_fmt_vid_cap
_vino_try_fmt_vid_cap:                  ## @vino_try_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_vino_drvdata@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_spin_lock_irqsave
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
	movl	32(%rbx), %edi
	callq	_vino_find_data_format
	movq	%rax, -56(%rbp)
	movq	_VINO_DATA_FMT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_VINO_DATA_FMT_GREY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	_vino_data_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	8(%rcx,%rax,4), %eax
	movl	%eax, 32(%rbx)
LBB0_2:
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	leaq	-56(%rbp), %rdi
	callq	_vino_set_scaling
	movq	_vino_data_formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	-48(%rbp), %esi
	movl	-40(%rbp), %eax
	subl	-36(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, (%rbx)
	movl	-32(%rbp), %ecx
	subl	-28(%rbp), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, 4(%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%rbx)
	imull	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, 12(%rbx)
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested: w = %d, h = %d\n"

	.comm	_vino_drvdata,8,3               ## @vino_drvdata
	.comm	_VINO_DATA_FMT_NONE,8,3         ## @VINO_DATA_FMT_NONE
	.comm	_VINO_DATA_FMT_GREY,8,3         ## @VINO_DATA_FMT_GREY
	.comm	_vino_data_formats,8,3          ## @vino_data_formats
L_.str.1:                               ## @.str.1
	.asciz	"data format = %s\n"

	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.no_dead_strip	_vino_try_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_try_fmt_vid_cap
_vino_try_fmt_vid_cap:                  ; @vino_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldp	w1, w8, [x19]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x21, _vino_drvdata@GOTPAGE
Lloh3:
	ldr	x21, [x21, _vino_drvdata@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_spin_lock_irqsave
	add	x0, sp, #16
	mov	x1, x20
	mov	w2, #32
	bl	_memcpy
	ldr	x0, [x21]
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #32]
	bl	_vino_find_data_format
	str	x0, [sp, #16]
Lloh4:
	adrp	x8, _VINO_DATA_FMT_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VINO_DATA_FMT_NONE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x20, _vino_data_formats@GOTPAGE
Lloh8:
	ldr	x20, [x20, _vino_data_formats@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _VINO_DATA_FMT_GREY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VINO_DATA_FMT_GREY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x9, [x20]
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldr	w8, [x8, #8]
	str	w8, [x19, #32]
LBB0_2:
	ldp	w1, w2, [x19]
	add	x0, sp, #16
	bl	_vino_set_scaling
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	mov	w21, #12
	madd	x8, x9, x21, x8
	ldr	w1, [x8, #4]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldp	w8, w9, [sp, #32]
	sub	w8, w8, w9
	ldp	w9, w10, [sp, #24]
	sdiv	w8, w8, w9
	ldp	w11, w12, [sp, #40]
	sub	w11, w11, w12
	sdiv	w12, w11, w9
	stp	w8, w12, [x19]
Lloh14:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mul	w8, w10, w11
	sdiv	w8, w8, w9
	stp	w10, w8, [x19, #8]
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	mul	x9, x9, x21
	ldr	w8, [x8, x9]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested: w = %d, h = %d\n"

	.comm	_vino_drvdata,8,3               ; @vino_drvdata
	.comm	_VINO_DATA_FMT_NONE,8,3         ; @VINO_DATA_FMT_NONE
	.comm	_VINO_DATA_FMT_GREY,8,3         ; @VINO_DATA_FMT_GREY
	.comm	_vino_data_formats,8,3          ; @vino_data_formats
l_.str.1:                               ; @.str.1
	.asciz	"data format = %s\n"

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