	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcm_configure_video
_qcm_configure_video:                   ## @qcm_configure_video
	.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	%rdi, %rbx
	addq	$176, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	leaq	264(%rbx), %rdi
	movl	$85, %esi
	movl	$88, %edx
	callq	_memset
	movq	_colour@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 260(%rbx)
	movq	_hue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 256(%rbx)
	movq	_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 252(%rbx)
	movq	_contrast@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 248(%rbx)
	movq	_whiteness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 244(%rbx)
	movl	$24, 176(%rbx)
	movq	_VIDEO_PALETTE_RGB24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 240(%rbx)
	leaq	88(%rbx), %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movl	96(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_VID_TYPE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movl	$1, 92(%rbx)
	movq	$0, 144(%rbx)
	movq	_camera_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SIZE_160X120@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SIZE_320X240@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	(%rax,%rdx,8), %xmm1            ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 128(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	_VIDEO_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_qcm_sensor_init
	movl	%eax, %esi
	callq	_CHECK_RET
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_colour,4,2                     ## @colour
	.comm	_hue,4,2                        ## @hue
	.comm	_brightness,4,2                 ## @brightness
	.comm	_contrast,4,2                   ## @contrast
	.comm	_whiteness,4,2                  ## @whiteness
	.comm	_VIDEO_PALETTE_RGB24,4,2        ## @VIDEO_PALETTE_RGB24
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QCM USB Camera"

	.comm	_VID_TYPE_CAPTURE,4,2           ## @VID_TYPE_CAPTURE
	.comm	_camera_sizes,8,3               ## @camera_sizes
	.comm	_SIZE_160X120,8,3               ## @SIZE_160X120
	.comm	_SIZE_320X240,8,3               ## @SIZE_320X240
	.comm	_VIDEO_TYPE_CAMERA,4,2          ## @VIDEO_TYPE_CAMERA
L_.str.1:                               ## @.str.1
	.asciz	"Camera"

	.no_dead_strip	_qcm_configure_video
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcm_configure_video
_qcm_configure_video:                   ; @qcm_configure_video
	.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, x0
	add	x0, x0, #176
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	add	x0, x19, #264
	mov	w1, #85
	mov	w2, #88
	bl	_memset
Lloh0:
	adrp	x8, _colour@GOTPAGE
Lloh1:
	ldr	x8, [x8, _colour@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #260]
Lloh3:
	adrp	x8, _hue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hue@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _brightness@GOTPAGE
Lloh7:
	ldr	x9, [x9, _brightness@GOTPAGEOFF]
	str	w8, [x19, #256]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _contrast@GOTPAGE
Lloh10:
	ldr	x9, [x9, _contrast@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #248]
Lloh12:
	adrp	x8, _whiteness@GOTPAGE
Lloh13:
	ldr	x8, [x8, _whiteness@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #24
	str	w9, [x19, #176]
Lloh15:
	adrp	x9, _VIDEO_PALETTE_RGB24@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VIDEO_PALETTE_RGB24@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #240]
	add	x0, x19, #88
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	w0, [x19, #96]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
Lloh20:
	adrp	x8, _VID_TYPE_CAPTURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VID_TYPE_CAPTURE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #100]
	mov	w8, #1
	str	w8, [x19, #92]
	str	xzr, [x19, #144]
Lloh23:
	adrp	x8, _camera_sizes@GOTPAGE
Lloh24:
	ldr	x8, [x8, _camera_sizes@GOTPAGEOFF]
Lloh25:
	adrp	x9, _SIZE_160X120@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SIZE_160X120@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	ldr	x9, [x9]
Lloh29:
	adrp	x10, _SIZE_320X240@GOTPAGE
Lloh30:
	ldr	x10, [x10, _SIZE_320X240@GOTPAGEOFF]
	ldr	d0, [x8, x9, lsl #3]
Lloh31:
	ldr	x9, [x10]
	ldr	d1, [x8, x9, lsl #3]
	mov.d	v1[1], v0[0]
	str	q1, [x19, #128]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #16]
Lloh32:
	adrp	x8, _VIDEO_TYPE_CAMERA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VIDEO_TYPE_CAMERA@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #8]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	mov	x0, x19
	bl	_qcm_sensor_init
	mov	x1, x0
	bl	_CHECK_RET
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_colour,4,2                     ; @colour
	.comm	_hue,4,2                        ; @hue
	.comm	_brightness,4,2                 ; @brightness
	.comm	_contrast,4,2                   ; @contrast
	.comm	_whiteness,4,2                  ; @whiteness
	.comm	_VIDEO_PALETTE_RGB24,4,2        ; @VIDEO_PALETTE_RGB24
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QCM USB Camera"

	.comm	_VID_TYPE_CAPTURE,4,2           ; @VID_TYPE_CAPTURE
	.comm	_camera_sizes,8,3               ; @camera_sizes
	.comm	_SIZE_160X120,8,3               ; @SIZE_160X120
	.comm	_SIZE_320X240,8,3               ; @SIZE_320X240
	.comm	_VIDEO_TYPE_CAMERA,4,2          ; @VIDEO_TYPE_CAMERA
l_.str.1:                               ; @.str.1
	.asciz	"Camera"

	.no_dead_strip	_qcm_configure_video
.subsections_via_symbols
