	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmcam_ProcessIsocData
_ibmcam_ProcessIsocData:                ## @ibmcam_ProcessIsocData
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	callq	_IBMCAM_T
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	20(%r14), %r13
	movq	_scan_Continue@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_ibmcam_find_header
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r12), %ebx
	jne	LBB0_21
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_scan_Out@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_RingQueue_GetLength
	testq	%rax, %rax
	jle	LBB0_20
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	_ScanState_Scanning@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ScanState_Lines@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	_IBMCAM_MODEL_2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	_VIDEOSIZE_352x288@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_VIDEOSIZE_320x240@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_VIDEOSIZE_352x240@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IBMCAM_MODEL_4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	_VIDEOSIZE_352x288@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_VIDEOSIZE_320x240@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_VIDEOSIZE_352x240@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_VIDEOSIZE_128x96@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	callq	_ibmcam_model4_128x96_parse_lines
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	callq	_ibmcam_model2_320x240_parse_lines
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IBMCAM_MODEL_3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	callq	_ibmcam_model3_parse_lines
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	callq	_ibmcam_parse_lines
	jmp	LBB0_19
LBB0_21:
	movq	_scan_NextFrame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	je	LBB0_23
## %bb.22:
	movq	_scan_Out@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_28
LBB0_23:
	cmpl	%eax, %ebx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_27
## %bb.24:
	movq	_FrameState_Done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	$-1, 8(%r14)
	incl	16(%r14)
	movq	_IBMCAM_MODEL_2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_26
## %bb.25:
	movq	_IBMCAM_MODEL_4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_27
LBB0_26:
	movq	_USBVIDEO_FRAME_FLAG_SOFTWARE_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r15)
LBB0_27:
	movq	-48(%rbp), %rax
	addq	%rax, 8(%r15)
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scan_Out,4,2                   ## @scan_Out
	.comm	_ScanState_Scanning,8,3         ## @ScanState_Scanning
	.comm	_ScanState_Lines,8,3            ## @ScanState_Lines
	.comm	_IBMCAM_MODEL_2,4,2             ## @IBMCAM_MODEL_2
	.comm	_VIDEOSIZE_352x288,8,3          ## @VIDEOSIZE_352x288
	.comm	_VIDEOSIZE_320x240,8,3          ## @VIDEOSIZE_320x240
	.comm	_VIDEOSIZE_352x240,8,3          ## @VIDEOSIZE_352x240
	.comm	_IBMCAM_MODEL_4,4,2             ## @IBMCAM_MODEL_4
	.comm	_VIDEOSIZE_128x96,8,3           ## @VIDEOSIZE_128x96
	.comm	_IBMCAM_MODEL_3,4,2             ## @IBMCAM_MODEL_3
	.comm	_scan_Continue,4,2              ## @scan_Continue
	.comm	_scan_NextFrame,4,2             ## @scan_NextFrame
	.comm	_FrameState_Done,4,2            ## @FrameState_Done
	.comm	_USBVIDEO_FRAME_FLAG_SOFTWARE_CONTRAST,4,2 ## @USBVIDEO_FRAME_FLAG_SOFTWARE_CONTRAST
	.comm	_FrameState_Ready,4,2           ## @FrameState_Ready
	.no_dead_strip	_ibmcam_ProcessIsocData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmcam_ProcessIsocData
_ibmcam_ProcessIsocData:                ; @ibmcam_ProcessIsocData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	bl	_IBMCAM_T
	ldr	w23, [x0]
	add	x21, x20, #20
Lloh0:
	adrp	x26, _scan_Out@GOTPAGE
Lloh1:
	ldr	x26, [x26, _scan_Out@GOTPAGEOFF]
Lloh2:
	adrp	x27, _ScanState_Scanning@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ScanState_Scanning@GOTPAGEOFF]
Lloh4:
	adrp	x28, _ScanState_Lines@GOTPAGE
Lloh5:
	ldr	x28, [x28, _ScanState_Lines@GOTPAGEOFF]
Lloh6:
	adrp	x24, _IBMCAM_MODEL_2@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IBMCAM_MODEL_2@GOTPAGEOFF]
Lloh8:
	adrp	x25, _scan_Continue@GOTPAGE
