	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_dev
_check_dev:                             ## @check_dev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	_DEV_MISCONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_pr_info
	xorl	%eax, %eax
	subl	(%rbx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_DISCONNECTED,4,2           ## @DEV_DISCONNECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"v4l2 ioctl: device not present\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DEV_MISCONFIGURED,4,2          ## @DEV_MISCONFIGURED
L_.str.1:                               ## @.str.1
	.asciz	"v4l2 ioctl: device is misconfigured; close and open it again\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_check_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_dev
_check_dev:                             ; @check_dev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DEV_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _ENODEV@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ENODEV@GOTPAGEOFF]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _DEV_MISCONFIGURED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEV_MISCONFIGURED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
Lloh10:
	adrp	x19, _EIO@GOTPAGE
Lloh11:
	ldr	x19, [x19, _EIO@GOTPAGEOFF]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_pr_info
	ldr	w8, [x19]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"v4l2 ioctl: device not present\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DEV_MISCONFIGURED,4,2          ; @DEV_MISCONFIGURED
l_.str.1:                               ; @.str.1
	.asciz	"v4l2 ioctl: device is misconfigured; close and open it again\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_check_dev
.subsections_via_symbols
