	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __video_do_ioctl
___video_do_ioctl:                      ## @__video_do_ioctl
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_video_devdata
	movq	%rax, %rbx
	movq	32(%rax), %rcx
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r13
	movl	(%rbx), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_V4L2_FL_USES_V4L2_FH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	addq	$24, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r12
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_video_device_node_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	jmp	LBB0_54
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	movq	16(%rbx), %rdi
	callq	_v4l2_device_supports_requests
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_VIDIOC_STREAMON@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_18
## %bb.7:
	movq	_VIDIOC_STREAMOFF@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_18
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	_v4l2_ioctl_get_lock
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %rdi
	movq	%r13, %r15
	movq	%rbx, %r13
	movq	%rax, %rbx
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	movq	%rbx, %rax
	movq	%r13, %rbx
	movq	%r15, %r13
	je	LBB0_13
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.12:
	callq	_mutex_unlock
	jmp	LBB0_19
LBB0_13:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_video_is_registered
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_v4l2_is_known_ioctl
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	_v4l2_ioctls@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	__IOC_NR
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %r15
	movl	%r12d, %edi
	callq	__IOC_NR
	movq	8(%rbx), %rsi
	movq	%rax, %rdi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_28
## %bb.17:
	movl	(%r15), %eax
	jmp	LBB0_25
LBB0_18:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_9
LBB0_19:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_54
LBB0_20:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_50
LBB0_21:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -132(%rbp)
	movl	$0, -136(%rbp)
	movq	_v4l_print_default@GOTPCREL(%rip), %rax
	movq	%rax, -120(%rbp)
	leaq	-136(%rbp), %r15
	jmp	LBB0_28
LBB0_22:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movq	_INFO_FL_CTRL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_38
## %bb.23:
	testq	%r12, %r12
	je	LBB0_38
## %bb.24:
	cmpq	$0, 8(%r12)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_38
LBB0_25:
	movq	_INFO_FL_PRIO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.26:
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	callq	_v4l2_prio_check
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%rax, %r14
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
LBB0_38:
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_39
LBB0_28:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__IOC_DIR
	movq	__IOC_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dl
	leaq	-136(%rbp), %rcx
	cmpq	%rcx, %r15
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	je	LBB0_30
## %bb.29:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%r13, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	*8(%r15)
	movq	%rax, %r14
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_39
LBB0_30:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r14
	testq	%r14, %r14
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_33
## %bb.31:
	testq	%r12, %r12
	je	LBB0_34
## %bb.32:
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	callq	_v4l2_prio_check
	movq	%rax, %rdx
	shrq	$63, %rdx
	xorl	$1, %edx
	jmp	LBB0_35
LBB0_33:
	xorl	%r14d, %r14d
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	subq	(%rax), %r14
	jmp	LBB0_39
LBB0_34:
	xorl	%edx, %edx
LBB0_35:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	callq	*%r14
	movq	%rax, %r14