Lloh9:
	ldr	x25, [x25, _scan_Continue@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_ibmcam_find_header
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.ne	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x26]
	mov	x0, x21
	bl	_RingQueue_GetLength
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _VIDEOSIZE_352x288@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VIDEOSIZE_352x288@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _VIDEOSIZE_320x240@GOTPAGE
Lloh14:
	ldr	x10, [x10, _VIDEOSIZE_320x240@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	adrp	x11, _VIDEOSIZE_352x240@GOTPAGE
Lloh17:
	ldr	x11, [x11, _VIDEOSIZE_352x240@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x8, _IBMCAM_MODEL_4@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IBMCAM_MODEL_4@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
Lloh22:
	adrp	x9, _VIDEOSIZE_352x288@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VIDEOSIZE_352x288@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
Lloh25:
	adrp	x10, _VIDEOSIZE_320x240@GOTPAGE
Lloh26:
	ldr	x10, [x10, _VIDEOSIZE_320x240@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
Lloh28:
	adrp	x11, _VIDEOSIZE_352x240@GOTPAGE
Lloh29:
	ldr	x11, [x11, _VIDEOSIZE_352x240@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_ibmcam_model2_320x240_parse_lines
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh31:
	adrp	x8, _IBMCAM_MODEL_3@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IBMCAM_MODEL_3@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_ibmcam_model3_parse_lines
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh34:
	adrp	x9, _VIDEOSIZE_128x96@GOTPAGE
Lloh35:
	ldr	x9, [x9, _VIDEOSIZE_128x96@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_ibmcam_model4_128x96_parse_lines
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_ibmcam_parse_lines
	b	LBB0_2
LBB0_17:
Lloh37:
	adrp	x8, _scan_NextFrame@GOTPAGE
Lloh38:
	ldr	x8, [x8, _scan_NextFrame@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x26]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.ne	LBB0_22
; %bb.18:
	cmp	w22, w8
	b.ne	LBB0_21
; %bb.19:
Lloh40:
	adrp	x8, _FrameState_Done@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FrameState_Done@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w8, #-1
	str	w8, [x20, #8]
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	w8, [x24]
Lloh43:
	adrp	x9, _IBMCAM_MODEL_4@GOTPAGE
Lloh44:
	ldr	x9, [x9, _IBMCAM_MODEL_4@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w23, w8
	ccmp	w23, w9, #4, ne
	b.ne	LBB0_21
; %bb.20:
Lloh46:
	adrp	x8, _USBVIDEO_FRAME_FLAG_SOFTWARE_CONTRAST@GOTPAGE
Lloh47:
	ldr	x8, [x8, _USBVIDEO_FRAME_FLAG_SOFTWARE_CONTRAST@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_21:
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_scan_Out,4,2                   ; @scan_Out
	.comm	_ScanState_Scanning,8,3         ; @ScanState_Scanning
	.comm	_ScanState_Lines,8,3            ; @ScanState_Lines
	.comm	_IBMCAM_MODEL_2,4,2             ; @IBMCAM_MODEL_2
	.comm	_VIDEOSIZE_352x288,8,3          ; @VIDEOSIZE_352x288
	.comm	_VIDEOSIZE_320x240,8,3          ; @VIDEOSIZE_320x240
	.comm	_VIDEOSIZE_352x240,8,3          ; @VIDEOSIZE_352x240
	.comm	_IBMCAM_MODEL_4,4,2             ; @IBMCAM_MODEL_4
	.comm	_VIDEOSIZE_128x96,8,3           ; @VIDEOSIZE_128x96
	.comm	_IBMCAM_MODEL_3,4,2             ; @IBMCAM_MODEL_3
	.comm	_scan_Continue,4,2              ; @scan_Continue
	.comm	_scan_NextFrame,4,2             ; @scan_NextFrame
	.comm	_FrameState_Done,4,2            ; @FrameState_Done
	.comm	_USBVIDEO_FRAME_FLAG_SOFTWARE_CONTRAST,4,2 ; @USBVIDEO_FRAME_FLAG_SOFTWARE_CONTRAST
	.comm	_FrameState_Ready,4,2           ; @FrameState_Ready
	.no_dead_strip	_ibmcam_ProcessIsocData
.subsections_via_symbols
