	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmcam_parse_lines
_ibmcam_parse_lines:                    ## @ibmcam_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$-32768, %r12d                  ## imm = 0x8000
	movl	8(%rdi), %r14d
	addl	%r12d, %r14d
	movq	_hue_correction@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-128(%rcx), %eax
	addl	$-125, %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_IBMCAM_T
	xorl	%edi, %edi
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	addl	12(%rbx), %r12d
	movl	%r12d, %edi
	sarl	$8, %edi
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	movl	$-128, %esi
	movl	$129, %edx
	callq	_RESTRICT_TO_RANGE
	movl	(%r13), %edi
	callq	_VIDEOSIZE_X
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_V4L_BYTES_PER_PIXEL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IBMCAM_T
	movq	(%rax), %rax
	movq	_IBMCAM_MODEL_4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$2, %eax
	ja	LBB0_7
## %bb.2:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_VIDEOSIZE_X
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_VIDEOSIZE_Y
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	$1, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$1, -76(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_3:
	movl	4(%r13), %esi
	leal	-131(%rsi), %eax
	cmpl	$3, %eax
	jae	LBB0_8
## %bb.4:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cltq
	leaq	l_switch.table.ibmcam_parse_lines(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	leaq	l_switch.table.ibmcam_parse_lines.2(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	leaq	l_switch.table.ibmcam_parse_lines.3(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	%rbx, %rdi
	callq	_IBMCAM_T
	movq	(%rax), %rax
	movq	_IBMCAM_MODEL_2@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
LBB0_5:
	leal	(%r15,%r15,2), %r14d
	xorl	%edi, %edi
	cmpl	$1921, %r14d                    ## imm = 0x781
	setb	%dil
	callq	_assert
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_RingQueue_GetLength
	cmpl	%r14d, %eax
	jae	LBB0_9
## %bb.6:
	movq	_scan_Out@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	movq	_scan_Out@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_32
LBB0_9:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	_ibmcam_parse_lines.lineBuffer(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_RingQueue_Dequeue
	movl	(%r13), %edi
	movl	8(%r13), %ebx
	addl	$2, %ebx
	callq	_VIDEOSIZE_Y
	cmpl	%eax, %ebx
	jge	LBB0_32
## %bb.10:
	movl	%r12d, -112(%rbp)               ## 4-byte Spill
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imulq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, 16(%r13)
	setne	%dil
	callq	_assert
	movq	16(%r13), %r14
	movslq	8(%r13), %rbx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_VIDEOSIZE_X
	testl	%eax, %eax
	jle	LBB0_28
## %bb.11:
	sarl	$10, -44(%rbp)                  ## 4-byte Folded Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	sarl	$2, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	imulq	%rax, %rbx
	addq	%rbx, %r14
	cmpl	$1, -96(%rbp)                   ## 4-byte Folded Reload
	movl	$3, %eax
	sbbl	$0, %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	subl	$-128, -80(%rbp)                ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
                                        ## implicit-def: $al
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
                                        ## implicit-def: $r13b
                                        ## implicit-def: $r15b
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%r8d, %edx
	movl	%r8d, %eax
	movl	%r8d, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movb	%cl, (%r14)
	movl	%eax, %r13d
	movb	%al, 1(%r14)
	movl	%edx, %r15d
	movb	%dl, 2(%r14)
	addq	$3, %r14
	incq	%r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_VIDEOSIZE_X
	cltq
	addl	$2, %ebx
	cmpq	%rax, %r12
	jge	LBB0_28
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FLAGS_DISPLAY_HINTS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	$-1, %dl
	xorl	%ecx, %ecx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	addl	$2, %eax
	cmpl	-84(%rbp), %eax                 ## 4-byte Folded Reload
	leaq	_ibmcam_parse_lines.lineBuffer(%rip), %rax
	jae	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	-128(%rbp), %r12                ## 8-byte Folded Reload
	jae	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movzbl	(%r12,%rax), %r8d
	movq	_FLAGS_MONOCHROME@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %ecx
	andl	$-4, %ecx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leal	(%rcx,%rdi), %edx
	movl	%ebx, %esi
	orl	-108(%rbp), %esi                ## 4-byte Folded Reload
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	leal	2(%rcx,%rdi), %ecx
	cmovnel	%edx, %ecx
	leal	-2(%rsi), %edx
	cmovnel	%esi, %edx
	movslq	%ecx, %rcx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	addq	%rdi, %rcx
	movzbl	(%rax,%rcx), %esi
	addl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movslq	%edx, %rcx
	addq	%rdi, %rcx
	movzbl	(%rax,%rcx), %edx
	addl	-104(%rbp), %edx                ## 4-byte Folded Reload
	cmpl	$256, -112(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x100
	jb	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	$-128, %esi
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	imull	%edi, %esi
	leal	127(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$7, %ecx
	subl	$-128, %ecx
	addl	$-128, %edx
	imull	%edi, %edx
	leal	127(%rdx), %edi
	testl	%edx, %edx
	cmovnsl	%edx, %edi
	sarl	$7, %edi
	subl	$-128, %edi
	movl	%ecx, %esi
	movl	%edi, %edx
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%r15d, %eax
	movzbl	%r8b, %edi
	movzbl	%al, %ecx
	movzbl	%r13b, %r8d
	movzbl	-64(%rbp), %r9d                 ## 1-byte Folded Reload
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_YUV_TO_RGB_BY_THE_BOOK
	movl	%r13d, %eax
	movl	%r15d, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	movb	$-1, %cl
	xorl	%edx, %edx
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	$0, 8(%rax)
	movb	$-1, %al
	jmp	LBB0_13
LBB0_27:
	movq	_V4L_BYTES_PER_PIXEL@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %edx
	subl	%r12d, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_28:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %ebx
	addl	$2, %ebx
	movl	%ebx, 8(%rdx)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rcx
	addq	%rcx, (%rax)
LBB0_30:
	movq	_Deinterlace_FillOddLines@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdx)
	movl	(%rdx), %edi
	callq	_VIDEOSIZE_Y
	cmpl	%eax, %ebx
	jge	LBB0_32
## %bb.31:
	movq	_scan_Continue@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_32:
	movq	_scan_NextFrame@GOTPCREL(%rip), %rax
LBB0_33:
	movl	(%rax), %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hue_correction,4,2             ## @hue_correction
.zerofill __DATA,__bss,_ibmcam_parse_lines.lineBuffer,1920,4 ## @ibmcam_parse_lines.lineBuffer
	.comm	_V4L_BYTES_PER_PIXEL,4,2        ## @V4L_BYTES_PER_PIXEL
	.comm	_IBMCAM_MODEL_4,8,3             ## @IBMCAM_MODEL_4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibmcam_parse_lines: Wrong mode."

	.comm	_scan_Out,4,2                   ## @scan_Out
L_.str.1:                               ## @.str.1
	.asciz	"Unknown header signature 00 FF 00 %02lX"

	.comm	_scan_NextFrame,4,2             ## @scan_NextFrame
	.comm	_IBMCAM_MODEL_2,8,3             ## @IBMCAM_MODEL_2
	.comm	_flags,4,2                      ## @flags
	.comm	_FLAGS_DISPLAY_HINTS,4,2        ## @FLAGS_DISPLAY_HINTS
	.comm	_FLAGS_MONOCHROME,4,2           ## @FLAGS_MONOCHROME
	.comm	_Deinterlace_FillOddLines,4,2   ## @Deinterlace_FillOddLines
	.comm	_scan_Continue,4,2              ## @scan_Continue
	.no_dead_strip	_ibmcam_parse_lines
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ibmcam_parse_lines
l_switch.table.ibmcam_parse_lines:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.ibmcam_parse_lines.2
l_switch.table.ibmcam_parse_lines.2:
	.long	288                             ## 0x120
	.long	144                             ## 0x90
	.long	96                              ## 0x60

	.p2align	2                               ## @switch.table.ibmcam_parse_lines.3
l_switch.table.ibmcam_parse_lines.3:
	.long	352                             ## 0x160
	.long	176                             ## 0xb0
	.long	128                             ## 0x80

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmcam_parse_lines
_ibmcam_parse_lines:                    ; @ibmcam_parse_lines
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w26, [x0, #8]
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	w27, w8, w9, lt
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	bl	_IBMCAM_T
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x23, #12]
	sub	w20, w8, #8, lsl #12            ; =32768
	asr	w24, w20, #8
	mov	x0, x24
	mov	w1, #-128
	mov	w2, #129
	bl	_RESTRICT_TO_RANGE
	ldr	w0, [x19]
	bl	_VIDEOSIZE_X
	mov	x25, x0
Lloh3:
	adrp	x8, _V4L_BYTES_PER_PIXEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L_BYTES_PER_PIXEL@GOTPAGEOFF]
Lloh5:
	ldrsw	x22, [x8]
	mov	x0, x23
	bl	_IBMCAM_T
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _IBMCAM_MODEL_4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IBMCAM_MODEL_4@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x23]
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_18
; %bb.2:
	str	w27, [sp, #56]                  ; 4-byte Folded Spill
	str	w26, [sp, #72]                  ; 4-byte Folded Spill
	bl	_VIDEOSIZE_X
	mov	x26, x0
	ldr	w0, [x23]
	bl	_VIDEOSIZE_Y
	str	w0, [sp, #84]                   ; 4-byte Folded Spill
	mov	w9, #1
	mov	w8, #1
	stp	w8, w9, [sp, #64]               ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19, #4]
	sub	w9, w8, #131
	cmp	w9, #3
	b.hs	LBB0_20
; %bb.4:
	str	w27, [sp, #56]                  ; 4-byte Folded Spill
	str	w26, [sp, #72]                  ; 4-byte Folded Spill
	sbfiz	x8, x9, #2, #32
Lloh9:
	adrp	x9, l_switch.table.ibmcam_parse_lines@PAGE
Lloh10:
	add	x9, x9, l_switch.table.ibmcam_parse_lines@PAGEOFF
	ldr	w9, [x9, x8]
	str	w9, [sp, #64]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x9, l_switch.table.ibmcam_parse_lines.2@PAGE
Lloh12:
	add	x9, x9, l_switch.table.ibmcam_parse_lines.2@PAGEOFF
	ldr	w9, [x9, x8]
	str	w9, [sp, #84]                   ; 4-byte Folded Spill
Lloh13:
	adrp	x9, l_switch.table.ibmcam_parse_lines.3@PAGE
Lloh14:
	add	x9, x9, l_switch.table.ibmcam_parse_lines.3@PAGEOFF
	ldr	w26, [x9, x8]
	mov	x0, x23
	bl	_IBMCAM_T
	ldr	x8, [x0]
Lloh15:
	adrp	x9, _IBMCAM_MODEL_2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IBMCAM_MODEL_2@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
LBB0_5:
	add	w27, w26, w26, lsl #1
	cmp	w27, #1921
	cset	w0, lo
	bl	_assert
	add	x28, x23, #4
	mov	x0, x28
	bl	_RingQueue_GetLength
	cmp	w0, w27
	b.lo	LBB0_19
; %bb.6:
	str	w20, [sp, #60]                  ; 4-byte Folded Spill
Lloh18:
	adrp	x1, _ibmcam_parse_lines.lineBuffer@PAGE
Lloh19:
	add	x1, x1, _ibmcam_parse_lines.lineBuffer@PAGEOFF
	mov	x0, x28
	mov	x2, x27
	bl	_RingQueue_Dequeue
	ldr	w8, [x19, #8]
	add	w20, w8, #2
	ldr	w0, [x19]
	bl	_VIDEOSIZE_Y
Lloh20:
	adrp	x8, _scan_NextFrame@GOTPAGE
Lloh21:
	ldr	x8, [x8, _scan_NextFrame@GOTPAGEOFF]
	cmp	w20, w0
	b.ge	LBB0_25
; %bb.7:
	sxtw	x8, w25
	mul	x8, x22, x8
	stp	x21, x8, [sp, #16]              ; 16-byte Folded Spill
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x20, [x19, #16]
	ldrsw	x21, [x19, #8]
	ldr	w0, [x19]
	bl	_VIDEOSIZE_X
	cmp	w0, #1
	b.lt	LBB0_22
; %bb.8:
	mov	w23, #0
	mov	x28, #0
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	sub	w8, w8, #8, lsl #12             ; =32768
	asr	w9, w8, #10
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	asr	w8, w8, #2
	stp	w9, w8, [sp, #52]               ; 8-byte Folded Spill
	mov	w9, w26
Lloh22:
	adrp	x8, _ibmcam_parse_lines.lineBuffer@PAGE
Lloh23:
	add	x8, x8, _ibmcam_parse_lines.lineBuffer@PAGEOFF
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	add	x8, x8, x9
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	madd	x25, x21, x8, x20
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w8, #0
	mov	w8, #2
	cinc	w8, w8, ne
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	add	w8, w24, #128
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
                                        ; implicit-def: $w21
                                        ; implicit-def: $w27
                                        ; implicit-def: $w20
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	cmp	w9, #1
	mov	w8, #255
	csel	w24, w8, wzr, eq
	csel	w22, wzr, w8, eq
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	str	wzr, [x8, #8]
	mov	w26, #255
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	strb	w22, [x25]
	strb	w26, [x25, #1]
	strb	w24, [x25, #2]
	add	x25, x25, #3
	add	x28, x28, #1
	ldr	w0, [x19]
	bl	_VIDEOSIZE_X
	add	w23, w23, #2
	cmp	x28, w0, sxtw
	mov	x21, x22
	mov	x27, x26
	mov	x20, x24
	b.ge	LBB0_22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
Lloh24:
	adrp	x8, _flags@GOTPAGE
Lloh25:
	ldr	x8, [x8, _flags@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _FLAGS_DISPLAY_HINTS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FLAGS_DISPLAY_HINTS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	ldr	w9, [x9, #8]
	cbnz	w9, LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x19, #8]
	add	w9, w9, #2
	ldr	w10, [sp, #84]                  ; 4-byte Folded Reload
	cmp	w9, w10
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ccmp	x28, x9, #2, lo
	b.hs	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh30:
	adrp	x9, _ibmcam_parse_lines.lineBuffer@PAGE
Lloh31:
	add	x9, x9, _ibmcam_parse_lines.lineBuffer@PAGEOFF
	ldrb	w24, [x9, x28]
Lloh32:
	adrp	x9, _FLAGS_MONOCHROME@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FLAGS_MONOCHROME@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	mov	x26, x24
	mov	x22, x24
	tst	w9, w8
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	and	w8, w23, #0xfffffffc
	ldp	w12, w9, [sp, #64]              ; 8-byte Folded Reload
	orr	w8, w8, w9
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	orr	w9, w23, w9
	orr	w10, w8, #0x2
	sub	w11, w9, #2
	cmp	w12, #0
	csel	w8, w10, w8, eq
	ldr	x12, [sp, #40]                  ; 8-byte Folded Reload
	ldrb	w8, [x12, w8, sxtw]
	csel	w9, w11, w9, eq
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	add	w1, w10, w8
	ldrb	w8, [x12, w9, sxtw]
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	add	w2, w9, w8
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w8, #256
	b.lo	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w8, w1, #128
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	mul	w8, w8, w10
	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, w10
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	add	w2, w8, #128
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	and	w3, w20, #0xff
	and	w4, w27, #0xff
	and	w5, w21, #0xff
	mov	x0, x24
	bl	_YUV_TO_RGB_BY_THE_BOOK
	mov	x24, x20
	mov	x26, x27
	mov	x22, x21
	b	LBB0_10
LBB0_18:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_19:
Lloh37:
	adrp	x8, _scan_Out@GOTPAGE
Lloh38:
	ldr	x8, [x8, _scan_Out@GOTPAGEOFF]
	b	LBB0_25
LBB0_20:
	str	x8, [sp]
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
Lloh41:
	adrp	x8, _scan_NextFrame@GOTPAGE
Lloh42:
	ldr	x8, [x8, _scan_NextFrame@GOTPAGEOFF]
	b	LBB0_25
LBB0_21:
Lloh43:
	adrp	x8, _V4L_BYTES_PER_PIXEL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _V4L_BYTES_PER_PIXEL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	mul	w8, w8, w28
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sub	w2, w9, w8
	mov	x0, x25
	mov	w1, #0
	bl	_memset
LBB0_22:
	ldr	w8, [x19, #8]
	add	w20, w8, #2
	str	w20, [x19, #8]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x10, LBB0_24
; %bb.23:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	lsl	w8, w8, #1
	ldr	x9, [x10]
	add	x8, x9, w8, sxtw
	str	x8, [x10]
LBB0_24:
Lloh46:
	adrp	x8, _Deinterlace_FillOddLines@GOTPAGE
Lloh47:
	ldr	x8, [x8, _Deinterlace_FillOddLines@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w0, [x19]
	bl	_VIDEOSIZE_Y
Lloh49:
	adrp	x8, _scan_Continue@GOTPAGE
Lloh50:
	ldr	x8, [x8, _scan_Continue@GOTPAGEOFF]
	cmp	w20, w0
Lloh51:
	adrp	x9, _scan_NextFrame@GOTPAGE
Lloh52:
	ldr	x9, [x9, _scan_NextFrame@GOTPAGEOFF]
	csel	x8, x8, x9, lt
LBB0_25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_hue_correction,4,2             ; @hue_correction
.zerofill __DATA,__bss,_ibmcam_parse_lines.lineBuffer,1920,0 ; @ibmcam_parse_lines.lineBuffer
	.comm	_V4L_BYTES_PER_PIXEL,4,2        ; @V4L_BYTES_PER_PIXEL
	.comm	_IBMCAM_MODEL_4,8,3             ; @IBMCAM_MODEL_4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibmcam_parse_lines: Wrong mode."

	.comm	_scan_Out,4,2                   ; @scan_Out
l_.str.1:                               ; @.str.1
	.asciz	"Unknown header signature 00 FF 00 %02lX"

	.comm	_scan_NextFrame,4,2             ; @scan_NextFrame
	.comm	_IBMCAM_MODEL_2,8,3             ; @IBMCAM_MODEL_2
	.comm	_flags,4,2                      ; @flags
	.comm	_FLAGS_DISPLAY_HINTS,4,2        ; @FLAGS_DISPLAY_HINTS
	.comm	_FLAGS_MONOCHROME,4,2           ; @FLAGS_MONOCHROME
	.comm	_Deinterlace_FillOddLines,4,2   ; @Deinterlace_FillOddLines
	.comm	_scan_Continue,4,2              ; @scan_Continue
	.no_dead_strip	_ibmcam_parse_lines
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ibmcam_parse_lines
l_switch.table.ibmcam_parse_lines:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.ibmcam_parse_lines.2
l_switch.table.ibmcam_parse_lines.2:
	.long	288                             ; 0x120
	.long	144                             ; 0x90
	.long	96                              ; 0x60

	.p2align	2                               ; @switch.table.ibmcam_parse_lines.3
l_switch.table.ibmcam_parse_lines.3:
	.long	352                             ; 0x160
	.long	176                             ; 0xb0
	.long	128                             ; 0x80

.subsections_via_symbols
