	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispatch_commands
_dispatch_commands:                     ## @dispatch_commands
	.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	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%rbx), %edi
	movq	_COMMAND_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_41
## %bb.1:
	callq	_DEB_BYTE
	movl	(%rbx), %edi
	sarl	$8, %edi
	callq	_DEB_BYTE
	movl	(%rbx), %eax
	movq	_COMMAND_SETFORMAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_CPIA_COMMAND_SetFormat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	252(%rbx), %edx
	movl	256(%rbx), %ecx
	movl	260(%rbx), %r8d
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_do_command
	movq	_CPIA_COMMAND_SetROI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	236(%rbx), %edx
	movl	240(%rbx), %ecx
	movl	244(%rbx), %r8d
	movl	248(%rbx), %r9d
	movq	%rbx, %rdi
	callq	_do_command
	movl	$1, 4(%rbx)
	movl	(%rbx), %eax
LBB0_3:
	movq	_COMMAND_SETCOLOURPARAMS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_CPIA_COMMAND_SetColourParams@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	224(%rbx), %edx
	movl	228(%rbx), %ecx
	movl	232(%rbx), %r8d
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_5:
	movq	_COMMAND_SETAPCOR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_CPIA_COMMAND_SetApcor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	208(%rbx), %edx
	movl	212(%rbx), %ecx
	movl	216(%rbx), %r8d
	movl	220(%rbx), %r9d
	movq	%rbx, %rdi
	callq	_do_command
	movl	(%rbx), %eax
LBB0_7:
	movq	_COMMAND_SETVLOFFSET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_CPIA_COMMAND_SetVLOffset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	192(%rbx), %edx
	movl	196(%rbx), %ecx
	movl	200(%rbx), %r8d
	movl	204(%rbx), %r9d
	movq	%rbx, %rdi
	callq	_do_command
	movl	(%rbx), %eax
