	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_set_fmt
_tw9910_set_fmt:                        ## @tw9910_set_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_to_tw9910
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	16(%rbx), %r12
	movq	(%r12), %rdx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rsi
	movq	_V4L2_FIELD_INTERLACED_BT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rsi), %rdx
	jne	LBB0_7
## %bb.3:
	movq	%rcx, (%r12)
	jmp	LBB0_4
LBB0_7:
	cmpq	%rcx, %rdx
	jne	LBB0_8
LBB0_4:
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movl	(%rax), %edi
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	callq	_tw9910_select_norm
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movl	4(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	(%rbx), %rax
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw9910_s_fmt                   ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_1
LBB0_9:
	movq	16(%r12), %rax
	movq	%rax, 16(%r14)
	movups	(%r12), %xmm0
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ## @V4L2_FIELD_INTERLACED_BT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Field type %d invalid\n"

	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_tw9910_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_set_fmt
_tw9910_set_fmt:                        ; @tw9910_set_fmt
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	mov	x23, x0
	bl	_to_tw9910
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	add	x22, x21, #16
Lloh3:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
	ldr	x2, [x22]
Lloh5:
	ldr	x9, [x8]
Lloh6:
	adrp	x8, _V4L2_FIELD_INTERLACED_BT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED_BT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x9
	b.ne	LBB0_5
; %bb.4:
	str	x8, [x22]
	b	LBB0_6
LBB0_5:
	cmp	x2, x8
	b.ne	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #32]
	ldr	w0, [x0]
	ldp	w2, w1, [x21, #24]
	bl	_tw9910_select_norm
	cbz	x0, LBB0_1
; %bb.7:
	ldr	d0, [x0]
	str	d0, [x21, #24]
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x22
	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
	b	_tw9910_s_fmt
LBB0_9:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_1
LBB0_10:
	mov	w0, #0
	ldr	q0, [x22]
	ldr	x8, [x22, #16]
	str	x8, [x19, #16]
	str	q0, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ; @V4L2_FIELD_INTERLACED_BT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Field type %d invalid\n"

	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_tw9910_set_fmt
.subsections_via_symbols
