	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_s_fmt
_tw9910_s_fmt:                          ## @tw9910_s_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	24(%rsi), %rax
	movq	%rax, -32(%rbp)
	movq	16(%rsi), %rax
	movq	%rax, -24(%rbp)
	movq	(%rsi), %rax
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_V4L2_FIELD_INTERLACED_BT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	%rdi, %r14
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	movq	8(%rbx), %rax
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_tw9910_set_frame
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	-24(%rbp), %rax
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ## @V4L2_FIELD_INTERLACED_BT
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,8,3    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_tw9910_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_s_fmt
_tw9910_s_fmt:                          ; @tw9910_s_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldp	x9, x8, [x1, #16]
	stp	x9, x8, [sp]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _V4L2_FIELD_INTERLACED_BT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED_BT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_tw9910_set_frame
	cbnz	w0, LBB0_4
; %bb.2:
	ldp	x9, x8, [sp]
	stp	x9, x8, [x19, #16]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ; @V4L2_FIELD_INTERLACED_BT
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,8,3    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_tw9910_s_fmt
.subsections_via_symbols
