	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l_s_ctrl
_v4l_s_ctrl:                            ## @v4l_s_ctrl
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_video_devdata
	movq	%rax, %rbx
	movq	_V4L2_FL_USES_V4L2_FH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testq	%r13, %r13
	je	LBB0_5
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	jmp	LBB0_4
LBB0_5:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	xorl	%edi, %edi
LBB0_4:
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_s_ctrl                    ## TAILCALL
LBB0_7:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.15:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.10:
	movl	4(%r12), %edi
	callq	_V4L2_CTRL_ID2WHICH
	movl	%eax, -56(%rbp)
	movl	$1, -72(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	leaq	-72(%rbp), %rdi
	movl	$1, %esi
	callq	_check_ext_ctrls
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*8(%r14)
	jmp	LBB0_14
LBB0_9:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_13:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FL_USES_V4L2_FH,4,2       ## @V4L2_FL_USES_V4L2_FH
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_v4l_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l_s_ctrl
_v4l_s_ctrl:                            ; @v4l_s_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_video_devdata
	mov	x23, x0
Lloh0:
	adrp	x8, _V4L2_FL_USES_V4L2_FH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FL_USES_V4L2_FH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x23, #8
	bl	_test_bit
	cbz	x19, LBB0_4
; %bb.1:
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x1, [x19]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	b	LBB0_6
LBB0_4:
	ldr	x1, [x23]
	cbz	x1, LBB0_7
; %bb.5:
	mov	x0, #0
LBB0_6:
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_v4l2_s_ctrl
LBB0_7:
	ldr	x3, [x22]
	cbz	x3, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x3
LBB0_9:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w0, [x21, #4]
	bl	_V4L2_CTRL_ID2WHICH
	str	w0, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x8, sp
	str	x8, [sp, #16]
	ldr	d0, [x21]
	str	d0, [sp]
	add	x0, sp, #8
	mov	w1, #1
	bl	_check_ext_ctrls
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x22, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	blr	x8
	b	LBB0_15
LBB0_12:
Lloh3:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FL_USES_V4L2_FH,4,2       ; @V4L2_FL_USES_V4L2_FH
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_v4l_s_ctrl
.subsections_via_symbols
