	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_ctrl_check
_v4l2_ctrl_check:                       ## @v4l2_ctrl_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movq	_V4L2_CTRL_FLAG_DISABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_2:
	movq	_V4L2_CTRL_FLAG_GRABBED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rsi), %r9
	movq	_V4L2_CTRL_TYPE_STRING@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %r9
	je	LBB0_18
## %bb.5:
	movq	_V4L2_CTRL_TYPE_BUTTON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	je	LBB0_18
## %bb.6:
	movq	_V4L2_CTRL_TYPE_INTEGER64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	je	LBB0_18
## %bb.7:
	movq	_V4L2_CTRL_TYPE_CTRL_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	je	LBB0_18
## %bb.8:
	movq	(%rdi), %rdi
	cmpq	16(%rsi), %rdi
	jb	LBB0_16
## %bb.9:
	movq	24(%rsi), %rsi
	cmpq	%rsi, %rdi
	jbe	LBB0_10
LBB0_16:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_10:
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.11:
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	jne	LBB0_14
## %bb.12:
	movq	(%rdx,%rdi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.13:
	cmpb	$0, (%rdx)
	je	LBB0_1
LBB0_14:
	movq	_V4L2_CTRL_TYPE_BITMASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	jne	LBB0_18
## %bb.15:
	notq	%rsi
	testq	%rsi, %rdi
	jne	LBB0_16
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ## @V4L2_CTRL_FLAG_DISABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ## @V4L2_CTRL_FLAG_GRABBED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_CTRL_TYPE_STRING,8,3      ## @V4L2_CTRL_TYPE_STRING
	.comm	_V4L2_CTRL_TYPE_BUTTON,8,3      ## @V4L2_CTRL_TYPE_BUTTON
	.comm	_V4L2_CTRL_TYPE_INTEGER64,8,3   ## @V4L2_CTRL_TYPE_INTEGER64
	.comm	_V4L2_CTRL_TYPE_CTRL_CLASS,8,3  ## @V4L2_CTRL_TYPE_CTRL_CLASS
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ## @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_BITMASK,8,3     ## @V4L2_CTRL_TYPE_BITMASK
	.no_dead_strip	_v4l2_ctrl_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_ctrl_check
_v4l2_ctrl_check:                       ; @v4l2_ctrl_check
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _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, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_8
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	ldr	x9, [x0]
	ldr	x10, [x1, #16]
	cmp	x9, x10
	b.lo	LBB0_10
; %bb.9:
	ldr	x10, [x1, #24]
	cmp	x9, x10
	b.ls	LBB0_11
LBB0_10:
Lloh22:
	adrp	x8, _ERANGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
	cbz	x2, LBB0_15
; %bb.12:
Lloh24:
	adrp	x11, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh25:
	ldr	x11, [x11, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
	cmp	x8, x11
	b.ne	LBB0_15
; %bb.13:
	ldr	x11, [x2, x9, lsl #3]
	cbz	x11, LBB0_1
; %bb.14:
	ldrb	w11, [x11]
	cbz	w11, LBB0_1
LBB0_15:
Lloh27:
	adrp	x11, _V4L2_CTRL_TYPE_BITMASK@GOTPAGE
Lloh28:
	ldr	x11, [x11, _V4L2_CTRL_TYPE_BITMASK@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	cmp	x8, x11
	b.ne	LBB0_7
; %bb.16:
	bics	xzr, x9, x10
	b.ne	LBB0_10
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ; @V4L2_CTRL_FLAG_DISABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ; @V4L2_CTRL_FLAG_GRABBED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_CTRL_TYPE_STRING,8,3      ; @V4L2_CTRL_TYPE_STRING
	.comm	_V4L2_CTRL_TYPE_BUTTON,8,3      ; @V4L2_CTRL_TYPE_BUTTON
	.comm	_V4L2_CTRL_TYPE_INTEGER64,8,3   ; @V4L2_CTRL_TYPE_INTEGER64
	.comm	_V4L2_CTRL_TYPE_CTRL_CLASS,8,3  ; @V4L2_CTRL_TYPE_CTRL_CLASS
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ; @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_BITMASK,8,3     ; @V4L2_CTRL_TYPE_BITMASK
	.no_dead_strip	_v4l2_ctrl_check
.subsections_via_symbols
