	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function class_check
_class_check:                           ## @class_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movq	_V4L2_CTRL_WHICH_DEF_VAL@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_V4L2_CTRL_WHICH_REQUEST_VAL@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_4
## %bb.3:
	orl	$1, %esi
	callq	_find_ref_lock
	movq	%rax, %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovnel	%edx, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,4,2    ## @V4L2_CTRL_WHICH_DEF_VAL
	.comm	_V4L2_CTRL_WHICH_REQUEST_VAL,4,2 ## @V4L2_CTRL_WHICH_REQUEST_VAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_class_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function class_check
_class_check:                           ; @class_check
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	mov	w0, #0
	cbz	w1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _V4L2_CTRL_WHICH_DEF_VAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_WHICH_DEF_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _V4L2_CTRL_WHICH_REQUEST_VAL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_CTRL_WHICH_REQUEST_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w1
	ccmp	w10, w1, #4, ne
	b.eq	LBB0_3
; %bb.2:
	orr	w1, w1, #0x1
	mov	x0, x8
	bl	_find_ref_lock
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,4,2    ; @V4L2_CTRL_WHICH_DEF_VAL
	.comm	_V4L2_CTRL_WHICH_REQUEST_VAL,4,2 ; @V4L2_CTRL_WHICH_REQUEST_VAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_class_check
.subsections_via_symbols