LBB0_9:
	movq	_COMMAND_SETEXPOSURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	_CPIA_COMMAND_SetExposure@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	188(%rbx), %edx
	movl	184(%rbx), %r8d
	movl	180(%rbx), %r9d
	movl	160(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	156(%rbx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	148(%rbx), %eax
	movl	152(%rbx), %r13d
	movq	%r15, %r11
	movl	176(%rbx), %r15d
	movl	172(%rbx), %r14d
	movl	168(%rbx), %r12d
	movl	164(%rbx), %r10d
	movq	%rbx, %rdi
	movl	$1, %ecx
	pushq	%r10
	pushq	%r12
	pushq	%r14
	pushq	%r15
	movq	%r11, %r15
	pushq	%rax
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_do_command_extended
	addq	$64, %rsp
	movl	144(%rbx), %ecx
	cmpl	$1, %ecx
	je	LBB0_12
## %bb.11:
	movq	_CPIA_COMMAND_SetExposure@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	160(%rbx), %r10d
	movl	156(%rbx), %r11d
	movl	148(%rbx), %eax
	movl	152(%rbx), %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_do_command_extended
	addq	$64, %rsp
LBB0_12:
	movq	_COMMAND_SETCOLOURBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_19
## %bb.13:
	movl	128(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_14
## %bb.15:
	cmpl	$2, %eax
	je	LBB0_16
LBB0_17:
	cmpl	$3, %eax
	jne	LBB0_19
LBB0_18:
	movq	_CPIA_COMMAND_SetColourBalance@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
LBB0_19:
	movl	(%rbx), %eax
	movq	_COMMAND_SETCOMPRESSIONTARGET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	_CPIA_COMMAND_SetCompressionTarget@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	116(%rbx), %edx
	movl	120(%rbx), %ecx
	movl	124(%rbx), %r8d
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_21:
	movq	_COMMAND_SETYUVTHRESH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:
	movq	_CPIA_COMMAND_SetYUVThresh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	108(%rbx), %edx
	movl	112(%rbx), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_23:
	movq	_COMMAND_SETCOMPRESSIONPARAMS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.24:
	movq	_CPIA_COMMAND_SetCompressionParams@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	104(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	100(%rbx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	96(%rbx), %r14d
	movq	%r15, %r11
	movl	92(%rbx), %r15d
	movl	88(%rbx), %r12d
	movl	84(%rbx), %r13d
	movl	76(%rbx), %eax
	movl	80(%rbx), %r10d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%r13
	pushq	%r12
	pushq	%r15
	movq	%r11, %r15
	pushq	%r14
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_do_command_extended
	addq	$64, %rsp
	movl	(%rbx), %eax
LBB0_25:
	movq	_COMMAND_SETCOMPRESSION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.26:
	movq	_CPIA_COMMAND_SetCompression@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	68(%rbx), %edx
	movl	72(%rbx), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_27:
	movq	_COMMAND_SETSENSORFPS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
## %bb.28:
	movq	_CPIA_COMMAND_SetSensorFPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	60(%rbx), %edx
	movl	64(%rbx), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_29:
	movq	_COMMAND_SETFLICKERCTRL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_31
## %bb.30:
	movq	_CPIA_COMMAND_SetFlickerCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%rbx), %edx
	movl	52(%rbx), %ecx
	movl	56(%rbx), %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovsl	%eax, %r8d
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_31:
	movq	_COMMAND_SETECPTIMING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
## %bb.32:
	movq	_CPIA_COMMAND_SetECPTiming@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_33:
	movq	_COMMAND_PAUSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_35
## %bb.34:
	movq	_CPIA_COMMAND_EndStreamCap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_35:
	movq	_COMMAND_RESUME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
## %bb.36:
	movq	%rbx, %rdi
	callq	_init_stream_cap
	movl	(%rbx), %eax
LBB0_37:
	movq	_COMMAND_SETLIGHTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_40
## %bb.38:
	cmpq	$0, 40(%rbx)
	je	LBB0_40
## %bb.39:
	xorl	%r12d, %r12d
	cmpq	$0, 24(%rbx)
	sete	%r12b
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rbx)
	sete	%r14b
	shll	$3, %r14d
	movq	_CPIA_COMMAND_WriteVCReg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$144, %edx
	movl	$143, %ecx
	movl	$80, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movq	_CPIA_COMMAND_WriteMCPort@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r14,%r12,2), %r8d
	addl	$224, %r8d
	movq	%rbx, %rdi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_do_command
LBB0_40:
	movq	_COMMAND_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_41:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_14:
	movq	_CPIA_COMMAND_SetColourBalance@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	132(%rbx), %ecx
	movl	136(%rbx), %r8d
	movl	140(%rbx), %r9d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_do_command
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	128(%rbx), %eax
	cmpl	$2, %eax
	jne	LBB0_17
LBB0_16:
	movq	_CPIA_COMMAND_SetColourBalance@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	128(%rbx), %eax
	cmpl	$3, %eax
	je	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND_NONE,4,2               ## @COMMAND_NONE
	.comm	_COMMAND_SETFORMAT,4,2          ## @COMMAND_SETFORMAT
	.comm	_CPIA_COMMAND_SetFormat,4,2     ## @CPIA_COMMAND_SetFormat
	.comm	_CPIA_COMMAND_SetROI,4,2        ## @CPIA_COMMAND_SetROI
	.comm	_COMMAND_SETCOLOURPARAMS,4,2    ## @COMMAND_SETCOLOURPARAMS
	.comm	_CPIA_COMMAND_SetColourParams,4,2 ## @CPIA_COMMAND_SetColourParams
	.comm	_COMMAND_SETAPCOR,4,2           ## @COMMAND_SETAPCOR
	.comm	_CPIA_COMMAND_SetApcor,4,2      ## @CPIA_COMMAND_SetApcor
	.comm	_COMMAND_SETVLOFFSET,4,2        ## @COMMAND_SETVLOFFSET
	.comm	_CPIA_COMMAND_SetVLOffset,4,2   ## @CPIA_COMMAND_SetVLOffset
	.comm	_COMMAND_SETEXPOSURE,4,2        ## @COMMAND_SETEXPOSURE
	.comm	_CPIA_COMMAND_SetExposure,4,2   ## @CPIA_COMMAND_SetExposure
	.comm	_COMMAND_SETCOLOURBALANCE,4,2   ## @COMMAND_SETCOLOURBALANCE
	.comm	_CPIA_COMMAND_SetColourBalance,4,2 ## @CPIA_COMMAND_SetColourBalance
	.comm	_COMMAND_SETCOMPRESSIONTARGET,4,2 ## @COMMAND_SETCOMPRESSIONTARGET
	.comm	_CPIA_COMMAND_SetCompressionTarget,4,2 ## @CPIA_COMMAND_SetCompressionTarget
	.comm	_COMMAND_SETYUVTHRESH,4,2       ## @COMMAND_SETYUVTHRESH
	.comm	_CPIA_COMMAND_SetYUVThresh,4,2  ## @CPIA_COMMAND_SetYUVThresh
	.comm	_COMMAND_SETCOMPRESSIONPARAMS,4,2 ## @COMMAND_SETCOMPRESSIONPARAMS
	.comm	_CPIA_COMMAND_SetCompressionParams,4,2 ## @CPIA_COMMAND_SetCompressionParams
	.comm	_COMMAND_SETCOMPRESSION,4,2     ## @COMMAND_SETCOMPRESSION
	.comm	_CPIA_COMMAND_SetCompression,4,2 ## @CPIA_COMMAND_SetCompression
	.comm	_COMMAND_SETSENSORFPS,4,2       ## @COMMAND_SETSENSORFPS
	.comm	_CPIA_COMMAND_SetSensorFPS,4,2  ## @CPIA_COMMAND_SetSensorFPS
	.comm	_COMMAND_SETFLICKERCTRL,4,2     ## @COMMAND_SETFLICKERCTRL
	.comm	_CPIA_COMMAND_SetFlickerCtrl,4,2 ## @CPIA_COMMAND_SetFlickerCtrl
	.comm	_COMMAND_SETECPTIMING,4,2       ## @COMMAND_SETECPTIMING
	.comm	_CPIA_COMMAND_SetECPTiming,4,2  ## @CPIA_COMMAND_SetECPTiming
	.comm	_COMMAND_PAUSE,4,2              ## @COMMAND_PAUSE
	.comm	_CPIA_COMMAND_EndStreamCap,4,2  ## @CPIA_COMMAND_EndStreamCap
	.comm	_COMMAND_RESUME,4,2             ## @COMMAND_RESUME
	.comm	_COMMAND_SETLIGHTS,4,2          ## @COMMAND_SETLIGHTS
	.comm	_CPIA_COMMAND_WriteVCReg,4,2    ## @CPIA_COMMAND_WriteVCReg
	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ## @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_dispatch_commands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispatch_commands
_dispatch_commands:                     ; @dispatch_commands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20]
Lloh0:
	adrp	x21, _COMMAND_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _COMMAND_NONE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_39
; %bb.1:
	bl	_DEB_BYTE
	ldr	w8, [x20]
	asr	w0, w8, #8
	bl	_DEB_BYTE
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _COMMAND_SETFORMAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _COMMAND_SETFORMAT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _CPIA_COMMAND_SetFormat@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CPIA_COMMAND_SetFormat@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #252]
	ldr	w4, [x20, #260]
	mov	x0, x20
	mov	w5, #0
	bl	_do_command
Lloh8:
	adrp	x8, _CPIA_COMMAND_SetROI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CPIA_COMMAND_SetROI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #236]
	ldp	w4, w5, [x20, #244]
	mov	x0, x20
	bl	_do_command
	mov	w8, #1
	str	w8, [x20, #4]
	ldr	w8, [x20]
LBB0_3:
Lloh11:
	adrp	x9, _COMMAND_SETCOLOURPARAMS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _COMMAND_SETCOLOURPARAMS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _CPIA_COMMAND_SetColourParams@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPIA_COMMAND_SetColourParams@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #224]
	ldr	w4, [x20, #232]
	mov	x0, x20
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_5:
Lloh17:
	adrp	x9, _COMMAND_SETAPCOR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _COMMAND_SETAPCOR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _CPIA_COMMAND_SetApcor@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CPIA_COMMAND_SetApcor@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #208]
	ldp	w4, w5, [x20, #216]
	mov	x0, x20
	bl	_do_command
	ldr	w8, [x20]
LBB0_7:
Lloh23:
	adrp	x9, _COMMAND_SETVLOFFSET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _COMMAND_SETVLOFFSET@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh26:
	adrp	x8, _CPIA_COMMAND_SetVLOffset@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CPIA_COMMAND_SetVLOffset@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #192]
	ldp	w4, w5, [x20, #200]
	mov	x0, x20
	bl	_do_command
	ldr	w8, [x20]
LBB0_9:
Lloh29:
	adrp	x9, _COMMAND_SETEXPOSURE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _COMMAND_SETEXPOSURE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
Lloh32:
	adrp	x22, _CPIA_COMMAND_SetExposure@GOTPAGE
Lloh33:
	ldr	x22, [x22, _CPIA_COMMAND_SetExposure@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w4, w2, [x20, #184]
	ldp	w10, w5, [x20, #176]
	ldp	w7, w6, [x20, #156]
	ldp	w9, w8, [x20, #148]
	ldp	w12, w11, [x20, #168]
	ldr	w13, [x20, #164]
	stp	w12, w13, [sp, #16]
	stp	w10, w11, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x20
	mov	w3, #1
	bl	_do_command_extended
	ldr	w3, [x20, #144]
	cmp	w3, #1
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x22]
	ldp	w7, w6, [x20, #156]
	ldp	w9, w8, [x20, #148]
	stp	xzr, xzr, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command_extended
LBB0_12:
	ldr	w8, [x20]
Lloh34:
	adrp	x9, _COMMAND_SETCOLOURBALANCE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _COMMAND_SETCOLOURBALANCE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.13:
	ldr	w8, [x20, #128]
Lloh37:
	adrp	x22, _CPIA_COMMAND_SetColourBalance@GOTPAGE
Lloh38:
	ldr	x22, [x22, _CPIA_COMMAND_SetColourBalance@GOTPAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_40
; %bb.14:
	cmp	w8, #2
	b.eq	LBB0_41
LBB0_15:
	cmp	w8, #3
	b.ne	LBB0_17
LBB0_16:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #3
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
LBB0_17:
	ldr	w8, [x20]
Lloh39:
	adrp	x9, _COMMAND_SETCOMPRESSIONTARGET@GOTPAGE
Lloh40:
	ldr	x9, [x9, _COMMAND_SETCOMPRESSIONTARGET@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
Lloh42:
	adrp	x8, _CPIA_COMMAND_SetCompressionTarget@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CPIA_COMMAND_SetCompressionTarget@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #116]
	ldr	w4, [x20, #124]
	mov	x0, x20
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_19:
Lloh45:
	adrp	x9, _COMMAND_SETYUVTHRESH@GOTPAGE
Lloh46:
	ldr	x9, [x9, _COMMAND_SETYUVTHRESH@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
Lloh48:
	adrp	x8, _CPIA_COMMAND_SetYUVThresh@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CPIA_COMMAND_SetYUVThresh@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #108]
	mov	x0, x20
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_21:
Lloh51:
	adrp	x9, _COMMAND_SETCOMPRESSIONPARAMS@GOTPAGE
Lloh52:
	ldr	x9, [x9, _COMMAND_SETCOMPRESSIONPARAMS@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
Lloh54:
	adrp	x8, _CPIA_COMMAND_SetCompressionParams@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CPIA_COMMAND_SetCompressionParams@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	ldp	w7, w6, [x20, #100]
	ldp	w9, w8, [x20, #92]
	ldp	w11, w10, [x20, #84]
	ldp	w13, w12, [x20, #76]
	stp	w12, w13, [sp, #16]
	stp	w10, w11, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command_extended
	ldr	w8, [x20]
LBB0_23:
Lloh57:
	adrp	x9, _COMMAND_SETCOMPRESSION@GOTPAGE
Lloh58:
	ldr	x9, [x9, _COMMAND_SETCOMPRESSION@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
Lloh60:
	adrp	x8, _CPIA_COMMAND_SetCompression@GOTPAGE
Lloh61:
	ldr	x8, [x8, _CPIA_COMMAND_SetCompression@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #68]
	mov	x0, x20
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_25:
Lloh63:
	adrp	x9, _COMMAND_SETSENSORFPS@GOTPAGE
Lloh64:
	ldr	x9, [x9, _COMMAND_SETSENSORFPS@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
Lloh66:
	adrp	x8, _CPIA_COMMAND_SetSensorFPS@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CPIA_COMMAND_SetSensorFPS@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #60]
	mov	x0, x20
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_27:
Lloh69:
	adrp	x9, _COMMAND_SETFLICKERCTRL@GOTPAGE
Lloh70:
	ldr	x9, [x9, _COMMAND_SETFLICKERCTRL@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
Lloh72:
	adrp	x8, _CPIA_COMMAND_SetFlickerCtrl@GOTPAGE
Lloh73:
	ldr	x8, [x8, _CPIA_COMMAND_SetFlickerCtrl@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	ldp	w2, w3, [x20, #48]
	ldr	w8, [x20, #56]
	cmp	w8, #0
	cneg	w4, w8, mi
	mov	x0, x20
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_29:
Lloh75:
	adrp	x9, _COMMAND_SETECPTIMING@GOTPAGE
Lloh76:
	ldr	x9, [x9, _COMMAND_SETECPTIMING@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.30:
Lloh78:
	adrp	x8, _CPIA_COMMAND_SetECPTiming@GOTPAGE
Lloh79:
	ldr	x8, [x8, _CPIA_COMMAND_SetECPTiming@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_31:
Lloh81:
	adrp	x9, _COMMAND_PAUSE@GOTPAGE
Lloh82:
	ldr	x9, [x9, _COMMAND_PAUSE@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_33
; %bb.32:
Lloh84:
	adrp	x8, _CPIA_COMMAND_EndStreamCap@GOTPAGE
Lloh85:
	ldr	x8, [x8, _CPIA_COMMAND_EndStreamCap@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20]
LBB0_33:
Lloh87:
	adrp	x9, _COMMAND_RESUME@GOTPAGE
Lloh88:
	ldr	x9, [x9, _COMMAND_RESUME@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
; %bb.34:
	mov	x0, x20
	bl	_init_stream_cap
	ldr	w8, [x20]
LBB0_35:
Lloh90:
	adrp	x9, _COMMAND_SETLIGHTS@GOTPAGE
Lloh91:
	ldr	x9, [x9, _COMMAND_SETLIGHTS@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.36:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_38
; %bb.37:
	ldp	x22, x8, [x20, #24]
	cmp	x8, #0
	cset	w23, eq
Lloh93:
	adrp	x8, _CPIA_COMMAND_WriteVCReg@GOTPAGE
Lloh94:
	ldr	x8, [x8, _CPIA_COMMAND_WriteVCReg@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #144
	mov	w3, #143
	mov	w4, #80
	mov	w5, #0
	bl	_do_command
Lloh96:
	adrp	x8, _CPIA_COMMAND_WriteMCPort@GOTPAGE
Lloh97:
	ldr	x8, [x8, _CPIA_COMMAND_WriteMCPort@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	cmp	x22, #0
	mov	w8, #224
	mov	w9, #226
	csel	w4, w9, w8, eq
	bfi	w4, w23, #3, #1
	mov	x0, x20
	mov	w2, #2
	mov	w3, #0
	mov	w5, #0
	bl	_do_command
LBB0_38:
	ldr	w8, [x21]
	str	w8, [x20]
LBB0_39:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mutex_unlock
LBB0_40:
	ldr	w1, [x22]
	ldp	w3, w4, [x20, #132]
	ldr	w5, [x20, #140]
	mov	x0, x20
	mov	w2, #1
	bl	_do_command
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #3
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20, #128]
	cmp	w8, #2
	b.ne	LBB0_15
LBB0_41:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #2
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x20, #128]
	cmp	w8, #3
	b.eq	LBB0_16
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND_NONE,4,2               ; @COMMAND_NONE
	.comm	_COMMAND_SETFORMAT,4,2          ; @COMMAND_SETFORMAT
	.comm	_CPIA_COMMAND_SetFormat,4,2     ; @CPIA_COMMAND_SetFormat
	.comm	_CPIA_COMMAND_SetROI,4,2        ; @CPIA_COMMAND_SetROI
	.comm	_COMMAND_SETCOLOURPARAMS,4,2    ; @COMMAND_SETCOLOURPARAMS
	.comm	_CPIA_COMMAND_SetColourParams,4,2 ; @CPIA_COMMAND_SetColourParams
	.comm	_COMMAND_SETAPCOR,4,2           ; @COMMAND_SETAPCOR
	.comm	_CPIA_COMMAND_SetApcor,4,2      ; @CPIA_COMMAND_SetApcor
	.comm	_COMMAND_SETVLOFFSET,4,2        ; @COMMAND_SETVLOFFSET
	.comm	_CPIA_COMMAND_SetVLOffset,4,2   ; @CPIA_COMMAND_SetVLOffset
	.comm	_COMMAND_SETEXPOSURE,4,2        ; @COMMAND_SETEXPOSURE
	.comm	_CPIA_COMMAND_SetExposure,4,2   ; @CPIA_COMMAND_SetExposure
	.comm	_COMMAND_SETCOLOURBALANCE,4,2   ; @COMMAND_SETCOLOURBALANCE
	.comm	_CPIA_COMMAND_SetColourBalance,4,2 ; @CPIA_COMMAND_SetColourBalance
	.comm	_COMMAND_SETCOMPRESSIONTARGET,4,2 ; @COMMAND_SETCOMPRESSIONTARGET
	.comm	_CPIA_COMMAND_SetCompressionTarget,4,2 ; @CPIA_COMMAND_SetCompressionTarget
	.comm	_COMMAND_SETYUVTHRESH,4,2       ; @COMMAND_SETYUVTHRESH
	.comm	_CPIA_COMMAND_SetYUVThresh,4,2  ; @CPIA_COMMAND_SetYUVThresh
	.comm	_COMMAND_SETCOMPRESSIONPARAMS,4,2 ; @COMMAND_SETCOMPRESSIONPARAMS
	.comm	_CPIA_COMMAND_SetCompressionParams,4,2 ; @CPIA_COMMAND_SetCompressionParams
	.comm	_COMMAND_SETCOMPRESSION,4,2     ; @COMMAND_SETCOMPRESSION
	.comm	_CPIA_COMMAND_SetCompression,4,2 ; @CPIA_COMMAND_SetCompression
	.comm	_COMMAND_SETSENSORFPS,4,2       ; @COMMAND_SETSENSORFPS
	.comm	_CPIA_COMMAND_SetSensorFPS,4,2  ; @CPIA_COMMAND_SetSensorFPS
	.comm	_COMMAND_SETFLICKERCTRL,4,2     ; @COMMAND_SETFLICKERCTRL
	.comm	_CPIA_COMMAND_SetFlickerCtrl,4,2 ; @CPIA_COMMAND_SetFlickerCtrl
	.comm	_COMMAND_SETECPTIMING,4,2       ; @COMMAND_SETECPTIMING
	.comm	_CPIA_COMMAND_SetECPTiming,4,2  ; @CPIA_COMMAND_SetECPTiming
	.comm	_COMMAND_PAUSE,4,2              ; @COMMAND_PAUSE
	.comm	_CPIA_COMMAND_EndStreamCap,4,2  ; @CPIA_COMMAND_EndStreamCap
	.comm	_COMMAND_RESUME,4,2             ; @COMMAND_RESUME
	.comm	_COMMAND_SETLIGHTS,4,2          ; @COMMAND_SETLIGHTS
	.comm	_CPIA_COMMAND_WriteVCReg,4,2    ; @CPIA_COMMAND_WriteVCReg
	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ; @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_dispatch_commands
.subsections_via_symbols
