	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_s_ctrl
_ioctl_s_ctrl:                          ## @ioctl_s_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	8(%rdi), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	_NUM_CONTROLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	_controls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	$16, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-16(%rdx), %esi
	je	LBB0_4
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	addq	$24, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_3
	jmp	LBB0_25
LBB0_1:
	xorl	%ecx, %ecx
LBB0_6:
	cmpl	%eax, %ecx
	je	LBB0_25
## %bb.7:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_25
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cpia2_set_property_flip
	jmp	LBB0_22
LBB0_4:
	movq	8(%rbx), %rsi
	cmpq	-8(%rdx), %rsi
	jl	LBB0_25
## %bb.5:
	cmpq	(%rdx), %rsi
	jle	LBB0_6
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cpia2_set_saturation
	jmp	LBB0_22
LBB0_12:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cpia2_set_property_mirror
	jmp	LBB0_22
LBB0_10:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cpia2_set_contrast
	jmp	LBB0_22
LBB0_9:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cpia2_set_brightness
	jmp	LBB0_22
LBB0_19:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cpia2_usb_change_streaming_alternate ## TAILCALL
LBB0_14:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cpia2_set_target_kb            ## TAILCALL
LBB0_21:
	movq	%r14, %rdi
	callq	_cpia2_usb_stream_pause
	movq	%r14, %rdi
	callq	_cpia2_reset_camera
	movq	%r14, %rdi
	callq	_cpia2_usb_stream_resume
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_20:
	movq	_lights_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	(%rax,%rcx,8), %rsi
	jmp	LBB0_16
LBB0_15:
	movq	8(%rbx), %rsi
LBB0_16:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cpia2_set_gpio                 ## TAILCALL
LBB0_18:
	movq	_framerate_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cpia2_set_fps                  ## TAILCALL
LBB0_17:
	movq	_flicker_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cpia2_set_flicker_mode         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_19
	.long	L0_0_set_14
	.long	L0_0_set_21
	.long	L0_0_set_20
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set control id:%d, value:%d\n"

	.comm	_NUM_CONTROLS,4,2               ## @NUM_CONTROLS
	.comm	_controls,8,3                   ## @controls
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_flicker_controls,8,3           ## @flicker_controls
	.comm	_framerate_controls,8,3         ## @framerate_controls
	.comm	_lights_controls,8,3            ## @lights_controls
	.no_dead_strip	_ioctl_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_s_ctrl
_ioctl_s_ctrl:                          ; @ioctl_s_ctrl
	.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, x1
	mov	x20, x0
	ldr	w1, [x0]
	ldr	x2, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
Lloh2:
	adrp	x8, _NUM_CONTROLS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_CONTROLS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	w11, [x20]
Lloh5:
	adrp	x10, _controls@GOTPAGE
Lloh6:
	ldr	x10, [x10, _controls@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x10, x10, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	cmp	w11, w12
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x10, x10, #24
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_11
LBB0_4:
	mov	w9, #0
LBB0_5:
	cmp	w9, w8
	b.eq	LBB0_11
; %bb.6:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_11
; %bb.7:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_cpia2_set_property_flip
	b	LBB0_20
LBB0_9:
	ldr	x11, [x20, #8]
	ldr	x12, [x10]
	cmp	x11, x12
	b.lt	LBB0_11
; %bb.10:
	ldr	x10, [x10, #8]
	cmp	x11, x10
	b.le	LBB0_5
LBB0_11:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_cpia2_set_saturation
	b	LBB0_20
LBB0_14:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_cpia2_set_property_mirror
	b	LBB0_20
LBB0_15:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_cpia2_set_contrast
	b	LBB0_20
LBB0_16:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_cpia2_set_brightness
	b	LBB0_20
LBB0_17:
	ldr	x1, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cpia2_usb_change_streaming_alternate
LBB0_18:
	ldr	x1, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cpia2_set_target_kb
LBB0_19:
	mov	x0, x19
	bl	_cpia2_usb_stream_pause
	mov	x0, x19
	bl	_cpia2_reset_camera
	mov	x0, x19
	bl	_cpia2_usb_stream_resume
LBB0_20:
	mov	w0, #0
	b	LBB0_12
LBB0_21:
Lloh13:
	adrp	x8, _lights_controls@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lights_controls@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	ldr	x1, [x8, x9, lsl #3]
	b	LBB0_23
LBB0_22:
	ldr	x1, [x20, #8]
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cpia2_set_gpio
LBB0_24:
Lloh16:
	adrp	x8, _framerate_controls@GOTPAGE
Lloh17:
	ldr	x8, [x8, _framerate_controls@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cpia2_set_fps
LBB0_25:
Lloh19:
	adrp	x8, _flicker_controls@GOTPAGE
Lloh20:
	ldr	x8, [x8, _flicker_controls@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cpia2_set_flicker_mode
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_19-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_24-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set control id:%d, value:%d\n"

	.comm	_NUM_CONTROLS,4,2               ; @NUM_CONTROLS
	.comm	_controls,8,3                   ; @controls
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_flicker_controls,8,3           ; @flicker_controls
	.comm	_framerate_controls,8,3         ; @framerate_controls
	.comm	_lights_controls,8,3            ; @lights_controls
	.no_dead_strip	_ioctl_s_ctrl
.subsections_via_symbols
