	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmcam_model3_parse_lines
_ibmcam_model3_parse_lines:             ## @ibmcam_model3_parse_lines
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$-32768, %ebx                   ## imm = 0x8000
	movl	20(%rdi), %eax
	addl	%ebx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_hue_correction@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leal	-128(%r13), %eax
	addl	$-125, %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r14
	addl	24(%rdi), %ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	sarl	$8, %ebx
	movl	%ebx, %edi
	movl	$-128, %esi
	movl	$129, %edx
	callq	_RESTRICT_TO_RANGE
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_X
	movq	_V4L_BYTES_PER_PIXEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r14), %esi
	cmpl	$713, %esi                      ## imm = 0x2C9
	jle	LBB0_1
## %bb.7:
	cmpl	$775, %esi                      ## imm = 0x307
	jle	LBB0_8
## %bb.11:
	cmpl	$776, %esi                      ## imm = 0x308
	je	LBB0_12
## %bb.13:
	cmpl	$808, %esi                      ## imm = 0x328
	je	LBB0_15
## %bb.14:
	cmpl	$872, %esi                      ## imm = 0x368
	je	LBB0_15
	jmp	LBB0_10
LBB0_1:
	cmpl	$551, %esi                      ## imm = 0x227
	jg	LBB0_5
## %bb.2:
	cmpl	$520, %esi                      ## imm = 0x208
	je	LBB0_17
## %bb.3:
	cmpl	$522, %esi                      ## imm = 0x20A
	jne	LBB0_10
## %bb.4:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	$120, %esi
	movl	$160, %r8d
	jmp	LBB0_18
LBB0_8:
	cmpl	$714, %esi                      ## imm = 0x2CA
	je	LBB0_15
## %bb.9:
	cmpl	$746, %esi                      ## imm = 0x2EA
	je	LBB0_15
	jmp	LBB0_10
LBB0_5:
	cmpl	$552, %esi                      ## imm = 0x228
	je	LBB0_15
## %bb.6:
	cmpl	$616, %esi                      ## imm = 0x268
	jne	LBB0_10
LBB0_15:
	leaq	L_.str(%rip), %rdi
LBB0_16:
	callq	_err
	movq	_scan_NextFrame@GOTPCREL(%rip), %r12
LBB0_45:
	movl	(%r12), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	$480, %esi                      ## imm = 0x1E0
	movl	$640, %r8d                      ## imm = 0x280
	jmp	LBB0_18
LBB0_17:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	$240, %esi
	movl	$320, %r8d                      ## imm = 0x140
LBB0_18:
	movl	4(%r14), %edx
	leal	1(%rdx), %ecx
	cmpl	%esi, %ecx
	jge	LBB0_19
## %bb.21:
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	leal	(%r8,%r8,2), %r15d
	movl	$1, %edi
	movq	%r8, %r12
	callq	_assert
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_RingQueue_GetLength
	cmpl	%r15d, %eax
	jae	LBB0_23
## %bb.22:
	movq	_scan_Out@GOTPCREL(%rip), %r12
	jmp	LBB0_45
LBB0_19:
	movq	_scan_NextFrame@GOTPCREL(%rip), %r12
	cmpl	$3, (%r15)
	jl	LBB0_45
