	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_queryctrl
_ioctl_queryctrl:                       ## @ioctl_queryctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_NUM_CONTROLS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	(%r15), %ecx
	movq	_controls@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rsi), %ecx
	je	LBB0_4
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$4, %rsi
	cmpq	%rbx, %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	%eax, %ebx
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movl	$20, %edx
	callq	_memcpy
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	je	LBB0_6
LBB0_7:
	movl	(%r15), %ecx
	xorl	%eax, %eax
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_22
## %bb.8:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	4(%r14), %ecx
	movq	_DEVICE_STV_672@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_22
	jmp	LBB0_21
LBB0_9:
	movl	4(%r14), %ecx
	movq	_DEVICE_STV_672@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_22
## %bb.10:
	movl	$1, 4(%r15)
	jmp	LBB0_22
LBB0_20:
	cmpl	$337, (%r14)                    ## imm = 0x151
	je	LBB0_22
	jmp	LBB0_21
LBB0_12:
	movl	4(%r14), %ecx
	movq	_DEVICE_STV_672@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_22
## %bb.13:
	movl	8(%r14), %ecx
	movq	_CPIA2_VP_SENSOR_FLAGS_500@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_22
## %bb.14:
	movl	8(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.15:
	movq	_framerate_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_CPIA2_VP_FRAMERATE_15@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdi
	movslq	%ecx, %rbx
	cmpq	%rbx, %rdi
	jge	LBB0_22
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rdx,%rdi,4)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%edi, 8(%r15)
	movl	%edi, 12(%r15)
	movl	%edi, %ecx
	jmp	LBB0_18
LBB0_19:
	movl	4(%r14), %ecx
	movq	_DEVICE_STV_672@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_22
LBB0_21:
	movq	_V4L2_CTRL_FLAG_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_20
	.long	L0_0_set_12
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_NUM_CONTROLS,4,2               ## @NUM_CONTROLS
	.comm	_controls,8,3                   ## @controls
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DEVICE_STV_672,4,2             ## @DEVICE_STV_672
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ## @V4L2_CTRL_FLAG_DISABLED
	.comm	_CPIA2_VP_SENSOR_FLAGS_500,4,2  ## @CPIA2_VP_SENSOR_FLAGS_500
	.comm	_framerate_controls,8,3         ## @framerate_controls
	.comm	_CPIA2_VP_FRAMERATE_15,4,2      ## @CPIA2_VP_FRAMERATE_15
	.no_dead_strip	_ioctl_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_queryctrl
_ioctl_queryctrl:                       ; @ioctl_queryctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _NUM_CONTROLS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_CONTROLS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	ldr	w9, [x19]
Lloh2:
	adrp	x10, _controls@GOTPAGE
Lloh3:
	ldr	x10, [x10, _controls@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1]
	cmp	w9, w10
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	add	x1, x1, #4
	cmp	x8, x21
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w21, #0
	cmp	w21, w8
	b.ne	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_6:
	mov	x0, x19
	mov	w2, #20
	bl	_memcpy
	ldr	w8, [x22]
	cmp	w21, w8
	b.eq	LBB0_5
LBB0_7:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_21
; %bb.8:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	ldr	w8, [x20, #4]
Lloh10:
	adrp	x9, _DEVICE_STV_672@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DEVICE_STV_672@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_22
	b	LBB0_21
LBB0_10:
	ldr	w8, [x20, #4]
Lloh13:
	adrp	x9, _DEVICE_STV_672@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DEVICE_STV_672@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.11:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_23
LBB0_12:
	ldr	w8, [x20]
	cmp	w8, #337
	b.eq	LBB0_21
	b	LBB0_22
LBB0_13:
	ldr	w8, [x20, #4]
Lloh16:
	adrp	x9, _DEVICE_STV_672@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DEVICE_STV_672@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.14:
	ldr	w8, [x20, #8]
Lloh19:
	adrp	x9, _CPIA2_VP_SENSOR_FLAGS_500@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CPIA2_VP_SENSOR_FLAGS_500@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.15:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.16:
	mov	x8, #0
Lloh22:
	adrp	x10, _framerate_controls@GOTPAGE
Lloh23:
	ldr	x10, [x10, _framerate_controls@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
Lloh25:
	adrp	x11, _CPIA2_VP_FRAMERATE_15@GOTPAGE
Lloh26:
	ldr	x11, [x11, _CPIA2_VP_FRAMERATE_15@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #0
	add	x8, x8, #1
	cmp	x8, w9, sxtw
	b.ge	LBB0_23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x8, lsl #2]
	cmp	w12, w11
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	stp	w8, w8, [x19, #8]
	mov	x9, x8
	b	LBB0_17
LBB0_20:
	ldr	w8, [x20, #4]
Lloh28:
	adrp	x9, _DEVICE_STV_672@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DEVICE_STV_672@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
LBB0_21:
	mov	w0, #0
	b	LBB0_23
LBB0_22:
	mov	w0, #0
Lloh31:
	adrp	x8, _V4L2_CTRL_FLAG_DISABLED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_DISABLED@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_20-LBB0_9)>>2
                                        ; -- End function
	.comm	_NUM_CONTROLS,4,2               ; @NUM_CONTROLS
	.comm	_controls,8,3                   ; @controls
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DEVICE_STV_672,4,2             ; @DEVICE_STV_672
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ; @V4L2_CTRL_FLAG_DISABLED
	.comm	_CPIA2_VP_SENSOR_FLAGS_500,4,2  ; @CPIA2_VP_SENSOR_FLAGS_500
	.comm	_framerate_controls,8,3         ; @framerate_controls
	.comm	_CPIA2_VP_FRAMERATE_15,4,2      ; @CPIA2_VP_FRAMERATE_15
	.no_dead_strip	_ioctl_queryctrl
.subsections_via_symbols
