	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_queryctrl
_vidioc_queryctrl:                      ## @vidioc_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	(%rdx), %esi
	movq	_V4L2_CTRL_FLAG_NEXT_CTRL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_9
## %bb.1:
	movq	16(%r15), %r8
	movl	(%r8), %r9d
	testl	%r9d, %r9d
	jle	LBB0_11
## %bb.2:
	movq	_V4L2_CTRL_ID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movl	(%r15), %edx
	movl	$-1, %r13d
	xorl	%edi, %edi
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %r9
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	btl	%edi, %edx
	jb	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r8), %rax
	movl	(%rax,%rdi,4), %ebx
	cmpl	%esi, %ebx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ecx
	cmpl	(%rax,%rcx,4), %ebx
	jle	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_get_ctrl
	movl	%eax, %r13d
LBB0_10:
	testl	%r13d, %r13d
	js	LBB0_11
## %bb.12:
	movq	16(%r15), %rax
	movl	%r13d, %r12d
	leaq	(,%r12,4), %rsi
	addq	8(%rax), %rsi
	movq	%r14, %rdi
	movl	$20, %edx
	callq	_memcpy
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	(%r12,%r12,2), %rcx
	movl	8(%rax,%rcx,4), %edx
	movl	%edx, 16(%r14)
	movl	4(%rax,%rcx,4), %edx
	movl	%edx, 12(%r14)
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 8(%r14)
LBB0_14:
	movl	4(%r15), %ecx
	xorl	%eax, %eax
	btl	%r13d, %ecx
	jae	LBB0_16
## %bb.15:
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r14)
	jmp	LBB0_16
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_FLAG_NEXT_CTRL,4,2   ## @V4L2_CTRL_FLAG_NEXT_CTRL
	.comm	_V4L2_CTRL_ID_MASK,4,2          ## @V4L2_CTRL_ID_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.no_dead_strip	_vidioc_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_queryctrl
_vidioc_queryctrl:                      ; @vidioc_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	x19, x2
	mov	x20, x1
	ldr	w1, [x2]
Lloh0:
	adrp	x8, _V4L2_CTRL_FLAG_NEXT_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_NEXT_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x10, #0
Lloh3:
	adrp	x11, _V4L2_CTRL_ID_MASK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _V4L2_CTRL_ID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	and	w11, w11, w1
	ldr	w12, [x20]
	mov	w21, #-1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x10
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w13, w12, w10
	tbnz	w13, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x8, #8]
	ldr	w14, [x13, x10, lsl #2]
	cmp	w14, w11
	b.le	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w21, #31, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x13, w21, uxtw #2]
	cmp	w14, w13
	b.le	LBB0_3
	b	LBB0_4
LBB0_9:
	mov	x0, x20
	bl	_get_ctrl
	mov	x21, x0
LBB0_10:
	tbnz	w21, #31, LBB0_15
; %bb.11:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	add	x1, x8, w21, uxtw #2
	mov	x0, x19
	mov	w2, #20
	bl	_memcpy
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	w9, w21
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w9, [x8, #8]
	str	w9, [x19, #16]
	ldr	d0, [x8]
	str	d0, [x19, #8]
LBB0_13:
	ldr	w8, [x20, #4]
	mov	w0, #0
	lsr	w8, w8, w21
	tbz	w8, #0, LBB0_16
; %bb.14:
Lloh6:
	adrp	x8, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_16
LBB0_15:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_NEXT_CTRL,4,2   ; @V4L2_CTRL_FLAG_NEXT_CTRL
	.comm	_V4L2_CTRL_ID_MASK,4,2          ; @V4L2_CTRL_ID_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.no_dead_strip	_vidioc_queryctrl
.subsections_via_symbols
