	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_try_fmt
_tw9910_try_fmt:                        ## @tw9910_try_fmt
	.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	%rsi, %rbx
	callq	_v4l2_get_subdevdata
	movq	(%rax), %rdi
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rsi
	movl	16(%rbx), %edx
	movq	_V4L2_FIELD_INTERLACED_BT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edx, (%rsi)
	jne	LBB0_4
## %bb.1:
	movl	%ecx, 16(%rbx)
	jmp	LBB0_2
LBB0_4:
	cmpl	%edx, %ecx
	jne	LBB0_5
LBB0_2:
	movq	_V4L2_MBUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_tw9910_select_norm
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED_BT,4,2   ## @V4L2_FIELD_INTERLACED_BT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Field type %d invalid.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_MBUS_FMT_UYVY8_2X8,4,2    ## @V4L2_MBUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
	.no_dead_strip	_tw9910_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_try_fmt
_tw9910_try_fmt:                        ; @tw9910_try_fmt
	.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, x1
	bl	_v4l2_get_subdevdata
	mov	x8, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x9, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	ldr	w2, [x19, #16]
Lloh3:
	adrp	x9, _V4L2_FIELD_INTERLACED_BT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED_BT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w10, w2
	b.ne	LBB0_2
; %bb.1:
	str	w9, [x19, #16]
	b	LBB0_3
LBB0_2:
	cmp	w9, w2
	b.ne	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _V4L2_MBUS_FMT_UYVY8_2X8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_MBUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh8:
	adrp	x9, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldp	w2, w1, [x19]
	bl	_tw9910_select_norm
	cbz	x0, LBB0_6
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	ldr	d0, [x8]
	str	d0, [x19]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_err
LBB0_6:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED_BT,4,2   ; @V4L2_FIELD_INTERLACED_BT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Field type %d invalid.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_MBUS_FMT_UYVY8_2X8,4,2    ; @V4L2_MBUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
	.no_dead_strip	_tw9910_try_fmt
.subsections_via_symbols
