	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_check                ## -- Begin function v4l2_ctrl_check
	.p2align	4, 0x90
_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_1
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_1:
	movq	_V4L2_CTRL_FLAG_GRABBED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_15:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rsi), %r9
	movq	_V4L2_CTRL_TYPE_STRING@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %r9
	je	LBB0_16
## %bb.4:
	movq	_V4L2_CTRL_TYPE_BUTTON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	je	LBB0_16
## %bb.5:
	movq	_V4L2_CTRL_TYPE_INTEGER64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	je	LBB0_16
## %bb.6:
	movq	_V4L2_CTRL_TYPE_CTRL_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	je	LBB0_16
## %bb.7:
	movq	(%rdi), %rdi
	cmpq	16(%rsi), %rdi
	jb	LBB0_9
## %bb.8:
	cmpq	24(%rsi), %rdi
	jbe	LBB0_10
LBB0_9:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_10:
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.11:
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	jne	LBB0_16
## %bb.12:
	movq	(%rdx,%rdi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	cmpb	$0, (%rcx)
	jne	LBB0_16
	jmp	LBB0_14
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_check                ; -- Begin function v4l2_ctrl_check
	.p2align	2
_v4l2_ctrl_check:                       ; @v4l2_ctrl_check
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _V4L2_CTRL_FLAG_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _V4L2_CTRL_FLAG_GRABBED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_GRABBED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ret
LBB0_6:
	ldr	x8, [x1, #8]
Lloh10:
	adrp	x9, _V4L2_CTRL_TYPE_STRING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_STRING@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ret
LBB0_8:
Lloh13:
	adrp	x9, _V4L2_CTRL_TYPE_BUTTON@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_BUTTON@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _V4L2_CTRL_TYPE_INTEGER64@GOTPAGE
Lloh17:
	ldr	x10, [x10, _V4L2_CTRL_TYPE_INTEGER64@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
Lloh19:
	adrp	x11, _V4L2_CTRL_TYPE_CTRL_CLASS@GOTPAGE
Lloh20:
	ldr	x11, [x11, _V4L2_CTRL_TYPE_CTRL_CLASS@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	ret
LBB0_10:
	ldr	x9, [x0]
	ldr	x10, [x1, #16]
	cmp	x9, x10
	b.lo	LBB0_12
; %bb.11:
	ldr	x10, [x1, #24]
	cmp	x9, x10
	b.ls	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _ERANGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	mov	w0, #0
	cbz	x2, LBB0_5
; %bb.14:
Lloh24:
	adrp	x10, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh25:
	ldr	x10, [x10, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.15:
	ldr	x8, [x2, x9, lsl #3]
	cbz	x8, LBB0_1
; %bb.16:
	ldrb	w8, [x8]
	cbz	w8, LBB0_1
; %bb.17:
	mov	w0, #0
	ret
	.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
	.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
.subsections_via_symbols