LBB0_39:
	movq	_V4L2_DEV_DEBUG_IOCTL@GOTPCREL(%rip), %rax
	movq	_V4L2_DEV_DEBUG_IOCTL_ARG@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -76(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_50
## %bb.40:
	movq	_V4L2_DEV_DEBUG_STREAMING@GOTPCREL(%rip), %rax
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_43
## %bb.41:
	movq	_VIDIOC_QBUF@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_50
## %bb.42:
	movq	_VIDIOC_DQBUF@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_50
LBB0_43:
	movq	%rbx, %rdi
	callq	_video_device_node_name
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_v4l_printk_ioctl
	testq	%r14, %r14
	jns	LBB0_45
## %bb.44:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_45:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r15)
	je	LBB0_49
## %bb.46:
	movzbl	-64(%rbp), %ebx                 ## 1-byte Folded Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__IOC_DIR
	movq	__IOC_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_48
## %bb.47:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_48:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	callq	*16(%rax)
	jmp	LBB0_50
LBB0_49:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_50:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_52
## %bb.51:
	callq	_mutex_unlock
LBB0_52:
	testq	%rbx, %rbx
	je	LBB0_54
## %bb.53:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_54:
	movq	%r14, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTTY,8,3                     ## @ENOTTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: has no ioctl_ops.\n"

	.comm	_V4L2_FL_USES_V4L2_FH,8,3       ## @V4L2_FL_USES_V4L2_FH
	.comm	_VIDIOC_STREAMON,4,2            ## @VIDIOC_STREAMON
	.comm	_VIDIOC_STREAMOFF,4,2           ## @VIDIOC_STREAMOFF
	.comm	_ERESTARTSYS,8,3                ## @ERESTARTSYS
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_v4l2_ioctls,8,3                ## @v4l2_ioctls
	.comm	_INFO_FL_CTRL,4,2               ## @INFO_FL_CTRL
	.comm	_INFO_FL_PRIO,4,2               ## @INFO_FL_PRIO
	.comm	__IOC_WRITE,8,3                 ## @_IOC_WRITE
	.comm	_V4L2_DEV_DEBUG_IOCTL,4,2       ## @V4L2_DEV_DEBUG_IOCTL
	.comm	_V4L2_DEV_DEBUG_IOCTL_ARG,4,2   ## @V4L2_DEV_DEBUG_IOCTL_ARG
	.comm	_V4L2_DEV_DEBUG_STREAMING,4,2   ## @V4L2_DEV_DEBUG_STREAMING
	.comm	_VIDIOC_QBUF,4,2                ## @VIDIOC_QBUF
	.comm	_VIDIOC_DQBUF,4,2               ## @VIDIOC_DQBUF
L_.str.1:                               ## @.str.1
	.asciz	": error %ld"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	__IOC_NONE,8,3                  ## @_IOC_NONE
L_.str.3:                               ## @.str.3
	.asciz	": "

	.no_dead_strip	___video_do_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __video_do_ioctl
___video_do_ioctl:                      ; @__video_do_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x25, x0
	bl	_video_devdata
	mov	x24, x0
	ldr	x27, [x0, #32]
Lloh0:
	adrp	x26, _ENOTTY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ENOTTY@GOTPAGEOFF]
	ldr	x8, [x26]
	neg	x22, x8
	cbz	x27, LBB0_3
; %bb.1:
	ldr	x23, [x25]
	ldr	w8, [x24]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
Lloh2:
	adrp	x8, _V4L2_FL_USES_V4L2_FH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_FL_USES_V4L2_FH@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	add	x1, x24, #24
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x28, [x25]
	b	LBB0_5
LBB0_3:
	mov	x0, x24
	bl	_video_device_node_name
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_53
LBB0_4:
	mov	x28, #0
LBB0_5:
	ldr	x0, [x24, #16]
	bl	_v4l2_device_supports_requests
	cbz	x0, LBB0_9
; %bb.6:
Lloh7:
	adrp	x8, _VIDIOC_STREAMON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VIDIOC_STREAMON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _VIDIOC_STREAMOFF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VIDIOC_STREAMOFF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x24, #16]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbnz	x0, LBB0_14
; %bb.8:
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_10
LBB0_9:
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	mov	x20, #0
LBB0_10:
	mov	x0, x24
	mov	x1, x28
	mov	x2, x21
	mov	x3, x19
	bl	_v4l2_ioctl_get_lock
	mov	x23, x0
	cbz	x0, LBB0_15
; %bb.11:
	mov	x0, x23
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_15
; %bb.12:
	cbz	x20, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_14:
Lloh13:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	neg	x22, x8
	b	LBB0_53
LBB0_15:
	mov	x0, x24
	bl	_video_is_registered
	cbz	w0, LBB0_20
; %bb.16:
	mov	x0, x21
	bl	_v4l2_is_known_ioctl
	cbz	x0, LBB0_21
; %bb.17:
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
Lloh16:
	adrp	x8, _v4l2_ioctls@GOTPAGE
Lloh17:
	ldr	x8, [x8, _v4l2_ioctls@GOTPAGEOFF]
Lloh18:
	ldr	x20, [x8]
	mov	x0, x21
	bl	__IOC_NR
	mov	w8, #24
	madd	x20, x0, x8, x20
	mov	x0, x21
	bl	__IOC_NR
	ldr	x1, [x24, #8]
	bl	_test_bit
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_22
; %bb.18:
	cbz	x28, LBB0_24
; %bb.19:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_26
LBB0_20:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	neg	x22, x8
	cbnz	x23, LBB0_50
	b	LBB0_51
LBB0_21:
	stp	wzr, w21, [sp, #56]
Lloh22:
	adrp	x8, _v4l_print_default@GOTPAGE
Lloh23:
	ldr	x8, [x8, _v4l_print_default@GOTPAGEOFF]
	str	x8, [sp, #72]
	add	x22, sp, #56
	b	LBB0_31
LBB0_22:
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _INFO_FL_CTRL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _INFO_FL_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	x28, #0, #4, ne
	b.ne	LBB0_25
; %bb.23:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w26, [sp, #52]                  ; 4-byte Folded Reload
	b	LBB0_39
LBB0_24:
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_30
LBB0_25:
	ldr	x9, [x28, #8]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x9, LBB0_29
LBB0_26:
Lloh27:
	adrp	x9, _INFO_FL_PRIO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _INFO_FL_PRIO@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.27:
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
	bl	_v4l2_prio_check
	cbz	x0, LBB0_30
; %bb.28:
	mov	x22, x0
LBB0_29:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	ldr	w26, [sp, #52]                  ; 4-byte Folded Reload
	b	LBB0_39
LBB0_30:
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
LBB0_31:
	mov	x0, x21
	bl	__IOC_DIR
Lloh30:
	adrp	x8, __IOC_WRITE@GOTPAGE
Lloh31:
	ldr	x8, [x8, __IOC_WRITE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w9, eq
	add	x8, sp, #56
	cmp	x22, x8
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	b.eq	LBB0_33
; %bb.32:
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	ldr	x8, [x22, #8]
	mov	x0, x27
	mov	x1, x25
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	mov	x3, x19
	blr	x8
	mov	x22, x0
	ldr	w26, [sp, #52]                  ; 4-byte Folded Reload
	b	LBB0_39
LBB0_33:
	ldr	x22, [x27]
	cbz	x22, LBB0_36
; %bb.34:
	cbz	x28, LBB0_37
; %bb.35:
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
	bl	_v4l2_prio_check
	lsr	x8, x0, #63
	eor	w2, w8, #0x1
	b	LBB0_38
LBB0_36:
	ldr	x8, [x26]
	neg	x22, x8
	add	x8, sp, #56
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w26, [sp, #52]                  ; 4-byte Folded Reload
	b	LBB0_39
LBB0_37:
	mov	w2, #0
LBB0_38:
	ldr	w26, [sp, #52]                  ; 4-byte Folded Reload
	mov	x0, x25
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x3, x21
	mov	x4, x19
	blr	x22
	mov	x22, x0
	add	x8, sp, #56
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
LBB0_39:
Lloh33:
	adrp	x8, _V4L2_DEV_DEBUG_IOCTL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V4L2_DEV_DEBUG_IOCTL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x25, _V4L2_DEV_DEBUG_IOCTL_ARG@GOTPAGE
Lloh37:
	ldr	x25, [x25, _V4L2_DEV_DEBUG_IOCTL_ARG@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
	tst	w8, w26
	b.eq	LBB0_49
; %bb.40:
Lloh38:
	adrp	x8, _V4L2_DEV_DEBUG_STREAMING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V4L2_DEV_DEBUG_STREAMING@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w26
	b.ne	LBB0_43
; %bb.41:
Lloh41:
	adrp	x8, _VIDIOC_QBUF@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VIDIOC_QBUF@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_49
; %bb.42:
Lloh44:
	adrp	x8, _VIDIOC_DQBUF@GOTPAGE
Lloh45:
	ldr	x8, [x8, _VIDIOC_DQBUF@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_49
LBB0_43:
	mov	x0, x24
	bl	_video_device_node_name
	mov	x1, x21
	bl	_v4l_printk_ioctl
	tbz	x22, #63, LBB0_45
; %bb.44:
	str	x22, [sp]
Lloh47:
	adrp	x0, l_.str.1@PAGE
Lloh48:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_cont
LBB0_45:
	ldr	w8, [x25]
	tst	w8, w26
	b.eq	LBB0_54
; %bb.46:
	mov	x0, x21
	bl	__IOC_DIR
Lloh49:
	adrp	x8, __IOC_NONE@GOTPAGE
Lloh50:
	ldr	x8, [x8, __IOC_NONE@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_48
; %bb.47:
Lloh52:
	adrp	x0, l_.str.3@PAGE
Lloh53:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_cont
LBB0_48:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	mov	x0, x19
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	blr	x8
LBB0_49:
	cbz	x23, LBB0_51
LBB0_50:
	mov	x0, x23
	bl	_mutex_unlock
LBB0_51:
	cbz	x20, LBB0_53
; %bb.52:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_53:
	mov	x0, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_54:
Lloh54:
	adrp	x0, l_.str.2@PAGE
Lloh55:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_cont
	cbnz	x23, LBB0_50
	b	LBB0_51
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTTY,8,3                     ; @ENOTTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: has no ioctl_ops.\n"

	.comm	_V4L2_FL_USES_V4L2_FH,8,3       ; @V4L2_FL_USES_V4L2_FH
	.comm	_VIDIOC_STREAMON,4,2            ; @VIDIOC_STREAMON
	.comm	_VIDIOC_STREAMOFF,4,2           ; @VIDIOC_STREAMOFF
	.comm	_ERESTARTSYS,8,3                ; @ERESTARTSYS
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_v4l2_ioctls,8,3                ; @v4l2_ioctls
	.comm	_INFO_FL_CTRL,4,2               ; @INFO_FL_CTRL
	.comm	_INFO_FL_PRIO,4,2               ; @INFO_FL_PRIO
	.comm	__IOC_WRITE,8,3                 ; @_IOC_WRITE
	.comm	_V4L2_DEV_DEBUG_IOCTL,4,2       ; @V4L2_DEV_DEBUG_IOCTL
	.comm	_V4L2_DEV_DEBUG_IOCTL_ARG,4,2   ; @V4L2_DEV_DEBUG_IOCTL_ARG
	.comm	_V4L2_DEV_DEBUG_STREAMING,4,2   ; @V4L2_DEV_DEBUG_STREAMING
	.comm	_VIDIOC_QBUF,4,2                ; @VIDIOC_QBUF
	.comm	_VIDIOC_DQBUF,4,2               ; @VIDIOC_DQBUF
l_.str.1:                               ; @.str.1
	.asciz	": error %ld"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	__IOC_NONE,8,3                  ; @_IOC_NONE
l_.str.3:                               ; @.str.3
	.asciz	": "

	.no_dead_strip	___video_do_ioctl
.subsections_via_symbols