## %bb.20:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_44
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_16
LBB0_23:
	sarl	$10, -52(%rbp)                  ## 4-byte Folded Spill
	sarl	$2, %r13d
	leaq	_ibmcam_model3_parse_lines.lineBuffer(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_RingQueue_Dequeue
	movl	%r12d, %r12d
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_Y
	movl	4(%r14), %r15d
	movl	8(%r14), %edi
	notl	%r15d
	addl	%eax, %r15d
	callq	_VIDEOSIZE_Y
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	xorl	%ebx, %ebx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_RESTRICT_TO_RANGE
	subl	$-128, -48(%rbp)                ## 4-byte Folded Spill
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_X
	testl	%eax, %eax
	jle	LBB0_31
## %bb.24:
	xorl	%r15d, %r15d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=1
	callq	_RGB24_PUTPIXEL
	incq	%r15
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_X
	cltq
	addl	$2, %ebx
	cmpq	%rax, %r15
	jge	LBB0_31
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %r15
	jae	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	%ebx, %eax
	movl	%eax, %ecx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	addq	%r12, %rcx
	leaq	_ibmcam_model3_parse_lines.lineBuffer(%rip), %rdx
	movzbl	(%rdx,%rcx), %esi
	addl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	orq	$2, %rax
	addq	%r12, %rax
	movzbl	(%rdx,%rax), %edx
	addl	%r13d, %edx
	cmpl	$256, -56(%rbp)                 ## 4-byte Folded Reload
                                        ## imm = 0x100
	jb	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	addl	$-128, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %esi
	leal	127(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$7, %eax
	subl	$-128, %eax
	addl	$-128, %edx
	imull	%ecx, %edx
	leal	127(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$7, %ecx
	subl	$-128, %ecx
	movl	%ecx, %edx
	movl	%eax, %esi
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	leaq	_ibmcam_model3_parse_lines.lineBuffer(%rip), %rax
	movzbl	(%r15,%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_YUV_TO_RGB_BY_THE_BOOK
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
                                        ## implicit-def: $ecx
                                        ## implicit-def: $cx
                                        ## implicit-def: $cl
                                        ## implicit-def: $ch
                                        ## implicit-def: $hcx
                                        ## implicit-def: $r8d
                                        ## implicit-def: $r8w
                                        ## implicit-def: $r8b
                                        ## implicit-def: $r8bh
                                        ## implicit-def: $r8wh
                                        ## implicit-def: $r9d
                                        ## implicit-def: $r9w
                                        ## implicit-def: $r9b
                                        ## implicit-def: $r9bh
                                        ## implicit-def: $r9wh
	jmp	LBB0_30
LBB0_31:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_40
## %bb.32:
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_X
	testl	%eax, %eax
	jle	LBB0_40
## %bb.33:
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	leaq	_ibmcam_model3_parse_lines.lineBuffer(%rip), %rax
	addq	%r12, %rax
	incq	%rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_39:                                ##   in Loop: Header=BB0_34 Depth=1
	callq	_RGB24_PUTPIXEL
	incq	%rbx
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_X
	cltq
	addq	$2, %r15
	cmpq	%rax, %rbx
	jge	LBB0_40
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rbx
	jae	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	%r15d, %eax
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	addq	%r12, %rax
	leaq	_ibmcam_model3_parse_lines.lineBuffer(%rip), %rcx
	movzbl	(%rcx,%rax), %esi
	addl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	movl	%r15d, %eax
	andl	$-4, %eax
	addq	%r12, %rax
	movzbl	2(%rax,%rcx), %edx
	addl	%r13d, %edx
	cmpl	$256, -56(%rbp)                 ## 4-byte Folded Reload
                                        ## imm = 0x100
	jb	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_34 Depth=1
	addl	$-128, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %esi
	leal	127(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$7, %eax
	subl	$-128, %eax
	addl	$-128, %edx
	imull	%ecx, %edx
	leal	127(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$7, %ecx
	subl	$-128, %ecx
	movl	%ecx, %edx
	movl	%eax, %esi
LBB0_38:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%r15), %edi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_YUV_TO_RGB_BY_THE_BOOK
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
                                        ## implicit-def: $ecx
                                        ## implicit-def: $cx
                                        ## implicit-def: $cl
                                        ## implicit-def: $ch
                                        ## implicit-def: $hcx
                                        ## implicit-def: $r8d
                                        ## implicit-def: $r8w
                                        ## implicit-def: $r8b
                                        ## implicit-def: $r8bh
                                        ## implicit-def: $r8wh
                                        ## implicit-def: $r9d
                                        ## implicit-def: $r9w
                                        ## implicit-def: $r9b
                                        ## implicit-def: $r9bh
                                        ## implicit-def: $r9wh
	jmp	LBB0_39
LBB0_40:
	movq	_Deinterlace_None@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	4(%r14), %ebx
	addl	$2, %ebx
	movl	%ebx, 4(%r14)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%eax, %eax
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, (%rcx)
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_Y
	cmpl	%eax, %ebx
	jge	LBB0_42
## %bb.41:
	movq	_scan_Continue@GOTPCREL(%rip), %r12
	jmp	LBB0_45
LBB0_42:
	movq	_scan_NextFrame@GOTPCREL(%rip), %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$3, (%rax)
	jl	LBB0_45
## %bb.43:
	movq	8(%rax), %r15
	movl	8(%r14), %edi
	callq	_VIDEOSIZE_Y
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
LBB0_44:
	callq	_dev_info
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_hue_correction,4,2             ## @hue_correction
.zerofill __DATA,__bss,_ibmcam_model3_parse_lines.lineBuffer,1920,4 ## @ibmcam_model3_parse_lines.lineBuffer
	.comm	_V4L_BYTES_PER_PIXEL,4,2        ## @V4L_BYTES_PER_PIXEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported mode $%04lx"

	.comm	_scan_NextFrame,4,2             ## @scan_NextFrame
L_.str.1:                               ## @.str.1
	.asciz	"Strange frame->header=$%08lx"

L_.str.2:                               ## @.str.2
	.asciz	"Reached line %d. (frame is done)\n"

	.comm	_scan_Out,4,2                   ## @scan_Out
	.comm	_Deinterlace_None,4,2           ## @Deinterlace_None
L_.str.3:                               ## @.str.3
	.asciz	"All requested lines (%ld.) done.\n"

	.comm	_scan_Continue,4,2              ## @scan_Continue
	.no_dead_strip	_ibmcam_model3_parse_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmcam_model3_parse_lines
_ibmcam_model3_parse_lines:             ; @ibmcam_model3_parse_lines
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _hue_correction@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hue_correction@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #128
	sub	w8, w8, #125
	cmp	w9, #0
	csel	w21, w8, w9, lt
	ldp	w22, w8, [x0, #20]
	sub	w27, w8, #8, lsl #12            ; =32768
	asr	w25, w27, #8
	mov	x0, x25
	mov	w1, #-128
	mov	w2, #129
	bl	_RESTRICT_TO_RANGE
	ldr	w0, [x20, #8]
	bl	_VIDEOSIZE_X
Lloh3:
	adrp	x8, _V4L_BYTES_PER_PIXEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L_BYTES_PER_PIXEL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	ldr	w1, [x20]
	cmp	w1, #713
	b.le	LBB0_5
; %bb.1:
	cmp	w1, #775
	b.le	LBB0_9
; %bb.2:
	cmp	w1, #776
	b.eq	LBB0_17
; %bb.3:
	cmp	w1, #808
	b.eq	LBB0_13
; %bb.4:
	cmp	w1, #872
	b.eq	LBB0_13
	b	LBB0_24
LBB0_5:
	cmp	w1, #551
	b.gt	LBB0_11
; %bb.6:
	cmp	w1, #520
	b.eq	LBB0_18
; %bb.7:
	cmp	w1, #522
	b.ne	LBB0_24
; %bb.8:
	mov	w8, #120
	mov	w23, #160
	b	LBB0_19
LBB0_9:
	cmp	w1, #714
	b.eq	LBB0_13
; %bb.10:
	cmp	w1, #746
	b.eq	LBB0_13
	b	LBB0_24
LBB0_11:
	cmp	w1, #552
	b.eq	LBB0_13
; %bb.12:
	cmp	w1, #616
	b.ne	LBB0_24
LBB0_13:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	bl	_err
LBB0_15:
Lloh8:
	adrp	x8, _scan_NextFrame@GOTPAGE
Lloh9:
	ldr	x8, [x8, _scan_NextFrame@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	mov	w8, #480
	mov	w23, #640
	b	LBB0_19
LBB0_18:
	mov	w8, #240
	mov	w23, #320
LBB0_19:
	ldr	w2, [x20, #4]
	add	w9, w2, #1
	cmp	w9, w8
	b.ge	LBB0_22
; %bb.20:
	stp	w10, w0, [sp, #8]               ; 8-byte Folded Spill
	add	w24, w23, w23, lsl #1
	mov	w0, #1
	bl	_assert
	add	x26, x19, #16
	mov	x0, x26
	bl	_RingQueue_GetLength
	cmp	w0, w24
	b.hs	LBB0_25
; %bb.21:
Lloh10:
	adrp	x8, _scan_Out@GOTPAGE
Lloh11:
	ldr	x8, [x8, _scan_Out@GOTPAGEOFF]
	b	LBB0_16
LBB0_22:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.23:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_46
LBB0_24:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_25:
	str	x28, [sp]                       ; 8-byte Folded Spill
	sub	w8, w22, #8, lsl #12            ; =32768
	asr	w8, w8, #10
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	asr	w21, w21, #2
Lloh16:
	adrp	x22, _ibmcam_model3_parse_lines.lineBuffer@PAGE
Lloh17:
	add	x22, x22, _ibmcam_model3_parse_lines.lineBuffer@PAGEOFF
	mov	x0, x26
	mov	x1, x22
	mov	x2, x24
	bl	_RingQueue_Dequeue
	mov	w26, w23
	add	x28, x22, x26
	ldr	w0, [x20, #8]
	bl	_VIDEOSIZE_Y
	ldp	w9, w8, [x20, #4]
	mvn	w9, w9
	add	w24, w0, w9
	mov	x0, x8
	bl	_VIDEOSIZE_Y
	sub	w2, w0, #1
	mov	x0, x24
	mov	w1, #0
	bl	_RESTRICT_TO_RANGE
	add	w22, w25, #128
	ldr	w0, [x20, #8]
	bl	_VIDEOSIZE_X
	cmp	w0, #1
	b.lt	LBB0_33
; %bb.26:
	mov	w23, #0
	mov	x25, #0
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	bl	_RGB24_PUTPIXEL
	add	x25, x25, #1
	ldr	w0, [x20, #8]
	bl	_VIDEOSIZE_X
	add	w23, w23, #2
	cmp	x25, w0, sxtw
	b.ge	LBB0_33
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	cmp	x25, x26
	b.hs	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w8, w23
	and	x9, x8, #0x7ffffffc
	ldrb	w9, [x28, x9]
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	add	w1, w10, w9
	orr	x8, x8, #0x2
	ldrb	w8, [x28, x8]
	add	w2, w21, w8
	cmp	w27, #256
	b.lo	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	sub	w8, w1, #128
	mul	w8, w8, w22
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	add	w1, w8, #128
	sub	w8, w2, #128
	mul	w8, w8, w22
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	add	w2, w8, #128
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=1
Lloh18:
	adrp	x8, _ibmcam_model3_parse_lines.lineBuffer@PAGE
Lloh19:
	add	x8, x8, _ibmcam_model3_parse_lines.lineBuffer@PAGEOFF
	ldrb	w0, [x8, x25]
	bl	_YUV_TO_RGB_BY_THE_BOOK
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
                                        ; implicit-def: $w3
                                        ; implicit-def: $w4
                                        ; implicit-def: $w5
	b	LBB0_28
LBB0_33:
	cbz	w24, LBB0_42
; %bb.34:
	ldr	w0, [x20, #8]
	bl	_VIDEOSIZE_X
	cmp	w0, #1
	b.lt	LBB0_42
; %bb.35:
	mov	x23, #0
	mov	x25, #0
	sub	w24, w24, #1
Lloh20:
	adrp	x8, _ibmcam_model3_parse_lines.lineBuffer@PAGE
Lloh21:
	add	x8, x8, _ibmcam_model3_parse_lines.lineBuffer@PAGEOFF
	add	x8, x26, x8
	add	x8, x8, #1
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_38
LBB0_36:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	bl	_RGB24_PUTPIXEL
	add	x25, x25, #1
	ldr	w0, [x20, #8]
	bl	_VIDEOSIZE_X
	add	x23, x23, #2
	cmp	x25, w0, sxtw
	b.ge	LBB0_42
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	cmp	x25, x26
	b.hs	LBB0_36
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	and	x8, x23, #0x7ffffffc
	ldrb	w8, [x28, x8]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w1, w9, w8
	and	x8, x23, #0xfffffffc
	add	x8, x28, x8
	ldrb	w8, [x8, #2]
	add	w2, w21, w8
	cmp	w27, #256
	b.lo	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=1
	sub	w8, w1, #128
	mul	w8, w8, w22
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	add	w1, w8, #128
	sub	w8, w2, #128
	mul	w8, w8, w22
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	add	w2, w8, #128
LBB0_41:                                ;   in Loop: Header=BB0_38 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldrb	w0, [x8, x23]
	bl	_YUV_TO_RGB_BY_THE_BOOK
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
                                        ; implicit-def: $w3
                                        ; implicit-def: $w4
                                        ; implicit-def: $w5
	b	LBB0_37
LBB0_42:
Lloh22:
	adrp	x8, _Deinterlace_None@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Deinterlace_None@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	ldp	w8, w0, [x20, #4]
	add	w21, w8, #2
	str	w21, [x20, #4]
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	mul	w8, w8, w9
	lsl	w8, w8, #1
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	ldr	x9, [x10]
	add	x8, x9, w8, sxtw
	str	x8, [x10]
	bl	_VIDEOSIZE_Y
	cmp	w21, w0
	b.ge	LBB0_44
; %bb.43:
Lloh25:
	adrp	x8, _scan_Continue@GOTPAGE
Lloh26:
	ldr	x8, [x8, _scan_Continue@GOTPAGEOFF]
	b	LBB0_16
LBB0_44:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.45:
	ldr	x19, [x19, #8]
	ldr	w0, [x20, #8]
	bl	_VIDEOSIZE_Y
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
LBB0_46:
	bl	_dev_info
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_hue_correction,4,2             ; @hue_correction
.zerofill __DATA,__bss,_ibmcam_model3_parse_lines.lineBuffer,1920,0 ; @ibmcam_model3_parse_lines.lineBuffer
	.comm	_V4L_BYTES_PER_PIXEL,4,2        ; @V4L_BYTES_PER_PIXEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported mode $%04lx"

	.comm	_scan_NextFrame,4,2             ; @scan_NextFrame
l_.str.1:                               ; @.str.1
	.asciz	"Strange frame->header=$%08lx"

l_.str.2:                               ; @.str.2
	.asciz	"Reached line %d. (frame is done)\n"

	.comm	_scan_Out,4,2                   ; @scan_Out
	.comm	_Deinterlace_None,4,2           ; @Deinterlace_None
l_.str.3:                               ; @.str.3
	.asciz	"All requested lines (%ld.) done.\n"

	.comm	_scan_Continue,4,2              ; @scan_Continue
	.no_dead_strip	_ibmcam_model3_parse_lines
.subsections_via_symbols
