	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_get_selection
_tw9910_get_selection:                  ## @tw9910_get_selection
	.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	%rdx, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %rdi
	callq	_to_tw9910
	movq	(%rbx), %rcx
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_V4L2_SEL_TGT_CROP_BOUNDS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movabsq	$2061584302720, %rax            ## imm = 0x1E000000280
	jmp	LBB0_6
LBB0_5:
	movabsq	$2473901163264, %rax            ## imm = 0x24000000300
LBB0_6:
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SEL_TGT_CROP_BOUNDS,8,3   ## @V4L2_SEL_TGT_CROP_BOUNDS
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.no_dead_strip	_tw9910_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tw9910_get_selection
lCPI0_0:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
lCPI0_1:
	.long	768                             ; 0x300
	.long	576                             ; 0x240
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tw9910_get_selection:                  ; @tw9910_get_selection
	.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, x2
	bl	_v4l2_get_subdevdata
	bl	_to_tw9910
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _V4L2_SEL_TGT_CROP_BOUNDS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP_BOUNDS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	stp	xzr, xzr, [x19, #24]
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
Lloh14:
	adrp	x8, lCPI0_1@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
LBB0_6:
	str	d0, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SEL_TGT_CROP_BOUNDS,8,3   ; @V4L2_SEL_TGT_CROP_BOUNDS
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.no_dead_strip	_tw9910_get_selection
.subsections_via_symbols
